Does regmap-i2c not automatically switch to I2C mux?

2022-01-12 Thread www
Dear all, Does regmap-i2c not automatically switch to I2C mux? Add i2c-device(the driver use regmap-i2c) under i2c-mux on a i2c bus, set i2c-mux to another channel, then cat the node under /sys/class/hwmon/xxx, cannot get the value from the i2c-device. when use another i2c-device( not use

Re: Where to find the information how to write a state of the art USB driver?

2022-01-12 Thread Greg KH
On Tue, Jan 11, 2022 at 09:09:31PM +0100, Philipp Hortmann wrote: > On 1/11/22 9:51 AM, Greg KH wrote: > > On Mon, Jan 10, 2022 at 10:31:28PM +0100, Philipp Hortmann wrote: > > > Hi all, > > > > > > template usb-skeleton.c is working but outdated, documentation is helpful > > > but years old and

Re: Where to find the information how to write a state of the art USB driver?

2022-01-12 Thread Philipp Hortmann
On 1/12/22 10:54 AM, Greg KH wrote: That driver tried to be an example for an unknown device, doing multiple different things that no single driver/device would probably ever need. Also it can almost always just be replaced with a simple userspace program using libusb, as I bet your driver could