lkml.org 
[lkml]   [2023]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/5] hwmon: (sch5627) Use regmap for pwm map register caching
On Thu, Sep 07, 2023 at 07:26:37AM +0200, Armin Wolf wrote:
> Accessing virtual registers is very inefficient, so pwm map values
> should be cached when possible, else userspace could effectively do
> a DOS attack by reading pwm map values in a while loop.
> Use the regmap cache to cache those values.
>
> Tested on a Fujitsu Esprimo P720.
>
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>

Applied.

Thanks,
Guenter

\
 
 \ /
  Last update: 2023-09-11 02:53    [W:0.036 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site