Searched hist:"78 db441d2ea0c804bc43a2bf3f894c4f7a6c7788" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | storage_common.h | diff 78db441d2ea0c804bc43a2bf3f894c4f7a6c7788 Thu Apr 13 15:36:50 CDT 2017 Alan Stern <stern@rowland.harvard.edu> USB: f_mass_storage: improve async notification handling
This patch makes several adjustments to the way f_mass_storage.c handles its internal state and asynchronous notifications (AKA exceptions):
A number of states weren't being used for anything. They are removed.
The FSG_STATE_IDLE state was renamed to FSG_STATE_NORMAL, because it now applies whenever the gadget is operating normally, not just when the gadget is idle.
The FSG_STATE_RESET state was renamed to FSG_STATE_PROTOCOL_RESET, indicating that it represents a Bulk-Only Transport protocol reset and not a general USB reset.
When a signal arrives, it's silly for the signal handler to send itself another signal! Now it takes care of everything inline.
Along with an assortment of other minor changes in the same category.
Tested-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
|
H A D | f_mass_storage.c | diff 78db441d2ea0c804bc43a2bf3f894c4f7a6c7788 Thu Apr 13 15:36:50 CDT 2017 Alan Stern <stern@rowland.harvard.edu> USB: f_mass_storage: improve async notification handling
This patch makes several adjustments to the way f_mass_storage.c handles its internal state and asynchronous notifications (AKA exceptions):
A number of states weren't being used for anything. They are removed.
The FSG_STATE_IDLE state was renamed to FSG_STATE_NORMAL, because it now applies whenever the gadget is operating normally, not just when the gadget is idle.
The FSG_STATE_RESET state was renamed to FSG_STATE_PROTOCOL_RESET, indicating that it represents a Bulk-Only Transport protocol reset and not a general USB reset.
When a signal arrives, it's silly for the signal handler to send itself another signal! Now it takes care of everything inline.
Along with an assortment of other minor changes in the same category.
Tested-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
|