Messages in this thread | | | From | Richard Hughes <> | Date | Wed, 8 May 2024 09:39:41 +0100 | Subject | Re: [PATCH] Input: goodix-berlin - Add sysfs interface for reading and writing touch IC registers |
| |
On Wed, 8 May 2024 at 03:37, Mark Brown <broonie@kernel.org> 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.
| |