]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: remove WARN_ON if dma mask is not set for platform devices
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 20 Jan 2017 13:38:24 +0000 (15:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2017 13:55:20 +0000 (14:55 +0100)
commitfe0e2b39cb40a171b3870442cc2eebd2ca5a7a3c
tree7c4677cac4f4201bfaf3796922e21049f3c4d466
parent56a49bb2d3fceccd3cd1ab86b9d7b095a21ec3fb
xhci: remove WARN_ON if dma mask is not set for platform devices

The warn on is a bit too much, we will anyway set the dma mask if not set
previously.

The main reason for this fix is that 4.10-rc1  has a dwc3 change that
pass a parent sysdev dev pointer instead of setting the dma mask of
its xhci platform device. xhci platform driver can then get more
attributes from the sysdev than just the dma mask.

The usb core and xhci changes are not yet in 4.10, and a fix like
this was preferred instead of taking those big changes this late in
the rc-cycle.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c