Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4092219rwl; Tue, 28 Mar 2023 02:27:02 -0700 (PDT) X-Google-Smtp-Source: AKy350ZtVmMpzy7J+qwNhDZJP3bTH5qVqQFMxppx9zJWyncXPGIgLEZJpc5bcxKvECaJiccaVRoi X-Received: by 2002:a17:90a:4c:b0:237:f018:6433 with SMTP id 12-20020a17090a004c00b00237f0186433mr17361863pjb.27.1679995622637; Tue, 28 Mar 2023 02:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679995622; cv=none; d=google.com; s=arc-20160816; b=qErzQIoaUbwfxzIsw4gISzTTKVUi04wx51UwlB/UG1+kdeIvpQrRN8qwzmbclT5Z8n KUE3nRCk0sL2LrkykbUH+9x0+g9fbqT3PCbC+P3fH9zP7HCsgvRyDq/8UHuxElQpxMAm wqfsnnwogHGZsdvwM7B4Shl6NBwMO+eb1L2EI/Adsh/bmsMmoHpo1n/WJ25wpky8fr7/ xYkNyVgMLVQ7kLyzOods9kMD+hlFAQKUqFjrqaQKQVriqdaZyZ4d1BYorZisERzqEfpH HCX6YpRG+N1ckINMPYnv1rzxZKoxO2SgCPak8Jx0CJJI1r6zoj5X3ANemMBH4B6MVDQv foog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=dhUlZkPcmXVoajW8T2PhfQnslW50LyNfQK1w2tF/94w=; b=IAwZEjIksTYJn/3If3j/9igcbh1Bx2wQZ1pgxH6KOMF41OFGdCLgR8bbfElYHlS3sl sD/Z8cMrvpW9TIfFI4SFA7uRpB0q2yv2M2AGc6kZrJDZ22UUm9A/AlTlutYPZRVaSCGw sctKdbG2tqsnkqaKEXIUTO2feDiZy5wrqIdl1/RaJxnfmFuVtdcIsXIkHAQGJMfl/ku4 mg1bAYmiNj8CBpzxuAPzWN87J+bOi9GetQOWL0ZxAim5gHRVY9xJVE7Q7J2jxnC6QcWp rKo+CYfxJqnPgjYTYY78qticwlPEc+8FHqVuI+LnrDpT/guRDprFpaXsN31ypXB+1xKt Yzeg== ARC-Authentication-Results: i=1; mx.google.com; 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 t12-20020a17090a3e4c00b00233e301c780si8069417pjm.31.2023.03.28.02.26.51; Tue, 28 Mar 2023 02:27:02 -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; 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 S232277AbjC1JYY (ORCPT + 99 others); Tue, 28 Mar 2023 05:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232324AbjC1JYS (ORCPT ); Tue, 28 Mar 2023 05:24:18 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 448FB5B9C; Tue, 28 Mar 2023 02:24:13 -0700 (PDT) Received: from [192.168.1.155] ([92.225.143.37]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MGi6m-1pc5Lj18Gw-00DswJ; Tue, 28 Mar 2023 11:23:17 +0200 Message-ID: <716362db-7355-7f10-6b8b-ee59ad22db41@metux.net> Date: Tue, 28 Mar 2023 11:23:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2] drivers/gpio : Remove redundant platform_set_drvdata(). Content-Language: tl To: Lizhe , linus.walleij@linaro.org, brgl@bgdev.pl, geert+renesas@glider.be, info@metux.net, rjui@broadcom.com, bcm-kernel-feedback-list@broadcom.com, f.fainelli@gmail.com, sbranden@broadcom.com, shc_work@mail.ru, j-keerthy@ti.com, hoan@os.amperecomputing.com, fancer.lancer@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, kaloz@openwrt.org, khalasa@piap.pl, keguang.zhang@gmail.com, daniel@thingy.jp, romain.perier@gmail.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mani@kernel.org, ludovic.desroches@microchip.com, andy@kernel.org, palmer@dabbelt.com, paul.walmsley@sifive.com, jonathanh@nvidia.com, sathyanarayanan.kuppuswamy@linux.intel.com, michal.simek@xilinx.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, linux-unisoc@lists.infradead.org, linux-riscv@lists.infradead.org, linux-tegra@vger.kernel.org References: <20230319115925.1317654-1-sensor1010@163.com> From: "Enrico Weigelt, metux IT consult" In-Reply-To: <20230319115925.1317654-1-sensor1010@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:ujdla9v/iyjL3L1Cm+XjJDsalTUKxgU24jiOGfnRDDlv+6BxEBk 28H46E0XI7p7p9qVjalxDWlIy6xfzIDACEQPVcoEKmfJeBTZUDYzWzsBgiTF5sK7xKSXsMU 6Ne5GFLPg3iF8SZpcov4SyijjbvxZuHNNahhvxW/b6vh/XwvP38kR4/h5+o9k+BYKi+yuY4 IR9s2WsFAuBtirUVyTm1A== UI-OutboundReport: notjunk:1;M01:P0:MoGEpRKG1bo=;5T7PdYmcLG5pYfzDf8wQM6gX+1u u6+1T7eGv8suLuqhFsVIQetTiIHhQeLdoWrYLOJykRD4kcwK9iIB1R2Ca6YAta5bggT8ITXWp kcxl0zTa4ujpJwuro9HKDULm2lmwI2kytGe/Zytpl54o/yMIIfUHys1TRdUugR2GX5JoEVusy m7NL6/bKinALAavCcvyl+yWz8iEFkUCGAjBkwRq6GcK+Vfn59Qf7Ix0NssyHKIRXiJfCpVcYl 7WLb8jY8RcqzNuiTT5NZi/D4uEktukiHS3sOhJzbf5a+yfLg8nyEdQeUaPxU7XogDjK1cGIM/ bC0jFNv8FWtQgNYeKhBQsMaLJlgnU4mLgu4ZlCnW0VNCVrkT/t77bdnYZ+KGrOMV1hX+5ytNP dsbmjC+D8CuFxyPhuO51HbjyV24/bG7u/ai8V0eGP7FsUxZTQ90poeILm6KZOgK51Kw3FAQBc gUDTVLam3E6T6uEH35Ub1whNqJ/lmrSwrzT+Z+ytclVP+A6Y5ePVGynFAYBCpEsZ7qgJECWYH 1haSxsR64jHGcikbbyr5rWTWWvJo93rP4HizhuoFUdiHRjpcjDIhHCAMJ/uu+wWQ+3GznrxTb PuQWQXNZ9dTYb627WNCdmUGhCKlnju8FIAE5EJGm2qPT8TFuZldhrSZWZ1sdxgKTFRe7VoUBk AGpHH9uEKGUANhP09xvX5f9fbGpGuwMmmasM0yXdMA== X-Spam-Status: No, score=0.0 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 On 19.03.23 12:59, Lizhe wrote: Hi, > platform_set_drvdata() is redundant in these functions. > the purpose of calling this function is to place data > in *driver_data. but the data is not retrieved in these > functions I appreciate your contribution, but I have to NAK for the gpio-amd-fch driver: it would at least create a memleak (driver core can't free the driver_data when the driver is unloaded). In general, patches to drivers should be splitted per driver, unless there's a hard reason to do otherwise. That's important for the individual maintainers being able to review patches to their drivers. If each maintainer can only ack on pieces of the patch, somebody else would need to split out those things that could be picked. Really too complicated. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287