HP ScanJet 8300 misidentified as 8200
During a routine regression test of a ScanJet 8300, scanimage identifies an HP ScanJet 8300 as a ScanJet 8200. xsane also hangs when attaching to the device.
Investigation reveals that the SCSI device details retrieved from the ENQUIRY command matches a number of similar entries in the Avision device list:
[20:42:36.528826] [avision] attach: [8-15] Vendor id.: 'HP '
[20:42:36.528834] [avision] attach: [16-31] Product id.: 'C9930A '
This information matches all of the 8300 and 8200 families of scanners.
The attach function relies only on the scsi_mfg and scsi_model fields to match with device configuration. In order to properly select the appropriate device, the USB ids details must be matched for USB devices, as the ScanJet 8200 has a different USB product id.