From patchwork Mon Sep 23 06:20:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13809301 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BEF31CF9C5B for ; Mon, 23 Sep 2024 06:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=KvyCXaFoyUcBzS6NaTWBH/VFni5UaYSODHpmTgggnLY=; b=Y4P5xKdQhLPBVFbgk7LeUP5uxw umfE6+Ca2QNm00Yztl/X29bvypG4D5Cn/R9fILvKtiHwILg+a1d790Tp7zWZOAIiGXXVCmR1Cnm+e kZ9FWlMIWghWWVY1uCiWD5/9ZLhl+0663f4VRGqZ9dJEeRtrEeLWmBwoiM1x1a9lQdG0u6siq1DOz I3pWodWr9q7Tz9lYhbUnydVjncK3v/ona/0PV0wcu0OYLAhpsrdOcq+SR7F0Z9Kaqjqhy/Oh+IuuY 4Gf0rxXmwffMbqNU9JpWOuacA/C9Z8cA+lrX9Q3KSKSkUZBngrY0yqLA5nehrc2Tqj8cq4ygukfnJ xwdzRNjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sscJn-0000000GOm3-1Ywb; Mon, 23 Sep 2024 06:13:07 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sscIf-0000000GOfD-2W5t for linux-arm-kernel@lists.infradead.org; Mon, 23 Sep 2024 06:11:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=l8/cda7cI2UJzYeEQ8zy+kbekA3cM0gLWYSKdYaCUPRVP71QIRxX/GHXVzQI+a7DeU0Dqg4EHzV1zrggGFZPavLOSYC0JfiJYSOPJGR1o4dcRAMPUQ1+fZzkbCfbnkT+Q1O+mixhMLXaY22s2tsVWnLe1tAr/w1XMvx6oPJXqca7LDFaMrjwBDFBAY2j9IhLxwd3ys4h0Sg9nhOJtMm+X/1RBIFMxp+L7lpKSiLglNAPlZPOwiEVDQGBDTofe5sksHq0WwfUUCCytILPoWKbtTCPw3kfUY3Zk3FClPcOJ7ILRK+J2LqeLC+ZgOf66di9T7mgQz6V7PMS0kIkqB7Lgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KvyCXaFoyUcBzS6NaTWBH/VFni5UaYSODHpmTgggnLY=; b=peuhNapunp3J7NpMP/d+UojZXchnEOFoQX7G8J8IBMNB5EliNFNaZIzcbHFBEPVg3Dt8qMNya3oYPeLXZ4xHJXEZ3qXK3s5ea4mkHkewTNOlwNl5+k6iezT8LyV8nB+6vdrsp+6ksbg1bF6JgffuniVSLY2Y5IFiYOGCH33IUjZKuJbrx1+Poant98KbZ1AYog9rLITipwiMiAqB5C2/LO5Rxmd3lQoqIubO6HJj1Dnk6BhVRdFE+XfHIzFVznDG37SJdmwXU2o2ptHZZX9wE1MbH4NDXcWNv/puevGWQpm/ladY6xPz1mI5ZHJlc0Ot4WLkJx6HzoKQBwKxya2MQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KvyCXaFoyUcBzS6NaTWBH/VFni5UaYSODHpmTgggnLY=; b=bGpmQiD7Z7G1ShBhivirWC6HBUbNKaMGlVMIv9fOsL6aJXCk4f8HIZ8aQEVjvGCgJsP1wa+UiQfllYUR18vDKIVTe0wAfcZmj94bkIQEaKRgPhTYyGlvf6pG7KMpCF6Kf5auKb3AlWwvZ2rBCuYLEdQOumTd6q8s+T0klDT+LXfJbOyjodvbXeraYhhRYa6DNiI9XVOrh+smsyX24oEX8OAFbFBrY42v8ztoameIX1h/0z/OzrkurxMgHni/uwoYjFE99Lir65s72JBgrBECWutuMW64hPq8t3CWRhLZZbuuh4tVA1SzRUiwyrYm/7Up8DiMGO9zFAEuqTi2Sa1SCg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DB8PR04MB7196.eurprd04.prod.outlook.com (2603:10a6:10:123::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Mon, 23 Sep 2024 06:11:48 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7982.018; Mon, 23 Sep 2024 06:11:48 +0000 From: "Peng Fan (OSS)" To: haibo.chen@nxp.com, adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, imx@lists.linux.dev, linux-mmc@vger.kernel.org, s32@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH] mmc: sdhci-esdhc-imx: enable quirks SDHCI_QUIRK_NO_LED Date: Mon, 23 Sep 2024 14:20:16 +0800 Message-Id: <20240923062016.1165868-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI2PR04CA0013.apcprd04.prod.outlook.com (2603:1096:4:197::6) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DB8PR04MB7196:EE_ X-MS-Office365-Filtering-Correlation-Id: 2df71e8d-327f-4519-3fbf-08dcdb969b57 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|376014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: cW4zu2MFj8vssADyFm9pyAE5cwwQsbs/anFNW1xToAayhEvtlCvq9HDwAryEosgsjyObSjuWN7m5p/P5IiTWUMupGL7eTWTQ0poW0gGJpq1rs1j8AXMKsNNkieRCjmqB5U7FjFpn7soARO78Vghrog7I+hnodpubHOSS3kQHHztmcBhmWwXhmwsCtv89+yTfUBy8ILRa6H0oerZobc3rJVbg97V3WMOFt4Qh2CvdmUa4Ai6wywOwf8BWWJHLjmrZ45cZP9EiUBBQ2M33QmsOwZYs9PsEmLWHL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/8RT6XvOg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(376014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UlHouuCWyD8u53m78nd3qlpTwjJfduMAoRB+goBTKFxNyagOkLWip8ecvy60KasL5cWZ4noVdHVnqUpgWm+59iijitkR/+t/V4iEYtMy16RaXhBLPd4xkuTkKOg1R6rSMfz2uIXGt+XmHvS1x5/6H7ZwPsJ0xTyx4HQZFrCu8hjuwz835yfzi9e7EXxmJc8/ykbPxso4+gCfY1EcX4AkWSJPYJuR6a5JIlebapzI4+tHK6ttjzvGm5nLxbwGjmeEAiX+RFOPU0hjj3XxEE4NhM0blhuDpdcrZYiNhht/zSCh+qOHwV6weZ9Sw0fMuW8bCDoSyb/f9vw84OAd9R9E36Zxr4ceCTKE4Bl0EkkXWMW8JNeg2VNDvSF0uHTdSlIFng8R9OrSnxyGK7atlRmj562Gt+AcH+ETmrQHEKTmn30M/2aaZLsWopKngI/m3o2a7dfYctg7TLHGT8wkr8B2FGCmPs/VDUt6hqldfBofdjBZLEg5/5KqbryRon5Cgm1BaSyRRhfjs7+1XHd4i7qBxgh0jkk/3r2DPHk/c1qiaH1F/hf0lJPCBG/d+Zq66SF/ChU1xaQvYQGo5DodK46z1+XKxtFHZ4l93T7iZdmwG2qmSw86W8naknr51zofa0NBO/fx4tQpmBmQprf98yjgiXTrVg0QPZF5tLqmJpmzcfURwedHCnGQG4ZRUHmjfE2yX3Z4DBat4B/o692R68LYOpBtImsPkIV4hIg7KYjxiwK78JfMtFCXJNSD06kRfgVdPU1ODuu80Bv+OxWU/W611miGbG56lTuUP7syz1KaY9TJoEJeIuczGytsiNa++qGVmDsbXBfWqMMx+PLMZD7aeDC2Q0umux8cd3XHfXeKBf1CQBj2NbgkL9Tng3orFdSAQXdIkPEC/H1rqRWsd+NibIuNgIoH/bGDucX2pfYx1Cw5uGOYXLjkJoiMu9G6LuYJweHPvaH40UYr+kd/n1v3JYdlTxjeQWWYb0BRfPQovyIW2iaBgz46wrVi0EJj5y5qqHJtgiqgTX1WPMxmisMdbkatMnnGc3lSH4Sc9bcUy+F9ZiVOWfKFsigOlHhunPmRxXPuNl1yPjrfwYuU9ytDNejmrLWDT0Q2VNRviFdkTjwQRG2qZ1i2POLyUaGJzvP7g4rkBWJtYiOCxTXJtw1JnOXQMXfPUvrcCCpTFp1Zli12OvVPFheWr2NfwJ2DoL9ItHSYwqBOqtk/faZgjWPUggXdhPow/M4La/z8xqBK8NDO+kcUN2uc3AGHZeZIVyNn5VlktC5CkYss+/M8rNCOXgd2ngH5Ecih4+8ALsAmCrakEebaj5FrLuISOyLWU1NFQp6PHMpuey88rpWaQoOmDsHHUR5FYxt6ZytpDPU9IPyPSDI2rCXv3f5Mxp/Fcpw0bPwuClL+Wd7CbnNdTzwkzNd5aM6jZ6hA8MhMy6ZY82nTqmkFFI9dLaslUZjGlLRbJEdAsTOnAUfoAcWDYQEXRgKB0a8P/Du00TC+GexxIeBkVX+EG+E2b4NvEgjB5ukttGl+0DyV49xXB40O/f/9Ipi5rosAtoJoCABegdgelrsB+riTFF44E2QEnboEplrw X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2df71e8d-327f-4519-3fbf-08dcdb969b57 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2024 06:11:48.0940 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sCxlGgiwDdm4sBviPBjztGAcKGBdGHsd90qJ04dyclZZZ38hC0uOp1g5zo3hMuPLjqsOGonn64KQpPqiulP9gA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7196 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240922_231157_677107_71B950DB X-CRM114-Status: GOOD ( 10.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan Enable SDHCI_QUIRK_NO_LED for i.MX7ULP, i.MX8MM, i.MX8QXP and i.MXRT1050. Even there is LCTL register bit, there is no IOMUX PAD for it. So there is no sense to enable LED for SDHCI for these SoCs. Signed-off-by: Peng Fan Reviewed-by: Haibo Chen Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-esdhc-imx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 8f0bc6dca2b0..ef3a44f2dff1 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -238,6 +238,7 @@ struct esdhc_platform_data { struct esdhc_soc_data { u32 flags; + u32 quirks; }; static const struct esdhc_soc_data esdhc_imx25_data = { @@ -309,10 +310,12 @@ static struct esdhc_soc_data usdhc_imx7ulp_data = { | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 | ESDHC_FLAG_PMQOS | ESDHC_FLAG_HS400 | ESDHC_FLAG_STATE_LOST_IN_LPMODE, + .quirks = SDHCI_QUIRK_NO_LED, }; static struct esdhc_soc_data usdhc_imxrt1050_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200, + .quirks = SDHCI_QUIRK_NO_LED, }; static struct esdhc_soc_data usdhc_imx8qxp_data = { @@ -321,6 +324,7 @@ static struct esdhc_soc_data usdhc_imx8qxp_data = { | ESDHC_FLAG_HS400 | ESDHC_FLAG_HS400_ES | ESDHC_FLAG_STATE_LOST_IN_LPMODE | ESDHC_FLAG_CLK_RATE_LOST_IN_PM_RUNTIME, + .quirks = SDHCI_QUIRK_NO_LED, }; static struct esdhc_soc_data usdhc_imx8mm_data = { @@ -328,6 +332,7 @@ static struct esdhc_soc_data usdhc_imx8mm_data = { | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 | ESDHC_FLAG_HS400 | ESDHC_FLAG_HS400_ES | ESDHC_FLAG_STATE_LOST_IN_LPMODE, + .quirks = SDHCI_QUIRK_NO_LED, }; struct pltfm_imx_data { @@ -1687,6 +1692,7 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) imx_data->socdata = device_get_match_data(&pdev->dev); + host->quirks |= imx_data->socdata->quirks; if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS) cpu_latency_qos_add_request(&imx_data->pm_qos_req, 0);