]> git.baikalelectronics.ru Git - kernel.git/commit
usb: max-3421: Fix setting of I/O pins
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Tue, 7 Feb 2023 03:33:37 +0000 (16:33 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:36 +0000 (09:33 +0100)
commit83a2492eb8055d73940adde30740a7c41a996f89
treeba5e15ce90b77b4d709d6313c59602eb6c002adc
parent30cc7ce112d8a59e46d5c41bc9bd3397c869a90a
usb: max-3421: Fix setting of I/O pins

[ Upstream commit 64593ce9fb0af91d37aea393bbb34a5b03a7a4fc ]

To update the I/O pins, the registers are read/modified/written. The
read operation incorrectly always read the first register. Although
wrong, there wasn't any impact as all the output pins are always
written, and the inputs are read only anyway.

Fixes: 6cb52f04231c ("Add support for using a MAX3421E chip as a host driver.")
Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20230207033337.18112-1-mark.tomlinson@alliedtelesis.co.nz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/max3421-hcd.c