Revision 48906f62c96cc2cd35753e59310cb70eb08cc6a5 authored by Bjørn Mork on 03 March 2016, 21:20:53 UTC, committed by David S. Miller on 07 March 2016, 19:37:39 UTC
Some devices will silently fail setup unless they are reset first.
This is necessary even if the data interface is already in
altsetting 0, which it will be when the device is probed for the
first time.  Briefly toggling the altsetting forces a function
reset regardless of the initial state.

This fixes a setup problem observed on a number of Huawei devices,
appearing to operate in NTB-32 mode even if we explicitly set them
to NTB-16 mode.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1666984
History

back to top