Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22855385rwd; Fri, 30 Jun 2023 13:46:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7F9HvJw0GbPzUIww3tKF/U2KmtVBP8mvsPg043eFnnxkznLiXA48ttazE42EjbCCBywCYn X-Received: by 2002:a9d:75ce:0:b0:6b7:5430:706c with SMTP id c14-20020a9d75ce000000b006b75430706cmr3850176otl.24.1688157965889; Fri, 30 Jun 2023 13:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688157965; cv=none; d=google.com; s=arc-20160816; b=gW7BVO6Ta2ObS00Fj8h8yjSWwWPbjnXngcKk2vYZzJgrvq1BcrIXUxCkcokeardPzs X1eYhuE11Q73rWowKWTjhnbgDeAu6bxOEiVPdZLPVHrQJfBZ1sVVUVh8eT0lL7RWVrGv DhfCMnjFAQKH9WW0Od5F531Mye9Z7uCRQ9oiujwpn094Akd64IC144xPNiFydBi7A7Wp WIbd8x/B3/zZDxIRDlPKnFuQ7o6DuOflK2RPDxgHfKNH53tcMNjTR/BeiRVRXwyweRrn RPdHamQUb9eSRe3HZLQcxauH8sDgwpMV2tNDo/Z720XqZiF7U4EpJIcO1GUJ716UFRao cADA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=y2u6WlB/0vH/xyKke5iyXC4imFnTCNt+j5LDvLCSDmE=; fh=TwLCeMMsa4bOv2RXkMNtlHfsE5W19w92R/BosvlY1tY=; b=qW1FdRc6il04NKIVY7NHYNMtCjjqKSToG/ePaZueAlpgcrmagbSPULo61+cqhO9jgO TpJgKAJkhnZgiVE3VlaKOrAj2qJfDFaJvcXajv6/AzpDYfJFfbuUau/bE6eHvNewn8RP SPdAiCS0LoTobZGxc+tJOr3nuWk++ixPNPHXN0ZiwKcisWyQi7Z9bLgMY4T0JvrP5+y+ Ff4i9WSnb1Up/g3dgLSMYlwtvRKZbh7hcScxsWRvfNXXV9TdLDfvL0/dKFqSl4clnC9y VW+vAN+Qme8MwN6OfGDG1vtM3/HAIIwPGAsbKExZTdNRzC7koovhq6f39BVqQzrLVVU/ 8O3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=BPVVtasy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v22-20020a636116000000b0054ff7ea5406si4342038pgb.673.2023.06.30.13.45.52; Fri, 30 Jun 2023 13:46:05 -0700 (PDT) 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=@wanadoo.fr header.s=t20230301 header.b=BPVVtasy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbjF3UK6 (ORCPT + 99 others); Fri, 30 Jun 2023 16:10:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjF3UKx (ORCPT ); Fri, 30 Jun 2023 16:10:53 -0400 Received: from smtp.smtpout.orange.fr (smtp-20.smtpout.orange.fr [80.12.242.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8B3B7 for ; Fri, 30 Jun 2023 13:10:43 -0700 (PDT) Received: from [192.168.1.18] ([86.243.2.178]) by smtp.orange.fr with ESMTPA id FKS0qDqJXtqCNFKS0qy9cb; Fri, 30 Jun 2023 22:10:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1688155842; bh=y2u6WlB/0vH/xyKke5iyXC4imFnTCNt+j5LDvLCSDmE=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=BPVVtasyPJa4r3cYp9QqZEC4mq8EEnn6zWeaNPTeUE3TFIBk8ecVgJBWQk7ivHHjh a5fLWGUXsr/ZZ93H/NhxfPo5+RvmIiygR6exYicUtVyTq59uJSH0ICmyXplYLaTza3 zPC/mNuCxmryryrLdp8wG3KfRd8TMo4J1g3YbVS1VYjWTN2YY5PR2Qi2RmmR//Qbay gJ6jn+iBRNHYqHjfNh1g0vmemawdPRqfhbSodmwRcPtcDcGI/eWqa7SI+yX4Jb5Kqk uwPUYtBIUTPvPV6tJRo4uBFsnLGAs4oWDo3vbH9W6QIg57LXOV91Ycg3yGBVcfC2O2 1jvRPPFP8Mydg== X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 30 Jun 2023 22:10:41 +0200 X-ME-IP: 86.243.2.178 Message-ID: <8ac04af8-eff8-bfe1-647a-2d04f5739702@wanadoo.fr> Date: Fri, 30 Jun 2023 22:10:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] i2c: busses: i2c-nomadik: Remove a useless call in the remove function Content-Language: fr, en-US To: linus.walleij@linaro.org, Andi Shyti Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, "linux-i2c@vger.kernel.org" References: <4f4c2c5c20b61c4bb28cb3e9ab4640534dd2adec.1629530169.git.christophe.jaillet@wanadoo.fr> From: Christophe JAILLET In-Reply-To: <4f4c2c5c20b61c4bb28cb3e9ab4640534dd2adec.1629530169.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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, "drivers/i2c/busses/i2c-nomadik.c" just got some loved, so I was wondering if the below patch could be reviewed. It does not apply anymore because of the recent change, but the explanation in the commit message and the proposed change still make sense to me. If it looks valid, I could send a V2. So any feedback would be appreciated. CJ Le 21/08/2021 à 09:17, Christophe JAILLET a écrit : > Since commit a410963ba4c0 ("Merge branch 'i2c-embedded/for-next' of > git://git.pengutronix.de/git/wsa/linux"), there is no more > 'request_mem_region()' call in this driver. > > So remove the 'release_mem_region()' call from the remove function which is > likely a left over. > > There is no details in the above commit log, but at its end we can read: > Conflicts: > drivers/i2c/busses/i2c-nomadik.c > > This may explain why this call has been left here. > > Fixes: a410963ba4c0 ("Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux > Signed-off-by: Christophe JAILLET > --- > This patch is completely speculative and without details about commit > a410963ba4c0 it's hard to be sure of the intent. > > All I can say is that it looks logical to me and that it compiles! > --- > drivers/i2c/busses/i2c-nomadik.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c > index a2d12a5b1c34..e215a7357873 100644 > --- a/drivers/i2c/busses/i2c-nomadik.c > +++ b/drivers/i2c/busses/i2c-nomadik.c > @@ -1057,7 +1057,6 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id) > > static void nmk_i2c_remove(struct amba_device *adev) > { > - struct resource *res = &adev->res; > struct nmk_i2c_dev *dev = amba_get_drvdata(adev); > > i2c_del_adapter(&dev->adap); > @@ -1067,7 +1066,6 @@ static void nmk_i2c_remove(struct amba_device *adev) > /* disable the controller */ > i2c_clr_bit(dev->virtbase + I2C_CR, I2C_CR_PE); > clk_disable_unprepare(dev->clk); > - release_mem_region(res->start, resource_size(res)); > } > > static struct i2c_vendor_data vendor_stn8815 = {