From patchwork Tue Jun 15 10:43:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 12321843 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 ED033C48BE5 for ; Tue, 15 Jun 2021 14:06:36 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.133]) (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 B5E376054E for ; Tue, 15 Jun 2021 14:06:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5E376054E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=PrYYggcz7fCjcXMttnFwFa15BejmBUYVjXQOarrtTM8=; b=UP8TwWr9MG8iu6 w1LXkPCrCgQeVbodfObo+g+UT7OftU319vsyBXUEa6Dk8Q7SjHy49R7X5HlHw6rNMRj+ZLVFxXx0j Y4x5aD+x4FeBSqVu6/GmW5eHfeN/3k31Vbvnds+hi0yERI9F76EsjbgS263kkuHaB8NyWyvpA5c4X P6uNeTmjBc8PbvhWWOUqv8RHFQqm/ViwwlqGac3GeQ+EwsliysoLt+xqJQhXMYmkKAMKp3a7192yg 9iBzsD0ZL504mgx/pvjJsvqv/2cxl1YaMDzDF8flyqdcJd4ZnOzEnBQT2plZ7eVeJsgDEZlgdTxwU e8sVXEhe3Ll5ZRFtzJTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9a5-000OEb-8c; Tue, 15 Jun 2021 13:58:20 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9GZ-000DwX-Jf for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:38:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cPodYLyE7QHxmOGn50ccFh3gkdAT9OvB74QHdvxjwe0=; b=B7547Xr+ZXIdqQr1+oQybTOF+3 SSZFB/zeLnSD2EiAGwO+LVU2uBk4RgzKc1V3Wm0cAG9p8tiaebm+wrmaJiVO4ffMz4upLfCnwWHP8 OR7qNUtz86ogAs7bBFZNvD4qMwojkO7wAb1N5pkiZXVV+wQ5wcPj9TjrXRWJUZVlDWFTWfV1dz8wc yG7Bb3HiPjivx00PKkIM4s1mrybZ3N2zzGCzYvHVyNF/AQYX3RbE2Bv4HBwyP/RukxN3+wXSyCgrW vmsOXU5liB8Ho2lwYA0dvrBP64tOs3Uzw1sQDe2XruaFhGs1m/9GTQuB1KLbnFnubTnBnK0heo5dv uxR1x+Uw==; Received: from mail-dm6nam12on2054.outbound.protection.outlook.com ([40.107.243.54] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt6YG-007k2s-Eq for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 10:44:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VGxjQGA7i5Weo5Zzj7q4wOQnG5OOLlVqASFI/bVNmV60vCEtz1/WPNtJ0wDoCKRpS46Q0gBw20TeFKuo89wOEYQCg0oxPK/oFyzD20StXaDg8ZLvPBV9q/vzynY+ajbxGTdcWXycOrhfkI974k2LU3zCwWmjfxM4D5tx5HyKOZQT2KXONic5qTo7F847kn7CPNZgweTnb6nQDWn9fnmRJv3g7hQdnhCjMhKGBSUQ+AQgYse7gDy1Oii51uAuUuKHCPdBGPqaAEwtnAvo24YgBTv86YXmd8vFA3GxZ1VdZbQzMly+MfBqJnhvNGLBpvYExAPyNfLTs1a03NsD5T5jug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cPodYLyE7QHxmOGn50ccFh3gkdAT9OvB74QHdvxjwe0=; b=QEFEIoVd6NAWWLPnFXSIfwxGciNpxfuQPtMcXjoP64uHMb3SY9yWnTrxZ4My9AiuM/9AF3tNDXQjlUNfnQB8FcDzf738PoDYi29RznxgOXrQPWGBJHcUc8NCMLsfeHwAItzVIJzv1pxmatVFpx6eCjUESihR/ZfH9GNNBrtxhp5CfzTsczYfegm4qs4dnqCXxxUKQ7IMZIcjeLXtcQHYwFXHosX6Aet1vCObWlqUZljlNL8y6YZm2xTXkCJ0evFsObMucg9fwSG8cTW+RfTcznJRgzIKeBdcqELjTKeJbsXWTMotGiHdPHxx/rUA/JcrtGHntLwzSQsfne57kw+1mg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=intel.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cPodYLyE7QHxmOGn50ccFh3gkdAT9OvB74QHdvxjwe0=; b=if0sPTVf2hv6lCRIC9oQBG0UWnUk3Q208ityzq816P4j0NuL4Ia1wuRGNVis3BkBgvhqIDWFzPk9thxqxf/hBcLB7HrweHIOVJYF6YNOGJIyCyWCPhNDFNi0RzaMlEvrpwosg8fo2bvZb1BQ+4zYbtrPIepZuSfTVeofjO5vqXg= Received: from DS7PR03CA0101.namprd03.prod.outlook.com (2603:10b6:5:3b7::16) by CO6PR02MB7842.namprd02.prod.outlook.com (2603:10b6:303:ad::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.24; Tue, 15 Jun 2021 10:44:14 +0000 Received: from DM3NAM02FT025.eop-nam02.prod.protection.outlook.com (2603:10b6:5:3b7:cafe::1a) by DS7PR03CA0101.outlook.office365.com (2603:10b6:5:3b7::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Tue, 15 Jun 2021 10:44:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT025.mail.protection.outlook.com (10.13.4.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:44:14 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 03:44:13 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 15 Jun 2021 03:44:13 -0700 Received: from [172.23.64.106] (port=49375 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lt6YH-0002VS-Kw; Tue, 15 Jun 2021 03:44:13 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id BFA051210FA; Tue, 15 Jun 2021 16:13:59 +0530 (IST) From: Manish Narani To: , , CC: , , , Manish Narani Subject: [PATCH 1/7] mmc: sdhci-of-arasan: Modified SD default speed to 19MHz for ZynqMP Date: Tue, 15 Jun 2021 16:13:51 +0530 Message-ID: <1623753837-21035-2-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> References: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: edad6ffe-cd45-4162-f38a-08d92fea849d X-MS-TrafficTypeDiagnostic: CO6PR02MB7842: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Gtn3zVAetad9xpdBfh7fL/xNFDLoTmv/OPECNUcwmSWLu8DMVc6varOGeNIpt1H7024Ezqhoac8DmHcjD+5Ye1FbYAKqu975ee21+vw/brJ0D9YqN7Ufmm3kXTqBESAlEL5Cl05hfMX7PRJkJrE0lP3zJoFlbQjjcwSJeTSf0998b4JSpup9PiYaHPJE10EIRI0vnFzyhWHcj2c2ELinVGJQmHs6q6Mx6Av8yI9RYblvk7ZFsNYti0lJk1o7lUQqcZIqpvpap3dvJjF7Xxb1ET1dcz3e9hKCw44jmH3SnuHRS1m8lw2//YrwtQOAw14CD1vIp/9779e8pAw5Bnc539osq7j5dtThGt4HDfjNFs5IrHnCuyG0d9si1z9gr1MFGh7xiafJXURlW61GnA7Yn6u87P1cILWBFKBmE9QaDAix1zIfL2pQdeBcKa4s8WYClCedviKGkETsYsxx0BMwK47soNogHXLwhJnyzmpbx1qTnpYaOOKSLUadVLdA4IhKnShy8u1oD9p/jeX6c8jTrh9QGCw+Rxm9vzN9GZJu50RYSdKRIn60EZAV9NBxYDIZb8zktLU2WTbLkDy+fVwqXDmtSsQaBEV9yesN7Fo/YtQzDUU8fZ5uERTq+0WwmiUCcLTilFdCxprHAaA1L7r+yyT0gdU6Mpkdkmt6JNsA2DeY+gMInF+uxnA6l6/e949t X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(136003)(39850400004)(396003)(346002)(376002)(36840700001)(46966006)(2616005)(5660300002)(8676002)(8936002)(70206006)(70586007)(26005)(47076005)(2906002)(36860700001)(110136005)(36906005)(478600001)(316002)(83380400001)(6266002)(336012)(107886003)(54906003)(426003)(82740400003)(36756003)(186003)(82310400003)(42186006)(356005)(4326008)(6666004)(44832011)(7636003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 10:44:14.2532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: edad6ffe-cd45-4162-f38a-08d92fea849d X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT025.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR02MB7842 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_114419_347813_22E2DB4F X-CRM114-Status: GOOD ( 13.36 ) 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 SD standard speed timing was met only at 19MHz and not 25 MHz, that's why changing driver to 19MHz. The reason for this is when a level shifter is used on the board, timing was met for standard speed only at 19MHz. Since this level shifter is commonly required for high speed modes, the driver is modified to use standard speed of 19Mhz. Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 839965f..fc3e41c 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -159,6 +159,12 @@ struct sdhci_arasan_data { /* Controller immediately reports SDHCI_CLOCK_INT_STABLE after enabling the * internal clock even when the clock isn't stable */ #define SDHCI_ARASAN_QUIRK_CLOCK_UNSTABLE BIT(1) +/* + * Some of the Arasan variations might not have timing requirements + * met at 25MHz for Default Speed mode, those controllers work at + * 19MHz instead + */ +#define SDHCI_ARASAN_QUIRK_CLOCK_25_BROKEN BIT(2) }; struct sdhci_arasan_of_data { @@ -290,6 +296,16 @@ static void sdhci_arasan_set_clock(struct sdhci_host *host, unsigned int clock) sdhci_arasan->is_phy_on = false; } + if (sdhci_arasan->quirks & SDHCI_ARASAN_QUIRK_CLOCK_25_BROKEN) { + /* + * Some of the Arasan variations might not have timing + * requirements met at 25MHz for Default Speed mode, + * those controllers work at 19MHz instead. + */ + if (clock == DEFAULT_SPEED_MAX_DTR) + clock = (DEFAULT_SPEED_MAX_DTR * 19) / 25; + } + /* Set the Input and Output Clock Phase Delays */ if (clk_data->set_clk_delays) clk_data->set_clk_delays(host); @@ -1598,6 +1614,8 @@ static int sdhci_arasan_probe(struct platform_device *pdev) if (of_device_is_compatible(np, "xlnx,zynqmp-8.9a")) { host->mmc_host_ops.execute_tuning = arasan_zynqmp_execute_tuning; + + sdhci_arasan->quirks |= SDHCI_ARASAN_QUIRK_CLOCK_25_BROKEN; } arasan_dt_parse_clk_phases(dev, &sdhci_arasan->clk_data); From patchwork Tue Jun 15 10:43:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 12321845 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 0AEFAC48BDF for ; Tue, 15 Jun 2021 14:06:41 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.133]) (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 B1318613FA for ; Tue, 15 Jun 2021 14:06:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B1318613FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=ejlxJLtxOMfpHEUlllwt5/TRf/T0BtYmfbdJsSqY53k=; b=hFRMMmhRnMn1JA w/BW0yK6pfCClxvFFR0nvmhenAPr1g2Atp/vgzjk7FudzmW4WUvIkp4NEh7C68T/LgsOuL8kW09wl bD2UnwhE6eKMDdxcaZp8REQUycTznvcXqTBgKcJmuwnVsirQJm8CSvha6D0EionlpMFBbhO9GjY7k vasDYAU/kn97PaRPGgtGfcEXEY7IGrWynSDnFk0kCuO/mTuF5snmUQEr5Vob2WpxlThJ9N//c8DTz NITSErzbyElveT4i117VHkRZKIMMN6AvP24UL+U5aKMK9fyEw2whyzkokCdJTN+7eKzmmg8LE8SG1 b+LlJcJSSIWUgiDGXR3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9Zc-000O1x-B3; Tue, 15 Jun 2021 13:57:49 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9GY-000DwX-0g for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:38:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TVuBGQum2Iz/QL0uncgH37Zy3FPAUec+G/7MqD7vj2Q=; b=o4UtPU66InsLbX0mqpl57+nqLZ RpSKUkbdcj/7MygLG4HkOsunsgrZteAi6wEcpLO/paBpJq8aAFH2xM8VztqE6S9jdsmaCfBtWHK97 xiMtG9VESkkEtFk5JQEKJMxHRFbt17GmR5ZheOPrI6cxBj0Yn03Aa96IL4qZserpzv37a2G548gG9 T7z0QxhjQ+Z/yPjO9wuIcoiEoXMTc6dYln8EOvqr1cElMJ+87+6T4uMvdYTZjaoXYJ1W1dDuFaEEY 3b1uy5DucyFt6ectd8S5oN8HpabNcSDeKLjB7ORxkDhoCzTdQvNu3AEL+vwFqanOL8wgGipRhwv6q UWmuUslA==; Received: from mail-dm6nam10on2047.outbound.protection.outlook.com ([40.107.93.47] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt6YV-007k46-AB for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 10:44:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=auGojrSxVlFmkMZNXCP6zYaSkGbP/tzb9kiKvSGfIl7jJcSoBLH1XTxfmBRHFbuVYoT80rs4FlFYEM1qAhbeA4iKZQZVCNxSkRAAjj+5pIYp8Rz8WigWDr/IpbG4p+V8Rfph5gkNkq53mK7ifW67fWD+JhdhN1kQesOavHX2gQ2ghHQQ+IhEvd6foJh4oQZOduqgOU/ed/LTVGcwTgzC38klQubldjOFZlp6tkSeamFupnInCFrFK9DMGB6j2TKXh/MAf3l4SbRrVwSLbZ7gNiBwqopuHSM4w+dh2OV7Tcs/yY5nd7Y8lpBMd9idNib6A4mssvF8aRna2RGQMKP21g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TVuBGQum2Iz/QL0uncgH37Zy3FPAUec+G/7MqD7vj2Q=; b=f7Y/6GFDW5ZaSB2o78U9cGMG7Rt2hXoFoLrlviCE9Uo8mja3gO9WHFcamsf/3/6dn17aCSLjJeOKizDLGU0X5ObrNP7PzeYGY4V74XXeLqaIhJZKp8t1QlxuIg+xSZFLlpo1RUvZM/99h9gFHzn82apFIn7RB9V/IeRrSjy5RaBU1iauI2qptF4GgGrOrIESMybR1ykFOCnlaeGFNea99xD+K3GjWtXSfnkiY2kOO8gk4HFkn2WIj/zjZD3qn6NDdEfSIpj+Tjqg4UZK8bBWeqbnCu2N+cu/3Nt2zNPA7NFlGflc2HD1FNmPoScGMAukVRq6dZ587+ZAlCZywdmDMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=intel.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TVuBGQum2Iz/QL0uncgH37Zy3FPAUec+G/7MqD7vj2Q=; b=p2TBsw4ymlaoL2F0Yf8FnYzduTXjJXVA+DDLpdYbyz6RpIQIW7PxpYPx7qRkdB70FYiEq1ifzQXcfIinPspItkMgPAUQOvFJkMvj7YoG7t3+MuayUjYPdY4RD64IYLmh1w2XijihihFSliS0mi1nXXTCONevN78OvTD2S5PJouA= Received: from DM6PR03CA0024.namprd03.prod.outlook.com (2603:10b6:5:40::37) by SN6PR02MB4766.namprd02.prod.outlook.com (2603:10b6:805:92::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Tue, 15 Jun 2021 10:44:27 +0000 Received: from DM3NAM02FT026.eop-nam02.prod.protection.outlook.com (2603:10b6:5:40:cafe::76) by DM6PR03CA0024.outlook.office365.com (2603:10b6:5:40::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:44:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT026.mail.protection.outlook.com (10.13.5.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:44:27 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 03:44:27 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 15 Jun 2021 03:44:27 -0700 Received: from [172.23.64.106] (port=49383 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lt6YU-0002XZ-O9; Tue, 15 Jun 2021 03:44:26 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id C4F6A1222B3; Tue, 15 Jun 2021 16:13:59 +0530 (IST) From: Manish Narani To: , , CC: , , , Manish Narani Subject: [PATCH 2/7] mmc: sdhci-of-arasan: Add "SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12" quirk. Date: Tue, 15 Jun 2021 16:13:52 +0530 Message-ID: <1623753837-21035-3-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> References: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 757522c9-adf8-462f-ac2e-08d92fea8c5f X-MS-TrafficTypeDiagnostic: SN6PR02MB4766: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:2331; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1boD7rt+5hBX1MabtXu6IKpnkjwBoYo289XIRA4DEHuXhaNY8Cik7InvUoUWslCqFvfNY/+eu5cWarZ/iDETXCybG7sdzjIVp7YEk455IVam7fkqbkcR/tQyvAfw1xHndnLiPNV/ykBfx+R3Z/IDndhMQej53+IHvC65w25ORh9DrXzmM1gNnYUYxjxnp+r6g7tSdVL6EbAe9qspsd8Z14UgvBjX5IKGllxnd6IB4SsPhFAMku4f5fO3dZ+mJI/RCG6JtyQuZyhg2q3JJAi2p2QbjjsRhizpUR2bFCNFeIa5+qRYg9h/KSgj5Bu8lqR3ZtDlMZjhQR5NkoOvFh+MF021zaLNn5NsBVlXDaOLoLIICd90fatj64BS12h+fy2m5iwEicwHIuJhUi0T8o+kOBN/TgJfX8AbMnB7ez4UyT2otprVM7+bLs4OTcNfQf13V3pPVzvMeecxp90vtg2O4uRIdo5wxQgnoAd+SQdLa8MVZlWnbX68Z42qhwSWPXaKz4D1nTQZz9x9RVHKeGONFAauYC5l5MCR6eYB3rWOmk0LGn10GdIIyTyfZuVq3UI2stQoSyw77Fd/vBQ9ni6P2A+7Bc1EPRgbmsK/Me2QIjuMxMT+Tk9fQD328czrWQadwNIRsUGUn3aBksRJOmkdVJBcmCuIDV+fOQsvGNNZ+7POYGJO3NO8KvIbf+IK4wVt X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(136003)(39850400004)(346002)(396003)(376002)(36840700001)(46966006)(36860700001)(82740400003)(83380400001)(186003)(2906002)(356005)(47076005)(82310400003)(54906003)(8676002)(70586007)(4744005)(7636003)(70206006)(2616005)(4326008)(110136005)(6266002)(478600001)(107886003)(44832011)(426003)(36756003)(36906005)(316002)(42186006)(336012)(26005)(8936002)(5660300002)(6666004)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 10:44:27.2659 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 757522c9-adf8-462f-ac2e-08d92fea8c5f X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT026.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB4766 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_114434_366960_03BA5822 X-CRM114-Status: UNSURE ( 8.28 ) X-CRM114-Notice: Please train this message. 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 Arasan controller supports AUTO CMD12, this patch adds "SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12" quirk to enable auto cmd12 feature. By using auto cmd12 we can also avoid following error message "Got data interrupt even though no data operation in progress" Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index fc3e41c..b13e719 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -1616,6 +1616,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev) arasan_zynqmp_execute_tuning; sdhci_arasan->quirks |= SDHCI_ARASAN_QUIRK_CLOCK_25_BROKEN; + host->quirks |= SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12; } arasan_dt_parse_clk_phases(dev, &sdhci_arasan->clk_data); From patchwork Tue Jun 15 10:43:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 12322101 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 7FD15C48BE5 for ; Tue, 15 Jun 2021 15:01:57 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.133]) (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 3BD406157F for ; Tue, 15 Jun 2021 15:01:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3BD406157F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=4ytKX1CAcK0w4El7c2DtJTee3QOzTC6uQ9mT8AKt2nQ=; b=3pnuLmfyYmOyFZ EUvL8uEHBDfqJ0CkVSNDjTzNSPOQjVw2DI8UmJ9NXoml5gGrtKfnF/zDT2t77QQ1oHwC9uehBqG36 IK03O81gPUN7A1CFR69FohR98X5TZtuMkD2rqPHZ91G5Wd+wnluSZrFlEHTOJ0o5rZLF1dRWXNzDG e2XoxdXARcCCIyCumi4PzU9TNHDuSmAFQUUEmujtWJWJvO0vDsNX/EUSa8xaLmo6dDODS4f8OrAMW SAFvVhK1NAFk54eupMiN8oQ+/JID9up8tJHEOTW41j0sIXXrNDPWTZIosD5PLdc8fA1WICBTU4dvy 7xNAIJPxJR3RXntWXu2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltARH-000j3T-NE; Tue, 15 Jun 2021 14:53:20 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9GX-000DDm-G7 for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:38:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=awISeX8nP/8a7l8ZdxA4sP1jd8hT49vVAvwbW90WokA=; b=BxHsmmiY/dQt+mKahXUNf6UAo8 8EVu4JBlI2Yma4mar1u7R/d+VoeUZk5nOj+wt5gCXA4CL14U/xHEmuDP/LeZJh/cKHdMP8ve2r/kw JAEouJ1GxqCLbZwBuEzEv6bQCRDbkh5qTAb7GKaMRqc+AVMZKsTxhOmZJI/TCrrMiKc6RZPmF+r4F 4nOGGD0AHD5nKOT/1XintBKBlGYc5WQrcFIENA5N0JrfGa4nO5RMJ7bPVgyRgBD4/73W+4qagWzMA TDwgWS0EtpfP8gf3fW6vvmDG8C3PdW4JERGAmJLlvg4yqx7+iotsU2+MhbTcrrEyxN+O1b4w5fAXu YR0/woNA==; Received: from mail-dm6nam12on2072.outbound.protection.outlook.com ([40.107.243.72] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt6Yh-007k4k-Vw for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 10:44:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b/58alMKLo+qJTMFMPJbRg3QEe80gI5qC3cX4KzJ8Afn07eCCWhJK+GVlPnVWIkttUfH0SGyxD4lxIXYT/LHZY4KfCcgi7Xa12eNZ1OU1RnZPVGry5LRt/hZtADkRPU8d5gJMr6euaz0OGjA6//+asueaHTl8obGyll0QKm1HT7a7ZZnmM+unSYIpXlmxvPBiwchdM8RhO6AbgbSgdPg15CEI94s94OrBg/7FIX7/PcELfaZsbk4tGlqFz3bJYl1edEDMei3d1vaVInBHK+HgltIaqp2cl50d65leT8C/FHFcg/HrobAM2y2Z+w6I1U1vTfHbH3M5ISwkuu68PZVhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=awISeX8nP/8a7l8ZdxA4sP1jd8hT49vVAvwbW90WokA=; b=PTFoqAdgzILjF0pQT6NPyrjePw81WIpwFwu9xYRl7OtSlVrMJ1CecSj7POM+DUhy5maOMTL3mDKoz6lxhZCMXKgrfGYZf/hJ24aVYI5nQSbWuJVWv8JCz9XY7o35TtSEzKr03ys70n6Yq79cHCblhs1sW3Ra+qzHXCAAFM56QF3ZtWnf9KFPhDheHBZBpOwamS1DB/bIvPK+A+bi9ADrTdDRyvfBK/ejIZNj7X3Rqmy7TVYt0J36+D5b4B1yxvtXhC4bHjpRPkRYnP/vRW6K7CItWk8zxJ46DfF+X6kSekcAcXyrCTo7qkMNgkPyPCM/rlny6xZXhxwLt4q/trOgtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=intel.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=awISeX8nP/8a7l8ZdxA4sP1jd8hT49vVAvwbW90WokA=; b=Jnrj0FylBDA0OXdP5hFkmd3oUa/Wnzf9xAf0l3Xn3nFP8iuKZEAEr+FX4gQNpAgKmpTt+wQFbS3kYlfp9A01ErbX+jCAxgFVpBoNat2z7MBpTGIXHTU56RhzkAQNLpUqRZdQ1yINWzR58/aFmnNQX54ZnB/zDpUQS2MDoi+QL+Q= Received: from BN6PR2001CA0041.namprd20.prod.outlook.com (2603:10b6:405:16::27) by PH0PR02MB7799.namprd02.prod.outlook.com (2603:10b6:510:5d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.24; Tue, 15 Jun 2021 10:44:41 +0000 Received: from BN1NAM02FT003.eop-nam02.prod.protection.outlook.com (2603:10b6:405:16:cafe::3e) by BN6PR2001CA0041.outlook.office365.com (2603:10b6:405:16::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15 via Frontend Transport; Tue, 15 Jun 2021 10:44:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT003.mail.protection.outlook.com (10.13.2.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:44:40 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 03:44:40 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 15 Jun 2021 03:44:40 -0700 Received: from [172.23.64.106] (port=49387 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lt6Yh-0002Y5-R8; Tue, 15 Jun 2021 03:44:40 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id CB5601222C4; Tue, 15 Jun 2021 16:13:59 +0530 (IST) From: Manish Narani To: , , CC: , , , Manish Narani Subject: [PATCH 3/7] mmc: sdhci-of-arasan: Skip Auto tuning for DDR50 mode in ZynqMP platform Date: Tue, 15 Jun 2021 16:13:53 +0530 Message-ID: <1623753837-21035-4-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> References: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7d628794-8228-42cb-5465-08d92fea945b X-MS-TrafficTypeDiagnostic: PH0PR02MB7799: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VYMwM86wGBDW/GLMtMVIMssZPS7MgevYAFFT0TR/4dUscIim8oqbyVCKT091/SL3SplLa35MeLmoWMZHCUsWTzu2qh6Ltf0cPaxm8PhM+Z+DCb+WOgVF+xxXdceHASIDJ/gwqyARvnsNJuhjgw5Pxt3dVVDcRDfR9mQGM5hHbIRjHD37mP9MA8r6zSQbKI9d0MfP2G6tDuoMD4LZPiWX2xL1ebIHu17jMMbpuVr4/A50ms9S9JvSDRknc5LW1NfoFfU2YxPCvSrmjZ+gqKy9KglnjnZctpyWhO7xwvOxifReiyzp1TTeBpExqeejHHolxKvdpTuDL5hBz840kWjz+xIR1beEabjIYui301b2y853n9y/nZvFE5E/s0dl4oTvnw0Z10BJ2K4Y2+z9E+3j5Ls5UkcOqMpkzVrSBKBZdtYIPaK5H4svmE3Q/NHkzXjjaJGMI3ydCz60XWOkBlmyEFLNrDIYvkkJBnjds1T5KXjRmba46bMpg6A8ZgdWzHs+U/ThFiUq7SHBAqp5NiHshO2bJXu691VQN0ZmyMHOc5G22eMhGENIhAaFuaroFgE/HfVsErDiQPKvRy2pUGinqE4GtaQ/Hksn2KfJsBSvZPU+EgyOTAkKZDJnL21WGHqxrY3Q0Q1DiBV/1vLW3qVOHKUAFRuwBroUOsvZSoGSLg4wU1w9gC0SvkbCK1vlN90/ X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(376002)(396003)(136003)(39850400004)(346002)(46966006)(36840700001)(82740400003)(6666004)(26005)(70586007)(2616005)(107886003)(426003)(186003)(47076005)(7636003)(8676002)(356005)(5660300002)(8936002)(70206006)(4744005)(36756003)(478600001)(44832011)(54906003)(36906005)(2906002)(6266002)(336012)(42186006)(316002)(4326008)(82310400003)(36860700001)(110136005)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 10:44:40.6022 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d628794-8228-42cb-5465-08d92fea945b X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT003.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR02MB7799 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_114447_024568_887D2964 X-CRM114-Status: GOOD ( 10.01 ) 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 ZynqMP platform does not perform auto tuning in DDR50 mode. Skip the same while the card is operating in DDR50 mode. Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index b13e719..1980d0b 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -894,6 +894,10 @@ static int arasan_zynqmp_execute_tuning(struct mmc_host *mmc, u32 opcode) NODE_SD_1; int err; + /* ZynqMP SD controller does not perform auto tuning in DDR50 mode */ + if (mmc->ios.timing == MMC_TIMING_UHS_DDR50) + return 0; + arasan_zynqmp_dll_reset(host, device_id); err = sdhci_execute_tuning(mmc, opcode); From patchwork Tue Jun 15 10:43:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 12321839 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 EE732C48BE5 for ; Tue, 15 Jun 2021 14:04:47 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.133]) (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 B6A6161459 for ; Tue, 15 Jun 2021 14:04:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6A6161459 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=+lXiA2UvzXDCi7+juRGVMp/qTEEayg/8M0Se4JddfRw=; b=VSmQm6ajGIZUDV WJrCfgpC43/7q3p+86mBG3voQOb0oM0wsPS6gebde9Mbz3WJbvemG778xTm1chMTrxx0keryD0Oat Xk4leQUr57mFqyVAS1FOo50kacsCeKpbZ9vaifZKqbQ1dZoMTxwOkBZ6FNiMzb9gwR2L7HJgMjy74 F2UCfpF5RYj7Vqh7TQEHHKueAo6l4lFhB6wb6CjPoOo0UAdnEG8Ae+OXMkmoOraIRDi8VH0g616O/ B8xrXWsU+C301nmnzg6R/sq4dGUf/3ikOJlebh/dnd6BCgvz/ycvBDWb4g6PJizliyPDt4E1ZhQ++ ZWR+G8jAim3J+RcrWo5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9Yp-000NjY-RN; Tue, 15 Jun 2021 13:57:00 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9GW-000DwX-P5 for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:38:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kZAXm7TfAkASmMPEF0+iQ2b5NREZbUoyyCqWu4EIC6Y=; b=EQOfmbDz5uQTh6DETmJL3u6Xeh j7TkU8PHfOR3XroHln5so1TutS0dd4JsU6u7+5bG8JCFIBgP4EMsyCk5rXQ3uDWo38xji6ZRvPDBK x3I7sPLi1Z24+VvCnPNO9btgZB8uvw9lNDItCudCcPFm1gSdPh75B8W1P+2qM/s591XOrpdFaWRSX JzEQhcYMV3h2pDsCs9qYZkGn/EG3zF+IIFzENVzZEHxivh68VDFQq2N7BQCQAYyGJvY2DkHF51sU9 /Hx5pjivMpe2R0hGjB9OpU855w61as2cjT/I+wyymfmquxKR086GN5/BvTWdOdPt432aOkbw7f1Q7 f8jAW7eg==; Received: from mail-bn8nam12on2062.outbound.protection.outlook.com ([40.107.237.62] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt6Yx-007k64-Bq for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 10:45:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HDIXCwH8o1C/mM+xkTBmwl64fiL0H8WCHe62rtZNceVW1egfr1jWfQWKXTQOVjGGOBuwT52shgz5FCAQTTo+8ZIQjM445dVj74i81p7qkBzN91iJ+WrrH7ldVTkreoIRoVYIG3FhAj26uX0RYYAwCLGDs4EeGPoYzaE/IQAa4pHgGBMl7tabwuzdx17X2C/5MSaU7lYheFlGlq9CSfQk2HXwW2dPEecOqg3tuymUIwDi8rV5urmshafiK1CwAK4E7sXo2efDvKg+5C74uN4uMaFwJQdFHZAjSpFadn0yur/L99yX1mSdtpbmky2kPjykLuLY+w7fVWM30US8P6ngYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kZAXm7TfAkASmMPEF0+iQ2b5NREZbUoyyCqWu4EIC6Y=; b=YswywRMkLfa+lt5jqw0eRuffcIYGLQ4v+Pky8dLjIg2/hAxHgQkfrxYVWFaNIj5UV30Ux/VptrY0/Q4rSI+nweS0DjEFpXqGA5Uhtk1Zgnw+rl1IUSNqocK3vkut904QKNkMhXnYeCNO+gtXbzo+Ih/ifayNBaQQBOlRFxHNaAFvhd6bVSR1OT9JdU4zPR4ujPQUkpAJvYOmDDcOy4tFLP4WOpnerC3mx/5BS2kMBJonwquvc1YU/LmAujLcqdddTqj1YnLLBCbAzwZsUTiao/lCzu1sKZRyWlnqa9BlsURvY2dBp9UTdCYKi38NoADBaYhoTMtLPhZqrINk4vCD8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=intel.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kZAXm7TfAkASmMPEF0+iQ2b5NREZbUoyyCqWu4EIC6Y=; b=CnAGWCv3hIxceyVi5BISn3hcoqK5ZuB16qZbJoVJCF+ZtuERXNmzmZAZ1v+fAgTKmizHZg5u90BgvRvDzrmYuglkjXUR46GNHuh3yl/u2adyROB/hWrUp5deLzP4z7w4dxZmGvDLzyQAGD108MQ3Nt4HXpwQcWJAukMBZusVtoY= Received: from BN6PR16CA0029.namprd16.prod.outlook.com (2603:10b6:405:14::15) by BYAPR02MB5735.namprd02.prod.outlook.com (2603:10b6:a03:128::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Tue, 15 Jun 2021 10:44:57 +0000 Received: from BN1NAM02FT059.eop-nam02.prod.protection.outlook.com (2603:10b6:405:14:cafe::1) by BN6PR16CA0029.outlook.office365.com (2603:10b6:405:14::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:44:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT059.mail.protection.outlook.com (10.13.2.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:44:56 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 03:44:53 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 15 Jun 2021 03:44:53 -0700 Received: from [172.23.64.106] (port=49389 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lt6Yu-0008Kc-Uc; Tue, 15 Jun 2021 03:44:53 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id D42181222C7; Tue, 15 Jun 2021 16:13:59 +0530 (IST) From: Manish Narani To: , , CC: , , , Manish Narani Subject: [PATCH 4/7] mmc: host: sdhci-of-arasan: Check return value of non-void funtions Date: Tue, 15 Jun 2021 16:13:54 +0530 Message-ID: <1623753837-21035-5-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> References: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4a06f48b-6f1a-4cbd-b42a-08d92fea9e02 X-MS-TrafficTypeDiagnostic: BYAPR02MB5735: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:270; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MuO6Oygn18YskJmuq2Cf6hms+no+Sy0ArGRVYMHySDBCSe8Rsj69/YBly4JEVIXacGroTeq6udIKIIOWWu9AX2h8bJCknJnBaKTaLNvBhr68yvxQpmpVWescrfpmNXsA2j5DwLI8efFcD/XJKDskgEdb27qihEbBKw4V3gcJAiqSMvGVDMRAjsOi/gHyy0R7VA0Uj6511xninYiwJAws1SuvGwGrYsq12zW83A2Jk7TTty0p5olZVOjlqAGx7X6YE6j4GXWjxHHUImJTmunbyNXZN3Ta6/xN7a7oQJ+df8kymz40ORgJeMpdi7KbnuyXibICDqZjJRAmwfF9ZgEDiSQOfgcOUr+4H9pAPk7Of9V7sjKz/M/aYJ4A5QLUTSB2HXgI85FtHZ50VsRr+Ceih2WYr75tjh/Zm0SKX7EavzIvEw/IVRR5nl69lAO1pLb7ZTDvmJMr3tlHJobVWMVI1nFc5Xfco9pSliPnikyqtWxvfPTaYlDJK4F9IOaw1xBgU4LpF7DLAqHPWxvEKXCVYt79TGrxAD8rKrRWb7UVFJMFnqE+Opkx+GxAiH1PvC61k8P0vTgVYJV4nVWOJqt/n31RF+5FHXNKkzXhiMtffda2oQESV+NwlLeNpsFGDViQjm37xFkxe3KAhxQPfPDIQKW6wO5IGmb34pShc97+omYlN2jVY6pASFRkDfky8pB1 X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(136003)(39850400004)(396003)(376002)(346002)(46966006)(36840700001)(36906005)(70206006)(316002)(47076005)(186003)(426003)(4326008)(70586007)(8936002)(2616005)(336012)(36860700001)(36756003)(44832011)(5660300002)(2906002)(26005)(42186006)(8676002)(110136005)(83380400001)(478600001)(82310400003)(7636003)(107886003)(82740400003)(6666004)(356005)(6266002)(54906003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 10:44:56.8046 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a06f48b-6f1a-4cbd-b42a-08d92fea9e02 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT059.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5735 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_114502_331463_120F92E7 X-CRM114-Status: GOOD ( 11.75 ) 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 At a couple of places, the return values of the non-void functions were not getting checked. This was reported by the coverity tool. Modify the code to check the return values of the same. Addresses-Coverity: ("check_return") Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 1980d0b..98671a3 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -273,7 +273,12 @@ static void sdhci_arasan_set_clock(struct sdhci_host *host, unsigned int clock) * through low speeds without power cycling. */ sdhci_set_clock(host, host->max_clk); - phy_power_on(sdhci_arasan->phy); + if (phy_power_on(sdhci_arasan->phy)) { + pr_err("%s: Cannot power on phy.\n", + mmc_hostname(host->mmc)); + return; + } + sdhci_arasan->is_phy_on = true; /* @@ -323,7 +328,12 @@ static void sdhci_arasan_set_clock(struct sdhci_host *host, unsigned int clock) msleep(20); if (ctrl_phy) { - phy_power_on(sdhci_arasan->phy); + if (phy_power_on(sdhci_arasan->phy)) { + pr_err("%s: Cannot power on phy.\n", + mmc_hostname(host->mmc)); + return; + } + sdhci_arasan->is_phy_on = true; } } @@ -479,7 +489,9 @@ static int sdhci_arasan_suspend(struct device *dev) ret = phy_power_off(sdhci_arasan->phy); if (ret) { dev_err(dev, "Cannot power off phy.\n"); - sdhci_resume_host(host); + if (sdhci_resume_host(host)) + dev_err(dev, "Cannot resume host.\n"); + return ret; } sdhci_arasan->is_phy_on = false; From patchwork Tue Jun 15 10:43:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 12322471 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 521A6C48BDF for ; Tue, 15 Jun 2021 17:10:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0503A6143D for ; Tue, 15 Jun 2021 17:10:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0503A6143D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=XCNRqMEXiDqhuJL6/tZfYAdazgqHssrVSPkZ6febELk=; b=QsLDTHolweSJbc WAB6SLo/uYDHCdVG1s8u1In178dbdRT/wd9FkQWjJzDr6JqgHNIoaX6HM5O9iHAryILg/5m97Np38 hwQY33dqonXJpHkWNRw2Hxvtd5N82RP3KASwC2SYwR/cMUPzJ9uljGktO9f4mvQWdu7/vQXvPLFm8 2qALkAzK6N4bcK1TuXkxWuKjsZJIUldQT/O5mFYkX0TlwtupazLn28MTZeXQJIjH3VRsnRN8Z0h0x Z2/RbAeOLbwjrswhxnVBrmkts3kGJ2CZE8A4mlQc7RzQxDMfBBehdEUtQreMrz8BSWTk6R4stp//P WCku34R1dC8wXTBz59Sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltCSO-001ZOm-DO; Tue, 15 Jun 2021 17:02:34 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9GW-000DEY-Gk for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:38:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=L/X8zKCxDl0F6JjqNWYyfnkEY7MErM2FR9FD1EBp5sw=; b=mUOTGY2gXDLrPHJ3fswhfnZgEf 6h62XhNQ35QfmCELae+FOjh9TDeLoz1zi5avAeQ4JHR662Ry+n86HdCJQrlZEmLH8Pho7rf9vihtR hNU65XKscd9uQ/40C6OxeEqtrFM6CmyCpzkwx2C1fqViO9ayN+1SuJRg8yrEse7OVdF8un/JTgcH5 y20ibMlGVVqWkYRUo5V71kSa/kTq0TBO2XS/l8u03cW27wj6UF58X/KEpSyzPvMrsfhjTRf0z7VEE 2STy1kT5oi6l8GBPQ7SUmGO8u7N9KGrypKbx9nk7u1mVB6p0TLoeKqcqK0XEDaAIaBBTYIWlQV9VR LHTtEWJg==; Received: from mail-co1nam11on2044.outbound.protection.outlook.com ([40.107.220.44] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt6ZB-007k7H-KN for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 10:45:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TIW+ikb7X2D0COR6O1FfuiOa/xwWOouVmiUs3XYeJxkTxd9Ffv4U9MfpZUvmGuZ/J8/0P745/Xnze1f1EBdCk44wpix0psgLqd182CMgSFPt7hPxjS+f6/2g+ZKo6VSH9ISu0zlltFV+yLmYvdTb1Ixf1/i1kdZIrD1aaS4Rwvb+PjioPS51Fh/8vsLspEuoNYNYpwQExp37b+1XPgyqBoS2Pi5iH2unTe9N0enw8nuOPRKwrcF1exeRkYIccdgswYjU8CEWonv2f/1AdD9lCUh2uQLxYuf6DLIJf4HOf4W7AGQ3a5gX1XxD5yKPRrqs+mM2fzsjwruyd8IZM+087g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L/X8zKCxDl0F6JjqNWYyfnkEY7MErM2FR9FD1EBp5sw=; b=QDDO4A97IvkImfQzwcnMtWG4H4HiLklJ673H2xzXiZBsX3VbbYNcoRWuXrvZ8rCTONF4VMI3BzTvhpr0UEpGVAqhSkthVKWUg6mSw+IF4bqC+VUFNL65ZRri5D6LQ0iJoumxEzqOQHiIPYIVYL0KFTGDLJHzHzohaOxCaz8SErfrb8Q7lgWUTiBYkEzVhMjbYtOthvHiUbs33Cxn8PcqnWirRQwIjNmMOGRzUHiAIxlX+1lXpEZgtwajBiKCptYlX/Dkz0Dc/4iOJ5+q2mkd5zEqKBAgSyIm5fa7CiJ1jd4mD+fiyY8GDdNAZLKolpFGOy/nzDlCxp3BNjuEgx5kfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=intel.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L/X8zKCxDl0F6JjqNWYyfnkEY7MErM2FR9FD1EBp5sw=; b=g8Ir1y6c0dalAyDvFCOSpQMz0/hw2zbcuNGAENY6yinhrBSKwAZrSy4NHu9gHyRjiL+cRSuHhJkhEqF0UQW7Wlh0m6B+9imVRqtHBZTBU4A9mzrNICGDNGERU9aeVy98PDMX+1Oj4MaYIK0E7fhztVN7xK2wWIdwaYBbpkW+8fQ= Received: from BN9PR03CA0339.namprd03.prod.outlook.com (2603:10b6:408:f6::14) by CH2PR02MB6491.namprd02.prod.outlook.com (2603:10b6:610:35::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.23; Tue, 15 Jun 2021 10:45:11 +0000 Received: from BN1NAM02FT056.eop-nam02.prod.protection.outlook.com (2603:10b6:408:f6:cafe::38) by BN9PR03CA0339.outlook.office365.com (2603:10b6:408:f6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:45:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT056.mail.protection.outlook.com (10.13.2.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:45:11 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 03:45:06 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 15 Jun 2021 03:45:06 -0700 Received: from [172.23.64.106] (port=49393 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lt6Z8-0008QQ-1f; Tue, 15 Jun 2021 03:45:06 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id D84E51222C8; Tue, 15 Jun 2021 16:13:59 +0530 (IST) From: Manish Narani To: , , CC: , , , Manish Narani Subject: [PATCH 5/7] mmc: host: sdhci-of-arasan: Use appropriate type of division macro Date: Tue, 15 Jun 2021 16:13:55 +0530 Message-ID: <1623753837-21035-6-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> References: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eb594fb2-7a52-433b-103f-08d92feaa69c X-MS-TrafficTypeDiagnostic: CH2PR02MB6491: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nw4CTZAF6GkAZf0vap7tBgdEqZDlzOiGcxEN1ygENHzz8T/ZL436+nTLUaksMHpeTgnMiUPuw11hXRPRfmq+nmZd6AqUxdbTSZcGL7HFzLWFig3tyJ+ZW6yn0nkABj81dwTKDSd/KsL9GOwKomCCKHh5z1zWio1qOp8aGttv1jtDKY2dZ5wsVptq3s7hsN9K1EdUrIHEsOHmbnSfWMfpocejFe3XiVYcysvpLi58rwCo6APc60/9nKmeTS3t1ZFZjLmfxANw4XJYKA5CP9UGef7VdevYySL67Oi5MlpYHcT/AUrlrPCrH+UQrlkkoubcY4VtrPtFyY5PcOqfc/gwcaEvpSAF1yMJTVhKqk0tuhw/K7IEiDfj7EShtCB/KDAVnyxoQDaJfXStHCEKKtmLSm5MiTQWiVB4p236vsP1qLj6KvGUlnKo81zMDnCkxLbde5CDVUjLZ6C4dJvWhI5na8aHvUDF9QVbfrL+dH+AepFigLIFtiB5m7YeAFxII45gZsBrecLEwRmB/XnJrhr6LDO8GbaAF9qaYFkXvcvNAV0L2CNd+15LQjUa1LSi+l9PmNS6oD17KM6HH5d0JWoTyYdvKyEipRJLOnOWZRu3KIV+HeAIUD8YwaubEPCos9a4YjEM/Hok+1xWk8I/ipzRMKJhywUG5DSafK8/Iz7BEjdMqHpSORcE2OGZ1U43Ix4T X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(376002)(39850400004)(346002)(136003)(396003)(46966006)(36840700001)(8676002)(70206006)(6266002)(478600001)(8936002)(2616005)(5660300002)(36906005)(4326008)(70586007)(107886003)(110136005)(316002)(36756003)(54906003)(42186006)(7636003)(186003)(82740400003)(2906002)(6666004)(47076005)(336012)(36860700001)(44832011)(82310400003)(83380400001)(356005)(426003)(26005)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 10:45:11.2194 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb594fb2-7a52-433b-103f-08d92feaa69c X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT056.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR02MB6491 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_114516_543008_4E77BEDA X-CRM114-Status: GOOD ( 11.38 ) 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 The division macro DIV_ROUND_CLOSEST takes int values as the argument. However the code here uses unsigned int values for this, which is causing the values comparison with 0 as always true. We can use DIV_ROUND_CLOSEST_ULL instead for the same. Addresses-coverity: ("result_independent_of_operands") Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 98671a3..510d8fc 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -984,7 +984,7 @@ static void sdhci_arasan_update_baseclkfreq(struct sdhci_host *host) struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host); const struct sdhci_arasan_soc_ctl_map *soc_ctl_map = sdhci_arasan->soc_ctl_map; - u32 mhz = DIV_ROUND_CLOSEST(clk_get_rate(pltfm_host->clk), 1000000); + u32 mhz = DIV_ROUND_CLOSEST_ULL(clk_get_rate(pltfm_host->clk), 1000000); /* Having a map is optional */ if (!soc_ctl_map) From patchwork Tue Jun 15 10:43:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 12321841 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 3EB67C49361 for ; Tue, 15 Jun 2021 14:05:18 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.133]) (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 0F80E61477 for ; Tue, 15 Jun 2021 14:05:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0F80E61477 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=uFoE3iXxuL3vJf28jDSoJ1YXYOZwWN43LA4zSh+PeLQ=; b=KovD+97uPdqn2m OKYJQ0CaPwVyRpJEHLGzO+9mDt9nt79a6VQVA6HRmawYPUtOltMawkZABx4XTUiSz9dK+I4UEhN40 AmxpW1Yt/PX6nYhvooMipdJQbZ0nNTd8vhbIwzaj/i5iqDbvtUWFfvZa7KFCVY0PvqEKiY+saTNFk KRt5PWhyTEvfvissz2Zx6bLTfc9dR5iuQz2b7cD/gQYXyGmz8bTWHqYCRH+98E9jTH78aThqiJplI upbndjGAcXp/ycENRzKT99aerYjhPbu0dscm8BEk0h1V8XlPIpeWeV370nO2OP/dtP5VycNn13zEY Aa4uPu8b9tL7C8ZfMdRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9Y8-000NOi-EM; Tue, 15 Jun 2021 13:56:19 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9GV-000DwX-Qt for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:38:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JVRakVuvA3WMUnZPLkvHCaj9dbsH9q41SKzsTcvxp2Y=; b=G6Bem1yw1G18JmahNJSJ2ot4mp W7/MTGXjPZDQ70JVZErxGD3IqrnVbyFXj19kD2C3AbUOgDFcKjw1f1Iss5LHn+AukvDtnnFM/ObIo 6ZWqsZLinBcdBrUxnOWIEy2SjrzODcwJmPTDJoCMx42BQgQVvZj2zFEri8DP9ZbBgm/oAFpY89YdE wgaADaZvVuoPlJS5SuwYCMxC2DrKV/rHhvhkiqB1+t1y/h2SfmVVyuVQ/QFqlKwRT5ALyjouYhDzC bPm0uURAfwU38qB0zCuo/VO0g0r+7jrYenmBKn4kt20g+jhd0ZU4rZOIgAORgOTw+qPQM/MN7r68Y /rT1HsNA==; Received: from mail-dm6nam10on2079.outbound.protection.outlook.com ([40.107.93.79] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt6ZM-007k8J-R5 for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 10:45:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S7c8N4Hz693aQQUyQaXmx+ceYq7kOnIiaTdolWbrtF47yH/EV05cikTvA+Ban3nsKsk2q7Uy51vK8TooA4CP7aMnV7bazHpDVERDcbfgwtg3ycd1DFjoTz0P3JVaXqyeDAL47ll7TNZuh4AnBnFVpc/gqHrRPxaxZTKyFeNWMEUNhHqHYqQ1V4XGAVnVVGTAHGQuQPfow4y+G6Hzxqgk1rBOyVwNdFFbj6N6UmQ8RBNlDoL7PIeBc3GumFjVE4yKyc+rr4whtVnRpADkBpVamUXqI3SLEiUxLRWKZteXcmUNpKo9Q0wiyjzXGFhZIvg9ED4a8VNZZGy4HTs2b/wkhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JVRakVuvA3WMUnZPLkvHCaj9dbsH9q41SKzsTcvxp2Y=; b=lxLpqjUjZ5N0USLbQIeE/wqT+3fuPX4GZjN4akhuoP9MbsM0Iy//mOPgdnbbvwey7PXs/2BVMRXKNocdHfAUZfT2SDilGeVhlLw4AkFmTfUzYZ8gWSj9cOrdeEXxHrNm2WLklVfkYioxLS/sGzg0hxpw2EMO58VD80cVHCkjy+iknMyxZWqxfDf+8CaTvjZkLlx5l+KHlBG2FfRuX7mUmwxB38//niyO3prkULpEiBAlgXpmkc+ehPMKzA2X//EDMHsDIhJvI8IRo+uQXdgtt1NyUonCgxBzaMX9IJrADstNzGE9a+NVcdYEfqGR1/WH3axb2ivx7QXYibRBWnO04Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=intel.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JVRakVuvA3WMUnZPLkvHCaj9dbsH9q41SKzsTcvxp2Y=; b=T6GJZK4/l0cVmYx0v8G2qfOVvi3TYGA2u6tSQDg0x8XpBA6YCbXjqeZLe6l42S74vr7tKjGMImwFhUXdriidjENrIx8Z68H9XETYPHERR4akp0bO21cXTnfAi4FqugcbFj9RR5e6OOjxujySErwK10fqDF8u+GKWA1w3JK33G5Q= Received: from DM5PR18CA0057.namprd18.prod.outlook.com (2603:10b6:3:22::19) by CY4PR02MB2247.namprd02.prod.outlook.com (2603:10b6:903:a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Tue, 15 Jun 2021 10:45:20 +0000 Received: from DM3NAM02FT060.eop-nam02.prod.protection.outlook.com (2603:10b6:3:22:cafe::20) by DM5PR18CA0057.outlook.office365.com (2603:10b6:3:22::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Tue, 15 Jun 2021 10:45:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT060.mail.protection.outlook.com (10.13.4.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:45:20 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 03:45:19 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 15 Jun 2021 03:45:19 -0700 Received: from [172.23.64.106] (port=49399 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lt6ZL-0008Sa-52; Tue, 15 Jun 2021 03:45:19 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id DBC2B1222CA; Tue, 15 Jun 2021 16:13:59 +0530 (IST) From: Manish Narani To: , , CC: , , , Manish Narani Subject: [PATCH 6/7] mmc: host: sdhci-of-arasan: Modify data type of the clk_phase array Date: Tue, 15 Jun 2021 16:13:56 +0530 Message-ID: <1623753837-21035-7-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> References: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4316f451-e205-48c9-db07-08d92feaac0d X-MS-TrafficTypeDiagnostic: CY4PR02MB2247: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ak0vKjV7B4As4Xp4mz30h+zeGldIO86NtEt1J4tI+L1zlIVUNTo+VAG8wxtdOGRGk+yR9mTsZ83Pt8ftEJ1LuUl2L6X0DrLmoU+TYaK2/8oY1SlMuNjiwfWEYoq9Cv9OfMPaQo23rblg6ePul4DraNpf7fxG4D6VQe5DVr2WnDOStHB0+Mr+HD4v9QHK/1LGVv5h69XntAwRmVJ/qPUNfFPDwEqXpyORrGJhUWIFcLjW738kA6ys49ayonyFP/qf1yRN2DmKf1jt2wRvYe/blJ63ewb7aKCcNqwQh1O/XdlHGQ1GaKXrBqKrSFX8AyuPw6WLrl2fVQk25LEoNy+A2XDi2+AwzAoVpJp6WVGtJKMfBqc882LXflPvfHOHPoorhskLjmexYdtDkwd5K3Q0IiSlNMNaFsHj93H5YVIorjPAAMNc9FaQR0JE9KkoL8SMRn1r/UKckJWU+YWeNUVOETGZmlxjzNiAZLh+amfcM/hPGtRx5o0J5XKEV8QOXQjNGor8kJiAAJ+HjTeghKcg9nwV0d7+GAW0Ub5OSjd56PcwTUws0bRrjh+YlihVwhSWraf3OriXnYifctX+87UvEzQbwWnVmLWbzE2UxFTdm0bLzGMPysVzWP7YQjL3GfGFCVfMeK4k/FnfdtkopfiJzsuWEuNgbftc3H95mv5eBYOfz0wSKTdI45QcoTMiy4rl X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(396003)(39850400004)(136003)(376002)(346002)(36840700001)(46966006)(83380400001)(82310400003)(8936002)(8676002)(478600001)(47076005)(54906003)(107886003)(2616005)(82740400003)(70206006)(44832011)(5660300002)(186003)(70586007)(2906002)(426003)(36860700001)(36906005)(316002)(110136005)(7636003)(36756003)(4326008)(6666004)(4744005)(356005)(42186006)(26005)(336012)(6266002)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 10:45:20.4178 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4316f451-e205-48c9-db07-08d92feaac0d X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT060.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR02MB2247 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_114527_720430_91A6C984 X-CRM114-Status: GOOD ( 11.55 ) 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 Modify the data type of the clk_phase array to u32 to make it compatible with the argument requirement of "of_property_read_variable_u32_array". Addresses-coverity: ("incompatible_param") Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 510d8fc..61fe13c 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -1018,7 +1018,7 @@ static void arasan_dt_read_clk_phase(struct device *dev, { struct device_node *np = dev->of_node; - int clk_phase[2] = {0}; + u32 clk_phase[2] = {0}; /* * Read Tap Delay values from DT, if the DT does not contain the From patchwork Tue Jun 15 10:43:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Narani X-Patchwork-Id: 12322669 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 432E3C48BE5 for ; Tue, 15 Jun 2021 18:59:33 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id EE11260FE6 for ; Tue, 15 Jun 2021 18:59:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE11260FE6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=d3+GVMJRCezOv4tIX6hzM5eMTCWtqpDCy88QoXTW0I4=; b=mE7vWOQclY+2So E0Zz7OWnBCZZJsp4+5E32+9CLyK19fuMoZIhYc+KL6G5sMnj5Ymx9JNFh5Cf41pV+rH+1TynoDWgm FE7L71hZYQ9jvdYdMNlr6jr9EndXjNA48VioNqAOCmZDIZMo7z6IzxjYYFEnjgfQ1tswS1FlSF4Dv ncSheDWUzIojBud5UnWBlgciGvEzUqc2nH9PA7Ql7/DJF/kM63kcf0aA8okK0eCUlpb5wMPIfJOtu NREcFXQEo0gAAD+LyTFui18QZOEwrP+Z9+HrihORD2JKWUxAQiKwblZpQacvxMJiodvtb7+8qt2yg Uf7BXdj6RVWwaoZKCmwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltEF3-002H81-PD; Tue, 15 Jun 2021 18:56:56 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9GV-000DDm-QG for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:38:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=AdBqTpgcIFoE6eOARZhuZubIdVZsLqWfeqOEE1TCt5A=; b=ifHO9PEAm1fyd2y8lTV4wG9uB9 F/yNmJNNmMwvk2cU77+pzbe0CU5zpneQtCDKE7xvltgPjp7+4T4HopXAyss8qAB1nEt/60gqiXj6m V0bduIssczDIFEahVXXtjh+p4cHtq+ufT4MWnsyp5YS52Bv0g4fg1PO/14QNxJKo3N6FliTBzbBP4 E8/RV7C/mS48pN1RLOCuEyi/WFLxCfu8a8VEEUAonVrCS5yzsISQRPpLRC4Qm8swdpieH2EMO2JWZ hYOhWeodRp1FVqsN3N+J63IqZaOCa6XlVQOX/uslOf6ePSyjop4uFot60xtPj5bxo5lRP0Ep2l0aO nGwJ0rRw==; Received: from mail-dm6nam11on2040.outbound.protection.outlook.com ([40.107.223.40] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt6ZY-007k8o-DL for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 10:45:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hNIDn/6i658GapgSgA5Yt4haHC0ZkLO56q5dPNCfB8gxioywkzy1dxZ3Qc05T2qO+5cxZIJBthHKyGhD0jcL0e2Pox9GIVFlDr1HvW5VdgJ3GUlORuMQ54ix0g79rGiircp8S1H8DW7fTDubOF40TwY7ENqnOSEzgm7W6nNvTyE92GRXK7eyad7YQYCB81Y/zTAfSnW/nZHZq2Y4A5RO8daVnLGlFeoGbbM9NMvUkeT0bomFHeFshZvs6O1oVBMxtUKMTO/iiPR0JvYRaSde9jUIXQYP1zMSGmokGnR0wNZsKKWWveqQPpHtz9AQJgaXOYJe8VrZA0qOnnpPHRZOug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AdBqTpgcIFoE6eOARZhuZubIdVZsLqWfeqOEE1TCt5A=; b=koO1jNn/BYPUvfqTBCfLj7gVdU8A9DEnG9PAeK7BtbZlKJT7URaFwSjBX0rZqZpfuMhMmnvGIS+Of5P7JRXdL74WhhqXzLDFCEb+3srY91guEVz6IUD87ZtCT+SgiqW1+Vxl1ppfm6BlazplFtE13NNeuZiBz8qx+jV4xPbotB0tsywfFI8IsWFfxwJsSSPAR9W3DzTdgjepKzVTAe34YqN2TKg8qBDFZk8m3M0HdvllaQ3Im0ceFbhQj5trczqdDyakxU6e0aM4L6mTkvsKN5+rrZtZlv8g1pAB+Nq6twiRTdpqsHNqr7eG0OUk5/aqgbo7PpGGg8BEt5vi7yBkNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=intel.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AdBqTpgcIFoE6eOARZhuZubIdVZsLqWfeqOEE1TCt5A=; b=QleiqIyLi0UlQVdhPQ2rAXhIiqND9tG+CCO+7qFnkyV0WhDMrxBtN/zcrO7H9ov+h7+VqqmQ6U2K5sR8nJP6p3hWZYhgXrjs9+Yml1wCX5CrAj3w3bgzyvulR8pRVLsvUeNLRUvQITT4Fx3DZiWzBtSgDilHF7UlvOntv+zK+tg= Received: from DS7PR03CA0225.namprd03.prod.outlook.com (2603:10b6:5:3ba::20) by MWHPR0201MB3578.namprd02.prod.outlook.com (2603:10b6:301:77::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.24; Tue, 15 Jun 2021 10:45:34 +0000 Received: from DM3NAM02FT032.eop-nam02.prod.protection.outlook.com (2603:10b6:5:3ba:cafe::5d) by DS7PR03CA0225.outlook.office365.com (2603:10b6:5:3ba::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:45:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT032.mail.protection.outlook.com (10.13.5.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 10:45:33 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 03:45:32 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 15 Jun 2021 03:45:32 -0700 Received: from [172.23.64.106] (port=49401 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lt6ZY-0008TK-85; Tue, 15 Jun 2021 03:45:32 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 16987) id E1CE51222CD; Tue, 15 Jun 2021 16:13:59 +0530 (IST) From: Manish Narani To: , , CC: , , , Sai Krishna Potthuri , Manish Narani Subject: [PATCH 7/7] mmc: arasan: Fix the issue in reading tap values from DT Date: Tue, 15 Jun 2021 16:13:57 +0530 Message-ID: <1623753837-21035-8-git-send-email-manish.narani@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> References: <1623753837-21035-1-git-send-email-manish.narani@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cad25c2e-e045-4ed6-d9b5-08d92feab406 X-MS-TrafficTypeDiagnostic: MWHPR0201MB3578: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SywYRLu1NuqtVriwaKNOLb/UkoOynuksRh8knmo8bJrVM7YqVzwy/WDtqsDizEu7qVUYW/eP2ma1cyKz7XmLiyRl6Cq1yfwYVdu9Vh65Zuc0Aghv9y4W03JH6RA/p1DyjXoH/5JPEy4GQ5xJAS1o+ids9MlsevyykSFAUPuOcj2pCAFcCzb7RLjPTQT+flgH0z5ce3HA7Gqg5/KoAK4hIrgJQCxicFJyVDEMGPM4p70WcAq3c/s67KOu5gS/nCVHAXnJZoPceBvgcAyXJiJ2Ww+OQWsJVo0olQ1f7FBRsA4UsmoHskWqWbX/aayrhGvuzYRrbYRNzyru7kbBkTA6ltHze9hiNE9k0cG5NuoV08SxV4knKIh2sGM6veskMO72Kc71ITc9tnptS/GuFUR7IkSeumZBn3P+7HsEmJAchRmk2lf/9rp2qwZYBZqkd+g7V1c/fcDazSggmJ0ysY0s4K8pp35rnObCm6HNM217g+iEZF7FFqvqCKxKl57XnXKndZfjPLu7K8xfAJSJph4BDiuzkEP0LtVQ3bos5mN45GJ8sQkpfz2Nj55ojgwUuIxSFNjbpSz3LWkNItHYxWTHS3kDmjY6l6n4Caz0/QKE++c3SpH0SlZDhDL4m3VIKpVgjMTPH7kWMTAIYkE0jJBcDFsFppKFZ5jGBDkH/xUrdQnnJra3SUCNg0FYG4TEH5lj X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(136003)(39850400004)(376002)(346002)(396003)(46966006)(36840700001)(2616005)(356005)(44832011)(426003)(186003)(6266002)(7636003)(47076005)(82310400003)(336012)(70206006)(70586007)(8676002)(110136005)(42186006)(107886003)(4326008)(26005)(2906002)(83380400001)(82740400003)(36906005)(8936002)(36756003)(478600001)(5660300002)(316002)(36860700001)(54906003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 10:45:33.7916 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cad25c2e-e045-4ed6-d9b5-08d92feab406 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT032.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR0201MB3578 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_114539_526791_8E750271 X-CRM114-Status: GOOD ( 12.58 ) 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: Sai Krishna Potthuri 'of_property_read_variable_u32_array' function returns number of elements read on success. This patch updates the condition check in the driver to overwrite the tap values from DT if exist. Signed-off-by: Sai Krishna Potthuri Signed-off-by: Manish Narani --- drivers/mmc/host/sdhci-of-arasan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 61fe13c..3f50095 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -1019,13 +1019,15 @@ static void arasan_dt_read_clk_phase(struct device *dev, struct device_node *np = dev->of_node; u32 clk_phase[2] = {0}; + int ret; /* * Read Tap Delay values from DT, if the DT does not contain the * Tap Values then use the pre-defined values. */ - if (of_property_read_variable_u32_array(np, prop, &clk_phase[0], - 2, 0)) { + ret = of_property_read_variable_u32_array(np, prop, &clk_phase[0], + 2, 0); + if (ret < 0) { dev_dbg(dev, "Using predefined clock phase for %s = %d %d\n", prop, clk_data->clk_phase_in[timing], clk_data->clk_phase_out[timing]);