support more ZTE CDROM DATA CARD

This commit is contained in:
xxh
2013-11-05 12:44:02 +08:00
parent 566c44613d
commit b2bc5352de
3 changed files with 48 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ static int usb_stor_huawei_scsi_init(struct us_data *us)
int idProduct;
idProduct = us->pusb_dev->descriptor.idProduct;
if(idProduct==0x1F01){
printk("This is SCSI HUAWEI HILINK Dongle\n");
//printk("This is SCSI HUAWEI HILINK Dongle\n");
int result = 0;
int act_len = 0;
unsigned char cmd[32] = {0x55, 0x53, 0x42, 0x43, 0x00, 0x00, 0x00, 0x00,
@@ -206,3 +206,15 @@ int usb_stor_zte_k4505_init(struct us_data *us)
printk("usb_stor_bulk_transfer_buf performing result is %d, transfer the actual length=%d\n", result, act_len);
return (result ? 0 : -ENODEV);
}
int usb_stor_zte_init(struct us_data *us)
{
int result;
result =usb_stor_control_msg(us,us->send_ctrl_pipe,
0xA1,
0xC0,
0x01,0x0,NULL,0x0,1000);
printk("usb_stor_zte_int result is %d\n",result);
return 0;
}

View File

@@ -50,3 +50,5 @@ int usb_stor_ucr61s2b_init(struct us_data *us);
int usb_stor_huawei_init(struct us_data *us);
int usb_stor_zte_k4505_init(struct us_data *us);
int usb_stor_zte_init(struct us_data *us);

View File

@@ -1537,6 +1537,39 @@ UNUSUAL_DEV(0x19d2, 0x0101, 0x0000, 0xffff,
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_zte_k4505_init,
0),
UNUSUAL_DEV(0x19d2, 0x1225, 0x0000, 0x0000,
"ZTE EJECT CDROM",
"USB MMC Storage",
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_zte_init,
0),
UNUSUAL_DEV(0x19d2, 0x1239, 0x0000, 0x0000,
"ZTE EJECT CDROM",
"USB MMC Storage",
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_zte_init,
0),
UNUSUAL_DEV(0x19d2, 0x1240, 0x0000, 0x0000,
"ZTE EJECT CDROM",
"USB MMC Storage",
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_zte_init,
0),
UNUSUAL_DEV(0x19d2, 0x1241, 0x0000, 0x0000,
"ZTE EJECT CDROM",
"USB MMC Storage",
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_zte_init,
0),
UNUSUAL_DEV(0x19d2, 0x1242, 0x0000, 0x0000,
"ZTE EJECT CDROM",
"USB MMC Storage",
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_zte_init,
0),
UNUSUAL_DEV(0x19d2, 0x1243, 0x0000, 0x0000,
"ZTE EJECT CDROM",
"USB MMC Storage",
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_zte_init,
0),
/* Reported by Vilius Bilinkevicius <vilisas AT xxx DOT lt) */
UNUSUAL_DEV( 0x132b, 0x000b, 0x0001, 0x0001,
"Minolta",