From patchwork Tue Jul 31 22:37:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 10551493 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 639F7174A for ; Tue, 31 Jul 2018 22:38:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 543DF2B323 for ; Tue, 31 Jul 2018 22:38:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 488E12B329; Tue, 31 Jul 2018 22:38:33 +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 EDB982B323 for ; Tue, 31 Jul 2018 22:38:32 +0000 (UTC) Received: from localhost ([::1]:60879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkdHj-0005cA-T3 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 31 Jul 2018 18:38:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkdH5-0005DS-7e for qemu-devel@nongnu.org; Tue, 31 Jul 2018 18:37:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkdH1-0000pA-9j for qemu-devel@nongnu.org; Tue, 31 Jul 2018 18:37:51 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:40959) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkdH1-0000oy-1y for qemu-devel@nongnu.org; Tue, 31 Jul 2018 18:37:47 -0400 Received: by mail-pf1-x441.google.com with SMTP id e13-v6so6785024pff.7 for ; Tue, 31 Jul 2018 15:37:46 -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=MNsnW3FVLBxkz0yRBbGxDuZt4hxz6bBmzHpdujQrdNI=; b=U+k3hqOPAO5iLNgEoNRHR2NXUm7V5b5KHJadzRp3Pms2LiYpE0Hj0KS37Nntwrkc7J CtKl6IMIrITQjdTOW1uhbi63PReh0DHbhpumutsSVuXhCP2NMvu3V83lLMhAeZEXc4ig nKZUpiYGcXZLpPYTZQa8su3bCvkf5AMeE3+Akud8E/p+MPYIfLloVgqiLkdBjg4NNoKk Vsv3Gu/jpTtoKn6mylsQEJpFLMbdxEiRJ8Fo8k58EBiYEqd7c2Jz1ZVa/wcTypW97W8g ZtSqHA/r/rH5pE62kKtOdKwigVk2KGF+NOOLnoNh9ldqzk8tSLRMBIX2j/XauMMdn1Lo 0BZA== 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=MNsnW3FVLBxkz0yRBbGxDuZt4hxz6bBmzHpdujQrdNI=; b=RCE3dmN4BrWTqrkii5p4USoQpQWmIzskSonP0hk/Yxzyn2p9L4JlCeFUBLWOu6gFWH 4n7kjsThnKjUiAuSNi8rYP1YH8WAdNwn/DmEoVMNg2xa4MGcgKBev0BdpvuQRrABnE8r YG3biLip8E7HVRx32Af16rPVFhkXVVPWA1noIQmXXnbFgzHlv7CSs0N1Awiq05hAgrEt jISjYMUGEaAn6xXpSmVolBfXbP5rq8IIxbhFifdA/upVqhe6yeBAakZHRwpjN34xtShk yVLvn+QcXEtYB6TcOdfM03836vBMNNLJ5O0rNpmNcPQSOQf9GO0YGFY1cZCk4ITv0SB+ hB7Q== X-Gm-Message-State: AOUpUlGQhytMkgFd4mVqUGC4x46nw4t1YlrUJvhN025zwTdJgQpNU/YF lNtNtgI14MJyP/R8ABRtGmU= X-Google-Smtp-Source: AAOMgpcNKx+Feij9j3wJs1P58yTazF7uHiNCjx7uNURwTFXztoWPOYYhgwJy+QQTVcOrigX6rupVdQ== X-Received: by 2002:a62:2ac8:: with SMTP id q191-v6mr5317256pfq.139.1533076665964; Tue, 31 Jul 2018 15:37:45 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id f23-v6sm25754641pgl.5.2018.07.31.15.37.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 15:37:45 -0700 (PDT) From: Guenter Roeck To: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Date: Tue, 31 Jul 2018 15:37:41 -0700 Message-Id: <1533076661-8030-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:4864:20::441 Subject: [Qemu-devel] [PATCH] hw/sd: Mark sd-card 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: 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 sd-card is currently listed as uncategorized device. Mark it as storage device. Signed-off-by: Guenter Roeck Reviewed-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index d4356e9..aaab15f 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -2121,6 +2121,7 @@ static void sd_class_init(ObjectClass *klass, void *data) dc->vmsd = &sd_vmstate; dc->reset = sd_reset; dc->bus_type = TYPE_SD_BUS; + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); sc->set_voltage = sd_set_voltage; sc->get_dat_lines = sd_get_dat_lines;