Skip to content

Commit 9fe087d

Browse files
Greg Jesionowskikuba-moo
authored andcommitted
net: usb: ax88179_178a: add Allied Telesis AT-UMCs
Adds the driver_info and IDs for the AX88179 based Allied Telesis AT-UMC family of devices. Signed-off-by: Greg Jesionowski <jesionowskigreg@gmail.com> Link: https://lore.kernel.org/r/20220323220024.GA36800@test-HP-EliteDesk-800-G1-SFF Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 109d899 commit 9fe087d

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

drivers/net/usb/ax88179_178a.c

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,45 @@ static const struct driver_info mct_info = {
18721872
.tx_fixup = ax88179_tx_fixup,
18731873
};
18741874

1875+
static const struct driver_info at_umc2000_info = {
1876+
.description = "AT-UMC2000 USB 3.0/USB 3.1 Gen 1 to Gigabit Ethernet Adapter",
1877+
.bind = ax88179_bind,
1878+
.unbind = ax88179_unbind,
1879+
.status = ax88179_status,
1880+
.link_reset = ax88179_link_reset,
1881+
.reset = ax88179_reset,
1882+
.stop = ax88179_stop,
1883+
.flags = FLAG_ETHER | FLAG_FRAMING_AX,
1884+
.rx_fixup = ax88179_rx_fixup,
1885+
.tx_fixup = ax88179_tx_fixup,
1886+
};
1887+
1888+
static const struct driver_info at_umc200_info = {
1889+
.description = "AT-UMC200 USB 3.0/USB 3.1 Gen 1 to Fast Ethernet Adapter",
1890+
.bind = ax88179_bind,
1891+
.unbind = ax88179_unbind,
1892+
.status = ax88179_status,
1893+
.link_reset = ax88179_link_reset,
1894+
.reset = ax88179_reset,
1895+
.stop = ax88179_stop,
1896+
.flags = FLAG_ETHER | FLAG_FRAMING_AX,
1897+
.rx_fixup = ax88179_rx_fixup,
1898+
.tx_fixup = ax88179_tx_fixup,
1899+
};
1900+
1901+
static const struct driver_info at_umc2000sp_info = {
1902+
.description = "AT-UMC2000/SP USB 3.0/USB 3.1 Gen 1 to Gigabit Ethernet Adapter",
1903+
.bind = ax88179_bind,
1904+
.unbind = ax88179_unbind,
1905+
.status = ax88179_status,
1906+
.link_reset = ax88179_link_reset,
1907+
.reset = ax88179_reset,
1908+
.stop = ax88179_stop,
1909+
.flags = FLAG_ETHER | FLAG_FRAMING_AX,
1910+
.rx_fixup = ax88179_rx_fixup,
1911+
.tx_fixup = ax88179_tx_fixup,
1912+
};
1913+
18751914
static const struct usb_device_id products[] = {
18761915
{
18771916
/* ASIX AX88179 10/100/1000 */
@@ -1913,6 +1952,18 @@ static const struct usb_device_id products[] = {
19131952
/* Magic Control Technology U3-A9003 USB 3.0 Gigabit Ethernet Adapter */
19141953
USB_DEVICE(0x0711, 0x0179),
19151954
.driver_info = (unsigned long)&mct_info,
1955+
}, {
1956+
/* Allied Telesis AT-UMC2000 USB 3.0/USB 3.1 Gen 1 to Gigabit Ethernet Adapter */
1957+
USB_DEVICE(0x07c9, 0x000e),
1958+
.driver_info = (unsigned long)&at_umc2000_info,
1959+
}, {
1960+
/* Allied Telesis AT-UMC200 USB 3.0/USB 3.1 Gen 1 to Fast Ethernet Adapter */
1961+
USB_DEVICE(0x07c9, 0x000f),
1962+
.driver_info = (unsigned long)&at_umc200_info,
1963+
}, {
1964+
/* Allied Telesis AT-UMC2000/SP USB 3.0/USB 3.1 Gen 1 to Gigabit Ethernet Adapter */
1965+
USB_DEVICE(0x07c9, 0x0010),
1966+
.driver_info = (unsigned long)&at_umc2000sp_info,
19161967
},
19171968
{ },
19181969
};

0 commit comments

Comments
 (0)