From patchwork Tue Jul 31 22:28:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 10551483 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7AC8F13B8 for ; Tue, 31 Jul 2018 22:29:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 698C72B2AB for ; Tue, 31 Jul 2018 22:29:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D8FD2B2B3; Tue, 31 Jul 2018 22:29:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,URIBL_SBL autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CEE392B2AB for ; Tue, 31 Jul 2018 22:29:47 +0000 (UTC) Received: from localhost ([::1]:60859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkd9E-0003k1-Tf for patchwork-qemu-devel@patchwork.kernel.org; Tue, 31 Jul 2018 18:29:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkd8a-00033C-Cc for qemu-devel@nongnu.org; Tue, 31 Jul 2018 18:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkd8V-00052M-Er for qemu-devel@nongnu.org; Tue, 31 Jul 2018 18:29:04 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:46516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkd8V-000520-80 for qemu-devel@nongnu.org; Tue, 31 Jul 2018 18:28:59 -0400 Received: by mail-pl0-x241.google.com with SMTP id t17-v6so7778200ply.13 for ; Tue, 31 Jul 2018 15:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=O/ruUgPcM6u94IK59znEIqRL5g3bFYZSHwSG9qlHfKU=; b=di9SZLhuuQi2thCUr2pnDOGQpSla6iWX5GqhR64zC1by+xP7NJsRSmculOdkPz8EeC AQnbFwJ5tTQk44cmVlaFXztkHkWSDrBKqJrT1y5WksF67vRXKcW0WVJUZUO6zFf9RGA5 nqpUSWIMD4h7KtH3gSJ03waxuS7zEwsKZLcniTx/oxufijou82J+Ht96OAnTO3Ut9Dk6 d8BVEMXL2W9ZtkOUbkkodHuSt1dpVYTh2L5/cxabB2sqX9s6cWE3TtuNRzHRlKbQ2Omx ObFIUkmGWgW+t3bNKhXhihdO7mU9KOQbEc20Qv8Tkwk2EqQbyGbgWeksY0Mdpt39GQUh vesw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=O/ruUgPcM6u94IK59znEIqRL5g3bFYZSHwSG9qlHfKU=; b=osEn5dU/Ir3GomZI39c3vN8UydzZYrRSNFSys4b4xgIdr75gl6P7J+3K+3mTUSt7Nb UX9BJZ5og1ua8fSkUM5nqWokJpyMu7WXf8kNR6bG6JcECTAIzM+bM5Sx09t3tRORTaRw LzPTRrdyc0etn8WpZwOTk+ls9NWlJxtrfYSghkb7G0yfByM1mLG8hnaSVwZUmqRnApeE z9SQym5IWMVKj9A31vgQKudrDh4ta5n/q6nAmuy6u1i+2KRewncOSX8J7fgTlfkhVgN6 sFF2p+kl61woaevTr9xgPOPGT9zvBh3roqWVqyP5ncN4vyUk1M3tu8i1sxNlIIsJkoGF oR6Q== X-Gm-Message-State: AOUpUlHO85sgK6crJusbfsW362+1HzBuFp+asS8ONzGtrhsI0kHHNJ9x 0h+y/ZCCR07rM1nWduDInPM= X-Google-Smtp-Source: AAOMgpfYV8KBOZHQ7Xd4lNv3jL9gLyTzkNV1DrvuTDwILTORLEfzxGkx0tbf5gMJA6AK4+rpd9RLjw== X-Received: by 2002:a17:902:22:: with SMTP id 31-v6mr22333289pla.190.1533076138040; Tue, 31 Jul 2018 15:28:58 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id t12-v6sm20652493pgg.72.2018.07.31.15.28.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 15:28:57 -0700 (PDT) From: Guenter Roeck To: Paolo Bonzini Date: Tue, 31 Jul 2018 15:28:53 -0700 Message-Id: <1533076133-22745-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::241 Subject: [Qemu-devel] [PATCH] scsi: mptsas: Mark as storage device X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , qemu-devel@nongnu.org, Guenter Roeck Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP mptsas1068 is currently listed as uncategorized device. Mark it as storage device. Signed-off-by: Guenter Roeck Reviewed-by: Fam Zheng --- hw/scsi/mptsas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c index 4176e87..929404f 100644 --- a/hw/scsi/mptsas.c +++ b/hw/scsi/mptsas.c @@ -1431,6 +1431,7 @@ static void mptsas1068_class_init(ObjectClass *oc, void *data) dc->reset = mptsas_reset; dc->vmsd = &vmstate_mptsas; dc->desc = "LSI SAS 1068"; + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); } static const TypeInfo mptsas_info = {