} else {  US_DEBUGP("usbat_identify_device: Detected Flash reader/writer\n"); info->devicetype = USBAT_DEV_FLASH; 
static int usbat_identify_device(struct us_data *us,				 struct usbat_info *info){	int rc;	unsigned char status;	if (!us || !info)		return USB_STOR_TRANSPORT_ERROR;	rc = usbat_device_reset(us);	if (rc != USB_STOR_TRANSPORT_GOOD)		return rc;	msleep(25);	/*	 * In attempt to distinguish between HP CDRW's and Flash readers, we now	 * execute the IDENTIFY PACKET DEVICE command. On ATA devices (i.e. flash	 * readers), this command should fail with error. On ATAPI devices (i.e.	 * CDROM drives), it should succeed.	 */	rc = usbat_write(us, USBAT_ATA, USBAT_ATA_CMD, 0xA1); 	if (rc != USB_STOR_XFER_GOOD) 		return USB_STOR_TRANSPORT_ERROR;	rc = usbat_get_status(us, &status); 	if (rc != USB_STOR_XFER_GOOD) 		return USB_STOR_TRANSPORT_ERROR;	// Check for error bit	if (status & 0x01) {		 // Device is a CompactFlash reader/writer		US_DEBUGP("usbat_identify_device: Detected Flash reader/writer\n");		info->devicetype = USBAT_DEV_FLASH;	} else {		// Device is HP 8200		US_DEBUGP("usbat_identify_device: Detected HP8200 CDRW\n");		info->devicetype = USBAT_DEV_HP8200;	}	return USB_STOR_TRANSPORT_GOOD;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/a8798533c1f876b97566588cf2bf52458cb4a35d/shuttle_usbat.c/buggy/drivers/usb/storage/shuttle_usbat.c