From patchwork Wed Jun 3 05:24:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 281440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BAAEC433DF for ; Wed, 3 Jun 2020 05:27:05 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2954F2065C for ; Wed, 3 Jun 2020 05:27:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hoE7ifJ1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2954F2065C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:47286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgLvc-00011c-E3 for qemu-devel@archiver.kernel.org; Wed, 03 Jun 2020 01:27:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgLsw-0005CK-5a; Wed, 03 Jun 2020 01:24:18 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:34007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgLsv-0001n5-DL; Wed, 03 Jun 2020 01:24:17 -0400 Received: by mail-pf1-x441.google.com with SMTP id z64so836214pfb.1; Tue, 02 Jun 2020 22:24:16 -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:in-reply-to:references; bh=zAVf0eC1i4TO3oZMCKOs1PygTBx2n4QN+KOvIE2jWCE=; b=hoE7ifJ1CnaMm7b0C2B/35OGXnArj+qHcJ+t6LHEvO7OxEMf6f5viWFZWmd/BNbeOB 3GBLhPPQ7REZPZz7m2SWrzxne+KpIZeFQcXtgERS0GAKZJxu5C3czpBd739YUifTkQOX 0vhkit+xYNnA6ylkf76e8uwfcg5eLfZ2gvLOd1hwWb/K5EL7EOiHI4k+wymZUa8JkMyW pH8h8yGCnkGI6pGTWw9J98O7M3tUGf6dqno88kTHtgZkT7kHue3rzG1M0qxoKxNu1OzR v6wO8xj8J5rn1QSsSsVm4x0QoNZaAv1Ks7FrL0+96M+Bi2YpS/aXBaadQ9UD1D0TWGoN jJUw== 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 :in-reply-to:references; bh=zAVf0eC1i4TO3oZMCKOs1PygTBx2n4QN+KOvIE2jWCE=; b=RHavf/S8TTojzby6RVveH+CEYJMxTy+1oldEBCPmq+Ep0xe1g2oMUILmm7rq62Fk14 uQeoIK29F8Fb1xswkSqm1ANLaodzMyhcZUVwJrzhsNJa4n+UJWosGWl7og21bgpaUfpH rUQBwhDplfWStrd8K0PbHdH3G1/RI4+Ks2KXyjYcuy+Lp6IsHErweFormuAfDG5SuZMG uCCA8J5EkvFO+h9peL9Xkj+buuhr5mZ2lr1OYJe7ndg9SE+eoH+IxdEZPu+qhwanpf9F 46eKaUXHSAgMEb72n18U/+ERaPhHDL9V5dl2qbIQxYxir7WLLMB2R8yp64cI3aAxe/I0 Kv6A== X-Gm-Message-State: AOAM533++ZylU3sLFS1HOTakZcft5nZxEob3QXebXex4PudP2XqC3YLM IA0ZjmmOqvSCbwNmL10q74k= X-Google-Smtp-Source: ABdhPJyJFcw+mKlnH02h4cUeNyczdZvirF/04U55FNROhb2Ah8m8yG0LFc0nbPWRsUuQI1Vdwi1hLQ== X-Received: by 2002:a63:6dc2:: with SMTP id i185mr26677561pgc.250.1591161855764; Tue, 02 Jun 2020 22:24:15 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id t2sm719587pfb.64.2020.06.02.22.24.15 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jun 2020 22:24:15 -0700 (PDT) From: Guenter Roeck To: Peter Maydell Subject: [PATCH 2/2] hw: arm: Set vendor property for IMX SDHCI emulations Date: Tue, 2 Jun 2020 22:24:04 -0700 Message-Id: <20200603052404.30788-3-linux@roeck-us.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200603052404.30788-1-linux@roeck-us.net> References: <20200603052404.30788-1-linux@roeck-us.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::441; envelope-from=groeck7@gmail.com; helo=mail-pf1-x441.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , qemu-devel@nongnu.org, Jean-Christophe Dubois , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Guenter Roeck Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Set vendor property to IMX to enable IMX specific functionality in sdhci code. Signed-off-by: Guenter Roeck --- hw/arm/fsl-imx25.c | 2 ++ hw/arm/fsl-imx6.c | 2 ++ hw/arm/fsl-imx6ul.c | 2 ++ hw/arm/fsl-imx7.c | 2 ++ 4 files changed, 8 insertions(+) diff --git a/hw/arm/fsl-imx25.c b/hw/arm/fsl-imx25.c index cdaa79c26b..2cbd985e93 100644 --- a/hw/arm/fsl-imx25.c +++ b/hw/arm/fsl-imx25.c @@ -274,6 +274,8 @@ static void fsl_imx25_realize(DeviceState *dev, Error **errp) &err); object_property_set_uint(OBJECT(&s->esdhc[i]), IMX25_ESDHC_CAPABILITIES, "capareg", &err); + object_property_set_uint(OBJECT(&s->esdhc[i]), SDHCI_VENDOR_IMX, + "vendor", &err); object_property_set_bool(OBJECT(&s->esdhc[i]), true, "realized", &err); if (err) { error_propagate(errp, err); diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index f58c85aa8c..8e9a94e4d7 100644 --- a/hw/arm/fsl-imx6.c +++ b/hw/arm/fsl-imx6.c @@ -350,6 +350,8 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp) &err); object_property_set_uint(OBJECT(&s->esdhc[i]), IMX6_ESDHC_CAPABILITIES, "capareg", &err); + object_property_set_uint(OBJECT(&s->esdhc[i]), SDHCI_VENDOR_IMX, + "vendor", &err); object_property_set_bool(OBJECT(&s->esdhc[i]), true, "realized", &err); if (err) { error_propagate(errp, err); diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c index 3ecb212da6..ce1462927c 100644 --- a/hw/arm/fsl-imx6ul.c +++ b/hw/arm/fsl-imx6ul.c @@ -505,6 +505,8 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp) FSL_IMX6UL_USDHC2_IRQ, }; + object_property_set_uint(OBJECT(&s->usdhc[i]), SDHCI_VENDOR_IMX, + "vendor", &error_abort); object_property_set_bool(OBJECT(&s->usdhc[i]), true, "realized", &error_abort); diff --git a/hw/arm/fsl-imx7.c b/hw/arm/fsl-imx7.c index 89c3b64c06..dbf16b2814 100644 --- a/hw/arm/fsl-imx7.c +++ b/hw/arm/fsl-imx7.c @@ -416,6 +416,8 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp) FSL_IMX7_USDHC3_IRQ, }; + object_property_set_uint(OBJECT(&s->usdhc[i]), SDHCI_VENDOR_IMX, + "vendor", &error_abort); object_property_set_bool(OBJECT(&s->usdhc[i]), true, "realized", &error_abort);