daniel-santos / mcp2210-linux

MCP2210 driver for linux
http://danielthesantos.blogspot.com/search/label/mcp2210
51 stars 31 forks source link

Remove or compile-out "usb quirks" code. #23

Open daniel-santos opened 8 years ago

daniel-santos commented 8 years ago

This driver was originally developed for use on a Raspberry Pi where the USB on-the-go drivers were not yet mature. As such, it contains a lot of work-arounds so that the driver could still function when the USB host driver misbehaved in various ways. To my knowledge, these problems have been fixed for the RPi and work-around code shouldn't be present for other platforms anyway.

The config value CONFIG_MCP2210_USB_QUIRKS disables a lot of this, but much of the code is still present and needs to be either removed or compiled-out when CONFIG_MCP2210_USB_QUIRKS is not enabled.