EHCI: maintain the ehci->command value properly
The ehci-hcd driver is a little haphazard about keeping track of the state of the USBCMD register. The ehci->command field is supposed to hold the register's value (apart from a few special bits) at all times, but it isn't maintained properly. This patch (as1543) cleans up the situation. It keeps ehci->command up-to-date, and uses that value rather than reading the register from the hardware whenever possible. Signed-off-by:Alan Stern <stern@rowland.harvard.edu> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/usb/host/ehci-dbg.c 2 additions, 4 deletionsdrivers/usb/host/ehci-dbg.c
- drivers/usb/host/ehci-hcd.c 10 additions, 6 deletionsdrivers/usb/host/ehci-hcd.c
- drivers/usb/host/ehci-hub.c 1 addition, 1 deletiondrivers/usb/host/ehci-hub.c
- drivers/usb/host/ehci-q.c 6 additions, 10 deletionsdrivers/usb/host/ehci-q.c
- drivers/usb/host/ehci-sched.c 4 additions, 6 deletionsdrivers/usb/host/ehci-sched.c
Loading
Please register or sign in to comment