Re: [PATCH 3/3] Documentation: ABI: sysfs-driver-regulator-output

From: Mark Brown
Date: Tue Sep 12 2023 - 10:03:57 EST


On Sun, Sep 10, 2023 at 01:50:37PM -0700, Zev Weiss wrote:
> On Mon, Sep 04, 2023 at 05:24:31AM PDT, Mark Brown wrote:

> > It's a clear on read interrupt.

> Sure, analogous behavior in hardware is reasonably common, but that doesn't
> strike me as a very compelling reason to design the kernel<->userspace
> interface to mimic it -- providing nicer interfaces than the raw hardware is
> one of the main reasons for having an OS in the first place, after all.

If it were something other than the userspace consumer I'd be a bit more
concerned but that's all sharp edges and direct access in a very
controlled system. In any case clear on write is the obvious
alternative approach.

Attachment: signature.asc
Description: PGP signature