• Johan Hovold's avatar
    USB: serial: ftdi_sio: tighten device-type detection · f353c0d4
    Johan Hovold authored
    Clean up and tighten the device-type detection, which is based on
    bcdDevice.
    
    Don't make assumptions about unknown (future) types (currently assumed
    to be either FT2232C or FT-X depending on bNumInterfaces) and instead
    log an error and refuse to bind so that we can add proper support when
    needed.
    
    Note that the bcdDevice values have been provided by FTDI.
    Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
    f353c0d4
ftdi_sio.c 98.9 KB