OSDN Git Service

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)
commit384811286f2db6845758eb5789b0dec015d40719
tree5619024c5d79d95a8435bce045aa838c40dda39a
parent7fcf55847178c644f3bbe127b72a0c6dc378419a
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