summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx4/main.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2017-05-16 18:48:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-18 17:05:25 +0300
commit5fcf93795e6b72368cd98cd541b6d4bbe8804320 (patch)
treea60bfeb43b23a235f428b4f980b7d26d313e3521 /drivers/net/ethernet/mellanox/mlx4/main.c
parentf8efdabd14532c47e5420dc593c2a13028e42140 (diff)
downloadlinux-5fcf93795e6b72368cd98cd541b6d4bbe8804320.tar.xz
USB: ene_usb6250: turn off the Removable flag
In the ene_usb6250 sub-driver for usb-storage, the INQUIRY data returned by the driver indicates that the device has removable media. While this is technically correct (memory cards can be removed from the reader), it is not useful because the device automatically disconnects itself from the USB bus when no media is present. In addition, the driver does not support the PREVENT-ALLOW MEDIUM REMOVAL and START STOP UNIT commands, and this can cause user-interface frameworks to get confused when the user asks for the card to be removed or ejected. This patch fixes the problem by changing the INQUIRY data to specify non-removable media; in practice this value works much better. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Reported-and-tested-by: Andreas Hartmann <andihartmann@01019freenet.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/main.c')
0 files changed, 0 insertions, 0 deletions