From nobody Thu Apr 25 01:07:35 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=quarantine dis=quarantine) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1644566682938548.0439504098262; Fri, 11 Feb 2022 00:04:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243550AbiBKIEk (ORCPT ); Fri, 11 Feb 2022 03:04:40 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237830AbiBKIEc (ORCPT ); Fri, 11 Feb 2022 03:04:32 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F391EBBF; Fri, 11 Feb 2022 00:04:30 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21B7p1S7008305; Fri, 11 Feb 2022 01:51:01 -0600 Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21B7p17n092403 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Feb 2022 01:51:01 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 11 Feb 2022 01:51:01 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Fri, 11 Feb 2022 01:51:01 -0600 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21B7ow0B042573; Fri, 11 Feb 2022 01:50:58 -0600 X-Greylist: delayed 805 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 11 Feb 2022 00:04:30 PST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1644565861; bh=4A175SrgYxfzFi5K8Bg8FdyWFPWIpErDDlIkfHdh2j0=; h=From:To:CC:Subject:Date; b=pcuQtIkgco/ZAYWEFu8TW8TLi5M0CP0GeGenPqiOHZ9a2Vjs2LxRulLvPnOvMgc5T bI/sUQt2iELTTVA8CLne83rhxycDgvBA/xHfsbLoIrP5rFZrtzQ1vj4Xqvl6SX2NCk rCoUaa+K21zPMkWCCj1JDE8Ek66ppfS4jf0za+yk= From: Aswath Govindraju CC: Aswath Govindraju , Adrian Hunter , Ulf Hansson , Vignesh Raghavendra , Faiz Abbas , Kishon Vijay Abraham I , , Subject: [PATCH] mmc: sdhci_am654: Fix the driver data of AM64 SoC Date: Fri, 11 Feb 2022 13:20:55 +0530 Message-ID: <20220211075056.26179-1-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1644566685288100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MMCSD IPs used in AM64 are the same as the ones used in J721E. Therefore, fix this by using the driver data from J721E for AM64 too, for both 8 and 4 bit instances. Fixes: 754b7f2f7d2a ("mmc: sdhci_am654: Add Support for TI's AM64 SoC") Signed-off-by: Aswath Govindraju --- drivers/mmc/host/sdhci_am654.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index f654afbe8e83..b4891bb26648 100644 --- a/drivers/mmc/host/sdhci_am654.c +++ b/drivers/mmc/host/sdhci_am654.c @@ -514,26 +514,6 @@ static const struct sdhci_am654_driver_data sdhci_j721= e_4bit_drvdata =3D { .flags =3D IOMUX_PRESENT, }; =20 -static const struct sdhci_pltfm_data sdhci_am64_8bit_pdata =3D { - .ops =3D &sdhci_j721e_8bit_ops, - .quirks2 =3D SDHCI_QUIRK2_PRESET_VALUE_BROKEN, -}; - -static const struct sdhci_am654_driver_data sdhci_am64_8bit_drvdata =3D { - .pdata =3D &sdhci_am64_8bit_pdata, - .flags =3D DLL_PRESENT | DLL_CALIB, -}; - -static const struct sdhci_pltfm_data sdhci_am64_4bit_pdata =3D { - .ops =3D &sdhci_j721e_4bit_ops, - .quirks2 =3D SDHCI_QUIRK2_PRESET_VALUE_BROKEN, -}; - -static const struct sdhci_am654_driver_data sdhci_am64_4bit_drvdata =3D { - .pdata =3D &sdhci_am64_4bit_pdata, - .flags =3D IOMUX_PRESENT, -}; - static const struct soc_device_attribute sdhci_am654_devices[] =3D { { .family =3D "AM65X", .revision =3D "SR1.0", @@ -759,11 +739,11 @@ static const struct of_device_id sdhci_am654_of_match= [] =3D { }, { .compatible =3D "ti,am64-sdhci-8bit", - .data =3D &sdhci_am64_8bit_drvdata, + .data =3D &sdhci_j721e_8bit_drvdata, }, { .compatible =3D "ti,am64-sdhci-4bit", - .data =3D &sdhci_am64_4bit_drvdata, + .data =3D &sdhci_j721e_4bit_drvdata, }, { /* sentinel */ } }; --=20 2.17.1