[PATCH] HID: ft260: check data size in ft260_smbus_write()

2021-04-13 Thread Michael Zaidman
octl_smbus() --> i2c_smbus_xfer --> __i2c_smbus_xfer --> ft260_smbus_xfer --> ft260_smbus_write This patch adds data size checking in the ft260_smbus_write(). Signed-off-by: Michael Zaidman Reported-by: Dan Carpenter --- drivers/hid/hid-ft260.c | 5 ++

Re: [PATCH] HID: ft260: fix an error message in ft260_i2c_write_read()

2021-03-19 Thread Michael Zaidman
On Fri, Mar 19, 2021 at 02:26:43PM +0100, Jiri Kosina wrote: > On Thu, 18 Mar 2021, Dan Carpenter wrote: > > > The "len" variable is uninitialize. > > > > Fixes: 6a82582d9fa4 ("HID: ft260: add usb hid to i2c host bridge driver") > > Signed-off-by: Dan Carpenter > > --- > >

Re: [PATCHv2 1/1] HID: ft260: add usb hid to i2c host bridge driver

2021-03-04 Thread Michael Zaidman
On Thu, Mar 04, 2021 at 11:14:06AM +, Aaron Jones wrote: > From: Aaron Jones(FTDI-UK) > > On Fri, Feb 19, 2021 at 06:36:44PM +0200, Michael Zaidman wrote: > > The FTDI FT260 chip implements USB to I2C/UART bridges through two > > USB HID class interfaces. The first - fo

[PATCH v2 0/1] HID: ft260: add usb hid to i2c host bridge driver

2021-02-19 Thread Michael Zaidman
. Michael Zaidman (1): HID: ft260: add usb hid to i2c host bridge driver MAINTAINERS |7 + drivers/hid/Kconfig | 11 + drivers/hid/Makefile|1 + drivers/hid/hid-ft260.c | 1053 +++ drivers/hid/hid-ids.h |1 + 5 files

[PATCH v2 1/1] HID: ft260: add usb hid to i2c host bridge driver

2021-02-19 Thread Michael Zaidman
diff --git a/MAINTAINERS b/MAINTAINERS index 8a6fe5389d7d..30526cfd4994 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7328,6 +7328,13 @@ F: fs/verity/ F: include/linux/fsverity.h F: include/uapi/linux/fsverity.h +FT260 FTDI USB-HID TO I2C BRIDGE DRIVER +M: Michael Zaidman

[PATCH 0/1] HID: ft260: add usb hid to i2c host bridge driver

2021-02-12 Thread Michael Zaidman
Interrupt IN and one Interrupt OUT pipes per interface. For configuration and control, the FT260 exposes the HID class commands through the Control pipe. Commands and responses are FT260 specific and documented in the AN_394_User_Guide_for_FT260.pdf on the https://www.ftdichip.com. Michael Zaidman (1

[PATCH 1/1] HID: ft260: add usb hid to i2c host bridge driver

2021-02-12 Thread Michael Zaidman
support. Signed-off-by: Michael Zaidman --- MAINTAINERS |7 + drivers/hid/Kconfig | 11 + drivers/hid/Makefile|2 + drivers/hid/hid-ft260.c | 1097 +++ drivers/hid/hid-ids.h |1 + 5 files changed, 1118 insertions(+) create