]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ehci-tegra: remove PORT_RWC_BITS when setting USB_PORT_FEAT_ENABLE
authorStephen Warren <swarren@nvidia.com>
Wed, 25 Apr 2012 18:31:10 +0000 (12:31 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 22:15:05 +0000 (15:15 -0700)
commit96ef4346b0439a1ab6878f26b3bdd606c3e41b79
tree26334c6b2527bd56af266802ce58ae3cabcf45a2
parent996fc05a2d88f9fd4e821d2b7cc532f173d7b25d
USB: ehci-tegra: remove PORT_RWC_BITS when setting USB_PORT_FEAT_ENABLE

In the SetPortFeature/USB_PORT_FEAT_ENABLE case, ehci_hub_control()
would read from status_reg, modify the value, and write the result back to
status_reg. This would clear any bits in PORT_RWC_BITS that were set in
the register. Fix this by masking these bits off before the write.

This is logically the same change as 57e6ee9 "USB: EHCI: remove
PORT_RWC_BITS when clearing USB_PORT_FEAT_ENABLE", but applied to the
Tegra driver rather than the USB core.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-tegra.c