]> git.baikalelectronics.ru Git - kernel.git/commit
usb: usb251xb: Add USB251x specific port count setting
authorSerge Semin <fancer.lancer@gmail.com>
Sun, 22 Oct 2017 20:38:05 +0000 (23:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 16:14:21 +0000 (17:14 +0100)
commit754593fa4b226468c1fe37296d99ca6ec6631750
tree5619024c5d79d95a8435bce045aa838c40dda39a
parent66d10b42388fdd84325a824fc022e1ba5b6bc13d
usb: usb251xb: Add USB251x specific port count setting

USB251xb as well as USB2517 datasheet states, that all these
hubs differ by number of ports declared as the last digit in the
model name. So USB2512 got two ports, USB2513 - three, and so on.
Such setting must be reflected in the device specific data
structure and corresponding dts property should be checked whether
it doesn't get out of available ports.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb251xb.c