[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <eaa66c56-de8b-ea8e-6907-41535c4c16ac@mind.be>
Date: Wed, 2 Nov 2022 09:21:19 +0100
From: Maarten Zanders <maarten.zanders@...d.be>
To: Pavel Machek <pavel@....cz>
Cc: Arne Staessen <a.staessen@...evic.com>, linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] leds: lp5523: fix out-of-bounds bug in lp5523_selftest()
Hi Pavel,
On 10/28/22 17:34, Pavel Machek wrote:
> I wonder, should we do these kind of actions on attribute _read_? I'd
> preffer some kind of write action to trigger this.
>
Yes I agree that doing these kind of things on a file read feels somehow
strange. Strictly speaking, I guess you would implement an IOCTL to
initiate the action and then perform a read to get the result. But that
would needlessly complicate things on both ends? I'll keep it in mind
and when I encounter similar interfaces in other drivers get back to
this if needed.
Powered by blists - more mailing lists