Re: [PATCH] Input: goodix-berlin - Add sysfs interface for reading and writing touch IC registers

From: Richard Hughes
Date: Wed May 08 2024 - 04:41:33 EST


On Wed, 8 May 2024 at 03:37, Mark Brown <broonie@xxxxxxxxxx> wrote:
> The other model I've seen used BTW is to expose a MTD device, if the
> device actually looks like a MTD device (perhaps even is just a flash
> that's fairly directly exposed) that minimises the kernel code quite
> well.

If it helps, fwupd already uses mtd for other devices too, although at
the moment we're using it only for system firmware -- e.g. intel-spi
style. The MTD subsystem doesn't give fwupd much info about the
{removable} device itself, and that can pose a problem unless you
start using heuristics about the parent device to match firmware to
the mtd device.

Richard.