Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp283298pxm; Tue, 22 Feb 2022 10:31:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzm3jgOAXea5Fzq+im9RfHiC0ptOUxJOstTGMKInGnQXAD5S1opdOICgtECkhIDbuUkEAi4 X-Received: by 2002:a05:6402:cac:b0:410:a920:4e90 with SMTP id cn12-20020a0564020cac00b00410a9204e90mr27277171edb.60.1645554688585; Tue, 22 Feb 2022 10:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645554688; cv=none; d=google.com; s=arc-20160816; b=XGZQLGwYyGrTntRUaPPoypTHrNX6udfxhgQfPcL2c05q+ox6ZVRinsMdvd9M3GKX+n FalmsB9OxLl+UgoUqf7CXqXw/SBfsKZv4Y0gS6LIjOEfDQEzfzb4/kqAzhHcj7d0JdM1 8f9F0xwt6/G1HRecXLno9DHDeokxdrfGPkF5Kf1wJBunFzfAcqh9aFzjEfgBo613ztBV X4dmJ9mWnln+tuWKjPlg2n2qZJd5Xyqy+43tKgi+k5cVd2R8YHmwr1vR//ppXm3ghGMd bOZSe+DkvIPZtCRveq5uSo7s9XKbNUU71HD3aMaG47SZ9L+zd/2hf74CHt8SuYjXGs5N 25bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:to:from:dkim-signature:dkim-filter; bh=89A9xGsLZgggriJk0T8FetbTt2DC2jUjiKY7gpqWiH8=; b=reonVFhGHLV4O4CvXsRPBr6PLYH7bDNk9M7BQHls2YJKXcXdCjGCwbWtCH41dyS4Wd VWcm9r9H4yRlrHyvC58cdia/k3eY2F1PzHuivC4bs+897/ozPh25IEPcZJpUlBd+X9gE OnVJvtGCpSoYEUCtHVB8BTGwnXDy+YlK5zVPsgG7dJ4SsP3vHTQEu5c6cBYRVHHV4LPU gsi/8oevnM+wiSFIi+VQ6rx8oyTyuhYgxlZ0GeK6hmqcr6PL3L91lv7lTBrCX5FduA0I 8mE8e5lLQ2G51vAgokMSbwcKKHlOmjAo/6PG7ObQxl80pGhtK3FI30JCyeEifO0JKvlh 8Q+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JzPCcG2L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19si13167750eds.373.2022.02.22.10.31.01; Tue, 22 Feb 2022 10:31:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JzPCcG2L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234278AbiBVQpk (ORCPT + 99 others); Tue, 22 Feb 2022 11:45:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232544AbiBVQpi (ORCPT ); Tue, 22 Feb 2022 11:45:38 -0500 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0366B16922D for ; Tue, 22 Feb 2022 08:45:09 -0800 (PST) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220222164504epoutp025c3e10ebe2323438c1bbb9c67831e6e2~WKXbskVBG3082730827epoutp02k for ; Tue, 22 Feb 2022 16:45:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220222164504epoutp025c3e10ebe2323438c1bbb9c67831e6e2~WKXbskVBG3082730827epoutp02k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1645548304; bh=89A9xGsLZgggriJk0T8FetbTt2DC2jUjiKY7gpqWiH8=; h=From:To:In-Reply-To:Subject:Date:References:From; b=JzPCcG2L2l4Get1gftRaX02K9aewZfT4g8OkoFxSt27VqVeWRNRJNMPwBjouVatXP WirM16tM4z4xmfDW4O8q+MvlIqDr43+kuiUv6ZRLi0+03IrmeozZVhyFuyHi0AiWE+ zGqbVivFPt/Qtoou0rPEGv/EVIB24fHksJCd5XGs= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20220222164503epcas5p292e11954f8f24846d2222f448e2a9bb2~WKXa2fdwu2938929389epcas5p2V; Tue, 22 Feb 2022 16:45:03 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.181]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4K34lZ6RM3z4x9Pp; Tue, 22 Feb 2022 16:44:58 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id D5.0A.05590.A0315126; Wed, 23 Feb 2022 01:44:58 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20220222164457epcas5p1168ed8f6910091e9ce6f707b6e577853~WKXVciNC_2018820188epcas5p1h; Tue, 22 Feb 2022 16:44:57 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220222164457epsmtrp2a5a861bc93f96f3e1b508184d27678cd~WKXVaSC0y1935419354epsmtrp2M; Tue, 22 Feb 2022 16:44:57 +0000 (GMT) X-AuditID: b6c32a4b-739ff700000015d6-22-6215130a9c79 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 68.34.29871.90315126; Wed, 23 Feb 2022 01:44:57 +0900 (KST) Received: from alimakhtar03 (unknown [107.122.12.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220222164454epsmtip10d83608980c13a56c198afb6a07b76e9~WKXSaPM1t1245612456epsmtip1K; Tue, 22 Feb 2022 16:44:54 +0000 (GMT) From: "Alim Akhtar" To: "'Krzysztof Kozlowski'" , "'Avri Altman'" , "'Rob Herring'" , "'Andy Gross'" , "'Bjorn Andersson'" , "'Wei Xu'" , "'Nishanth Menon'" , "'Vignesh Raghavendra'" , "'Tero Kristo'" , "'James E.J. Bottomley'" , "'Martin K. Petersen'" , "'Jan Kotas'" , "'Li Wei'" , "'Stanley Chu'" , "'Yaniv Gardi'" , , , , , , , In-Reply-To: <20220222145854.358646-10-krzysztof.kozlowski@canonical.com> Subject: RE: [PATCH v2 09/15] scsi: ufs: deprecate 'freq-table-hz' property Date: Tue, 22 Feb 2022 22:14:53 +0530 Message-ID: <0c8b01d8280b$868abc20$93a03460$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLp66nIdBfWENW71H4Q0TOw7Swh8QIFI3oQAXS0vvaqYGzvQA== Content-Language: en-us X-Brightmail-Tracker: H4sIAAAAAAAAA01Te0xTZxT3u73cW5jVu6LyiVGbZmRDR2kHlAvC5tC4u7AZ1IRsmgkXuCld 6cO2SGUmsMBQeVncI1LZeDg04zGhc9IVurJaxnSgYVBkhTkjMEUeoiROBshaLm789zvn/H7f 75zz5XA5fCMeyJWr9IxWRWcIMT/0ytXg4BA///Up4vxCMX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N8Xs+qKWLcu3W0R3UraujLCixTTHhX9V j/O7iwuZ+0R3TrPnvTjPvMme9eOux5XKERd+SP36s93qSda0/bVWZfKlH5k2cOyyirwlxZF9 OjJo/WKHp29eFfjfCeJ6Jzc5aeXy5Nkr3qVOX1211CzAsOaF+2ShFwVpbj5XHeLmq8+WnSzf JPUm++/fbyVnDgX6TJbf9f5F12b2vOMVa9MnK7EUZyQaajEXFScCACBkeAF/AwAA X-CMS-MailID: 20220222164457epcas5p1168ed8f6910091e9ce6f707b6e577853 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220222150007epcas5p22f05e6c8e80a5ad18a9528cd0ead865d References: <20220222145854.358646-1-krzysztof.kozlowski@canonical.com> <20220222145854.358646-10-krzysztof.kozlowski@canonical.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof >-----Original Message----- >From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@canonical.com] >Sent: Tuesday, February 22, 2022 8:29 PM >To: Alim Akhtar ; Avri Altman >; Rob Herring ; Krzysztof >Kozlowski ; Andy Gross >; Bjorn Andersson ; Wei >Xu ; Nishanth Menon ; Vignesh >Raghavendra ; Tero Kristo ; James E.J. >Bottomley ; Martin K. Petersen >; Jan Kotas ; Li Wei >; Stanley Chu ; Yaniv >Gardi ; linux-scsi@vger.kernel.org; >devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm- >msm@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-samsung- >soc@vger.kernel.org; linux-mediatek@lists.infradead.org >Subject: [PATCH v2 09/15] scsi: ufs: deprecate 'freq-table-hz' property > >The 'freq-table-hz' is not correct in DT schema, because '-hz' suffix defines >uint32 type, not an array. Therefore deprecate 'freq-table-hz' >and use 'freq-table' instead. > May be once all the dts change migrate to using 'freq-table', just remove 'freq-table-hz' from driver. >Signed-off-by: Krzysztof Kozlowski >--- > drivers/scsi/ufs/ufshcd-pltfrm.c | 21 +++++++++++++-------- > 1 file changed, 13 insertions(+), 8 deletions(-) > >diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c >index 87975d1a21c8..2b192477d158 100644 >--- a/drivers/scsi/ufs/ufshcd-pltfrm.c >+++ b/drivers/scsi/ufs/ufshcd-pltfrm.c >@@ -47,8 +47,9 @@ static int ufshcd_parse_clock_info(struct ufs_hba *hba) > if (cnt <= 0) > goto out; > >- if (!of_get_property(np, "freq-table-hz", &len)) { >- dev_info(dev, "freq-table-hz property not specified\n"); >+ if (!of_get_property(np, "freq-table", &len) || >+ !of_get_property(np, "freq-table-hz", &len)) { >+ dev_info(dev, "freq-table property not specified\n"); > goto out; > } > >@@ -57,7 +58,7 @@ static int ufshcd_parse_clock_info(struct ufs_hba *hba) > > sz = len / sizeof(*clkfreq); > if (sz != 2 * cnt) { >- dev_err(dev, "%s len mismatch\n", "freq-table-hz"); >+ dev_err(dev, "%s len mismatch\n", "freq-table"); > ret = -EINVAL; > goto out; > } >@@ -69,12 +70,16 @@ static int ufshcd_parse_clock_info(struct ufs_hba >*hba) > goto out; > } > >- ret = of_property_read_u32_array(np, "freq-table-hz", >+ ret = of_property_read_u32_array(np, "freq-table", > clkfreq, sz); > if (ret && (ret != -EINVAL)) { >- dev_err(dev, "%s: error reading array %d\n", >- "freq-table-hz", ret); >- return ret; >+ ret = of_property_read_u32_array(np, "freq-table-hz", >+ clkfreq, sz); >+ if (ret && (ret != -EINVAL)) { >+ dev_err(dev, "%s: error reading array %d\n", >+ "freq-table", ret); >+ return ret; >+ } > } > > for (i = 0; i < sz; i += 2) { >@@ -99,7 +104,7 @@ static int ufshcd_parse_clock_info(struct ufs_hba *hba) > > if (!strcmp(name, "ref_clk")) > clki->keep_link_active = true; >- dev_dbg(dev, "%s: min %u max %u name %s\n", "freq-table- >hz", >+ dev_dbg(dev, "%s: min %u max %u name %s\n", "freq-table", > clki->min_freq, clki->max_freq, clki->name); > list_add_tail(&clki->list, &hba->clk_list_head); > } >-- >2.32.0