lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8cd47dde-07cd-42e9-b6a5-144a61243677@vivo.com>
Date: Tue, 20 Aug 2024 17:01:44 +0800
From: Rong Qianfeng <11065417@...o.com>
To: Bartosz Golaszewski <brgl@...ev.pl>, Rong Qianfeng <rongqianfeng@...o.com>
Cc: Keerthy <j-keerthy@...com>, Linus Walleij <linus.walleij@...aro.org>,
 Shubhrajyoti Datta <shubhrajyoti.datta@....com>,
 Srinivas Neeli <srinivas.neeli@....com>, Michal Simek
 <michal.simek@....com>, linux-gpio@...r.kernel.org,
 linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
 opensource.kernel@...o.com
Subject: Re: [PATCH] gpio: Simplify using devm_clk_get_enabled()


在 2024/8/20 16:36, Bartosz Golaszewski 写道:
> On Tue, Aug 20, 2024 at 10:33 AM Rong Qianfeng <rongqianfeng@...o.com> wrote:
>> devm_clk_get_enabled() will call devm_clk_get() + clk_prepare_enable()
>> and the clock will automatically be disabled, unprepared and freed when
>> the device is unbound from the bus. So simplify .probe() and .remove()
>> accordingly.
>>
>> Signed-off-by: Rong Qianfeng <rongqianfeng@...o.com>
>> ---
>>   drivers/gpio/gpio-davinci.c  | 13 ++-----------
>>   drivers/gpio/gpio-stp-xway.c | 10 ++--------
>>   drivers/gpio/gpio-zynq.c     | 10 +---------
>>   3 files changed, 5 insertions(+), 28 deletions(-)
>>
>> diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
> I already sent a patch like that for davinci, please drop that part.
> Please split the other two into their separate per-driver patches.
Ok.

Best regards,
Qianfeng
>
> Bart

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ