Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: usb251xb: Add support for USB2422

The USB2422 uses a different package that the USB251x and only comes in
a variant with 2 downstream ports. Other than that it is software
compatible.

Tested-by: Carsten Stelling <carsten.stelling@goerlitz.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20191023105250.16537-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
cd7da3bc 6fa54eda

+12
+12
drivers/usb/misc/usb251xb.c
··· 156 156 char product_str[USB251XB_STRING_BUFSIZE / 2]; /* ASCII string */ 157 157 }; 158 158 159 + static const struct usb251xb_data usb2422_data = { 160 + .product_id = 0x2422, 161 + .port_cnt = 2, 162 + .led_support = false, 163 + .bat_support = true, 164 + .product_str = "USB2422", 165 + }; 166 + 159 167 static const struct usb251xb_data usb2512b_data = { 160 168 .product_id = 0x2512, 161 169 .port_cnt = 2, ··· 601 593 602 594 static const struct of_device_id usb251xb_of_match[] = { 603 595 { 596 + .compatible = "microchip,usb2422", 597 + .data = &usb2422_data, 598 + }, { 604 599 .compatible = "microchip,usb2512b", 605 600 .data = &usb2512b_data, 606 601 }, { ··· 731 720 static SIMPLE_DEV_PM_OPS(usb251xb_pm_ops, usb251xb_suspend, usb251xb_resume); 732 721 733 722 static const struct i2c_device_id usb251xb_id[] = { 723 + { "usb2422", 0 }, 734 724 { "usb2512b", 0 }, 735 725 { "usb2512bi", 0 }, 736 726 { "usb2513b", 0 },