Message ID | 20230306144404.15517-1-quic_mdalam@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1899075wrd; Mon, 6 Mar 2023 07:18:46 -0800 (PST) X-Google-Smtp-Source: AK7set/AjWOyrSzt8xdckullMvpLOM3rj4jkHx+8hEYoJ91uWvZZkim5tLtN4wan3/v3I1ycar4v X-Received: by 2002:a17:906:33d1:b0:8b1:7ae8:ba79 with SMTP id w17-20020a17090633d100b008b17ae8ba79mr11053390eja.30.1678115925915; Mon, 06 Mar 2023 07:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678115925; cv=none; d=google.com; s=arc-20160816; b=tfu/8+QW1UAJtjbZOEFi1EUTeUP2ZGeQf8+RvECcSDDJqamAV6Pb8RIguJn/yikNP3 ZF12os4+NFpKXGI0Ei0fkygQSVmYB5J7Qr5WWpZV1eFsYm7LxqGm/jd3TzXl4UAKAEBI xGC+i55rZtQgA16LriaIS5iWYFR5lTeUPDgVNXdjP+qDMHa5Mw87iupQAEptOU2DgwqF PfYPRbmnQk9eSwDWonm8q+X0NuaZIT1KHbPdq4ua5eEJnUJIEIbaDqBd7HN0b6gcgpjm u213u2SCfb9j65UmTtFPBdSx6b8GvJHqJQyN/k87BLp859OAPxfGSnx1wa3BW/+myLIx 9HLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=VW6B8LsWDMY2hWOF9uwJP75jKcyNad+r7ywddka38A4=; b=NnOh2Qtl7GPmCJetyCxrINar1A5iOqd+B/l1H36PknmkSdJ3rBiyOYsu0AW3D4yYof sik0L3Arf6zmIGRjCFKPp7a65AILNw3Bzl38+3QvfC+HT6OODC/FuxcZa8YTa8Wqwohf fHoTNk92D7e76mTXPYds0Ufw1h3x/n0omjWnPCAb8cJq35+skIuJS1BpXpV++0h7Ra0t 3m6P/N56N7aSvWA28TC5AVSRUsSVVEJ4QnbTvmK62hflOp5SM91vzVWkVfmIKH9pVIYf zz0jj2PUyb/87mkRTR6DMiZEsWJ2ZzsE4osM3MxC9LZJ5EJOjhHmCcf18SynSuO7StHH 588A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lGkI7AeM; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020a1709067fc800b008da9dc63176si9290230ejs.514.2023.03.06.07.18.20; Mon, 06 Mar 2023 07:18:45 -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=@quicinc.com header.s=qcppdkim1 header.b=lGkI7AeM; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbjCFOpC (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 6 Mar 2023 09:45:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbjCFOo6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Mar 2023 09:44:58 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F104712042; Mon, 6 Mar 2023 06:44:40 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3264grvA003048; Mon, 6 Mar 2023 14:44:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=VW6B8LsWDMY2hWOF9uwJP75jKcyNad+r7ywddka38A4=; b=lGkI7AeMYKl1WtR4tT3FZYkHaLCTTGCaH6aBDYEDTOiAOPtXa1GTAwic1EZ5zRbYSfNW /H8mSCstSvzGu2rIZ4HDJj6rcJ1Q17kdO3EQMPHWdqDQtQvO3LiFgTlHoicQ8nEQGxKo r28aqRNfLGW5EhrBW/MxdGM/XuG0pZ5m6X8l8k/t8vuFGI9LgsyU/nOryxBS482GyuY6 Uw9+tC5CdSPowbBD9Qnzg/rsiWsE1yQYajHzz4s+h2/F/8QVNTyykAIUZZhPQ4b0Rt3o YA+MEkgUcgRYhlh1y6LcO7s9x2Ko8Euj5bvyum/hySwyWBcdH21Q7RhaFGfxKGbDh7jp Sg== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3p417jw0cf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Mar 2023 14:44:11 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 326Ei7xV013294; Mon, 6 Mar 2023 14:44:07 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3p4fft5hve-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 06 Mar 2023 14:44:07 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 326Ei720013289; Mon, 6 Mar 2023 14:44:07 GMT Received: from mdalam-linux.qualcomm.com (mdalam-linux.qualcomm.com [10.201.2.71]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 326Ei7BL013288; Mon, 06 Mar 2023 14:44:07 +0000 Received: by mdalam-linux.qualcomm.com (Postfix, from userid 466583) id 639F012010CA; Mon, 6 Mar 2023 20:14:06 +0530 (IST) From: Md Sadre Alam <quic_mdalam@quicinc.com> To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: quic_sjaganat@quicinc.com, quic_srichara@quicinc.com, quic_varada@quicinc.com, quic_mdalam@quicinc.com Subject: [PATCH 2/5] spi: qup: Use devm_platform_get_and_ioremap_resource() Date: Mon, 6 Mar 2023 20:14:04 +0530 Message-Id: <20230306144404.15517-1-quic_mdalam@quicinc.com> X-Mailer: git-send-email 2.17.1 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: ih2T7pzTrIoFdI_e-r0eGHo3rsyuNYmv X-Proofpoint-ORIG-GUID: ih2T7pzTrIoFdI_e-r0eGHo3rsyuNYmv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-06_08,2023-03-06_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1011 adultscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 suspectscore=0 priorityscore=1501 spamscore=0 mlxlogscore=712 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303060129 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759632085064898559?= X-GMAIL-MSGID: =?utf-8?q?1759632085064898559?= |
Series |
[1/5] mtd: nand: raw: qcom_nandc: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
Md Sadre Alam
March 6, 2023, 2:44 p.m. UTC
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---
drivers/spi/spi-qup.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Mon, Mar 06, 2023 at 08:14:04PM +0530, Md Sadre Alam wrote: > Convert platform_get_resource(), devm_ioremap_resource() to a single > call to devm_platform_get_and_ioremap_resource(), as this is exactly > what this function does. You've not copied me on the rest of the series so I don't know what's going on with dependencies. When sending a patch series it is important to ensure that all the various maintainers understand what the relationship between the patches as the expecation is that there will be interdependencies. Either copy everyone on the whole series or at least copy them on the cover letter and explain what's going on. If there are no strong interdependencies then it's generally simplest to just send the patches separately to avoid any possible confusion.
On 3/6/2023 9:14 PM, Mark Brown wrote: > On Mon, Mar 06, 2023 at 08:14:04PM +0530, Md Sadre Alam wrote: >> Convert platform_get_resource(), devm_ioremap_resource() to a single >> call to devm_platform_get_and_ioremap_resource(), as this is exactly >> what this function does. > You've not copied me on the rest of the series so I don't know what's > going on with dependencies. When sending a patch series it is important > to ensure that all the various maintainers understand what the > relationship between the patches as the expecation is that there will be > interdependencies. Either copy everyone on the whole series or at least > copy them on the cover letter and explain what's going on. If there are > no strong interdependencies then it's generally simplest to just send > the patches separately to avoid any possible confusion. Thanks for you update. Yes! these all patches are not dependent at all. So i will send these all patches separately.
On Mon, 06 Mar 2023 20:14:04 +0530, Md Sadre Alam wrote: > Convert platform_get_resource(), devm_ioremap_resource() to a single > call to devm_platform_get_and_ioremap_resource(), as this is exactly > what this function does. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [2/5] spi: qup: Use devm_platform_get_and_ioremap_resource() commit: dc2eb79496322d5f4790d38776c487bf7aa69be3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 678dc51ef017..71fc65e094e7 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -1003,8 +1003,7 @@ static int spi_qup_probe(struct platform_device *pdev) int ret, irq, size; dev = &pdev->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) return PTR_ERR(base);