mbox series

[0/7] Fix the fotg210-udc driver

Message ID 20210324141115.9384-1-fabian@ritter-vogt.de
Headers show
Series Fix the fotg210-udc driver | expand

Message

Fabian Vogt March 24, 2021, 2:11 p.m. UTC
Moin!

USB is the main way of communicating with the TI Nspire CX II calculators,
so supporting the controller in Linux is necessary to make the port
somewhat useful. While implementing support for the specific controller
model inside, I found and fixed various bugs in this driver. Most of them
are part of the original driver code already and are so severe, that I
seriously wonder whether anyone actually used this driver ever.

With this series applied and some CX II specific commits on top, the
driver works fine for both USB serial and ethernet here.

The CX II support patches build upon this series, to avoid bigger
reiterations I'll submit them once this series got some positive feedback.

Cheers,
Fabian

To: Felipe Balbi <balbi@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Yuan-Hsin Chen <yhchen@faraday-tech.com>
CC: linux-usb@vger.kernel.org

Fabian Vogt (7):
  fotg210-udc: Fix DMA on EP0 for length > max packet size
  fotg210-udc: Fix EP0 IN requests bigger than two packets
  fotg210-udc: Remove a dubious condition leading to fotg210_done
  fotg210-udc: Mask GRP2 interrupts we don't handle
  fotg210-udc: Call usb_gadget_udc_reset
  fotg210-udc: Don't DMA more than the buffer can take
  fotg210-udc: Complete OUT requests on short packets

 drivers/usb/gadget/udc/fotg210-udc.c | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)