static void generic_disconnect(struct usb_device *udev)
{
        printk("[K] generic disconnect:%d\n", g3_flag); // tmp test

        if(g3_flag == 1)
        {
/*
		if(usb_plug_flag == HUB_RE_ENABLE)
		{
			printk("[K] hub re_enable, ignore sending event\n");	// tmp test
		} 
		else
		{
*/
		printk("[K] send 3g plug-off event\n");	// tmp test
        	usb_plug_flag = G3_PLUG_OFF;        // ASUS PLUG
        	kill_proc(1, SIGTTIN, 1);
//		}
        }

	usb_notify_remove_device(udev);

	/* if this is only an unbind, not a physical disconnect, then
	 * unconfigure the device */
	if (udev->actconfig)
		usb_set_configuration(udev, -1);

	usb_remove_sysfs_dev_files(udev);
}
static void generic_disconnect(struct usb_device *udev)
{
    usb_notify_remove_device(udev);

    /* if this is only an unbind, not a physical disconnect, then
     * unconfigure the device */
    if (udev->actconfig)
        usb_set_configuration(udev, -1);
}
Exemple #3
0
static void generic_disconnect(struct usb_device *udev)
{
	usb_notify_remove_device(udev);

	/* if this is only an unbind, not a physical disconnect, then
	 * unconfigure the device */
	if (udev->actconfig)
		usb_set_configuration(udev, -1);

	
//>> [CTFN-SYS-032-6] kewei lai : Support the second USB LED
	if(udev->portnum == 2)
		usb2_status = kLedStateOff;

	if(udev->portnum == 1)
		usb1_status = kLedStateOff ;

//<< [CTFN-SYS-032-6] End
}