btusb.c (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) | btusb.c (5b1b0b812a7b1a5b968c5d06d90d1cb88621b941) |
---|---|
1/* 2 * 3 * Generic Bluetooth USB driver 4 * 5 * Copyright (C) 2005-2008 Marcel Holtmann <marcel@holtmann.org> 6 * 7 * 8 * This program is free software; you can redistribute it and/or modify --- 1089 unchanged lines hidden (view full) --- 1098 struct btusb_data *data = usb_get_intfdata(intf); 1099 1100 BT_DBG("intf %p", intf); 1101 1102 if (data->suspend_count++) 1103 return 0; 1104 1105 spin_lock_irq(&data->txlock); | 1/* 2 * 3 * Generic Bluetooth USB driver 4 * 5 * Copyright (C) 2005-2008 Marcel Holtmann <marcel@holtmann.org> 6 * 7 * 8 * This program is free software; you can redistribute it and/or modify --- 1089 unchanged lines hidden (view full) --- 1098 struct btusb_data *data = usb_get_intfdata(intf); 1099 1100 BT_DBG("intf %p", intf); 1101 1102 if (data->suspend_count++) 1103 return 0; 1104 1105 spin_lock_irq(&data->txlock); |
1106 if (!((message.event & PM_EVENT_AUTO) && data->tx_in_flight)) { | 1106 if (!(PMSG_IS_AUTO(message) && data->tx_in_flight)) { |
1107 set_bit(BTUSB_SUSPENDING, &data->flags); 1108 spin_unlock_irq(&data->txlock); 1109 } else { 1110 spin_unlock_irq(&data->txlock); 1111 data->suspend_count--; 1112 return -EBUSY; 1113 } 1114 --- 130 unchanged lines hidden --- | 1107 set_bit(BTUSB_SUSPENDING, &data->flags); 1108 spin_unlock_irq(&data->txlock); 1109 } else { 1110 spin_unlock_irq(&data->txlock); 1111 data->suspend_count--; 1112 return -EBUSY; 1113 } 1114 --- 130 unchanged lines hidden --- |