Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * GeneSys GL620USB-A based links
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  * Copyright (C) 2001 by Jiun-Jie Huang <huangjj@genesyslogic.com.tw>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright (C) 2001 by Stanislav Brabec <utx@penguin.cz>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) // #define	DEBUG			// error path messages, extra info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) // #define	VERBOSE			// more; success messages
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/netdevice.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/etherdevice.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <linux/ethtool.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <linux/workqueue.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/mii.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/usb.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/usb/usbnet.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include <linux/gfp.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23)  * GeneSys GL620USB-A (www.genesyslogic.com.tw)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25)  * ... should partially interop with the Win32 driver for this hardware.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26)  * The GeneSys docs imply there's some NDIS issue motivating this framing.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28)  * Some info from GeneSys:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)  *  - GL620USB-A is full duplex; GL620USB is only half duplex for bulk.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30)  *    (Some cables, like the BAFO-100c, use the half duplex version.)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31)  *  - For the full duplex model, the low bit of the version code says
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32)  *    which side is which ("left/right").
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33)  *  - For the half duplex type, a control/interrupt handshake settles
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34)  *    the transfer direction.  (That's disabled here, partially coded.)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35)  *    A control URB would block until other side writes an interrupt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37)  * Original code from Jiun-Jie Huang <huangjj@genesyslogic.com.tw>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38)  * and merged into "usbnet" by Stanislav Brabec <utx@penguin.cz>.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) // control msg write command
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) #define GENELINK_CONNECT_WRITE			0xF0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) // interrupt pipe index
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) #define GENELINK_INTERRUPT_PIPE			0x03
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) // interrupt read buffer size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) #define INTERRUPT_BUFSIZE			0x08
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) // interrupt pipe interval value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) #define GENELINK_INTERRUPT_INTERVAL		0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) // max transmit packet number per transmit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) #define GL_MAX_TRANSMIT_PACKETS			32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) // max packet length
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) #define GL_MAX_PACKET_LEN			1514
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) // max receive buffer size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) #define GL_RCV_BUF_SIZE		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	(((GL_MAX_PACKET_LEN + 4) * GL_MAX_TRANSMIT_PACKETS) + 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) struct gl_packet {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	__le32		packet_length;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	char		packet_data [1];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) struct gl_header {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	__le32			packet_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	struct gl_packet	packets;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	struct gl_header	*header;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	struct gl_packet	*packet;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	struct sk_buff		*gl_skb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	u32			size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	u32			count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	/* This check is no longer done by usbnet */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	if (skb->len < dev->net->hard_header_len)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 		return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	header = (struct gl_header *) skb->data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	// get the packet count of the received skb
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	count = le32_to_cpu(header->packet_count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	if (count > GL_MAX_TRANSMIT_PACKETS) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 		netdev_dbg(dev->net,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 			   "genelink: invalid received packet count %u\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 			   count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 		return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	// set the current packet pointer to the first packet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	packet = &header->packets;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	// decrement the length for the packet count size 4 bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	skb_pull(skb, 4);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	while (count > 1) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 		// get the packet length
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 		size = le32_to_cpu(packet->packet_length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 		// this may be a broken packet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 		if (size > GL_MAX_PACKET_LEN) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 			netdev_dbg(dev->net, "genelink: invalid rx length %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 				   size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 			return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 		// allocate the skb for the individual packet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 		gl_skb = alloc_skb(size, GFP_ATOMIC);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 		if (gl_skb) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 			// copy the packet data to the new skb
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 			skb_put_data(gl_skb, packet->packet_data, size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 			usbnet_skb_return(dev, gl_skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 		// advance to the next packet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 		packet = (struct gl_packet *)&packet->packet_data[size];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 		count--;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 		// shift the data pointer to the next gl_packet
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 		skb_pull(skb, size + 4);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	// skip the packet length field 4 bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 	skb_pull(skb, 4);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	if (skb->len > GL_MAX_PACKET_LEN) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 		netdev_dbg(dev->net, "genelink: invalid rx length %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 			   skb->len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 		return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	return 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) static struct sk_buff *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) genelink_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	int 	padlen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 	int	length = skb->len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	int	headroom = skb_headroom(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	int	tailroom = skb_tailroom(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	__le32	*packet_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	__le32	*packet_len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	// FIXME:  magic numbers, bleech
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	padlen = ((skb->len + (4 + 4*1)) % 64) ? 0 : 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	if ((!skb_cloned(skb))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 			&& ((headroom + tailroom) >= (padlen + (4 + 4*1)))) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 		if ((headroom < (4 + 4*1)) || (tailroom < padlen)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 			skb->data = memmove(skb->head + (4 + 4*1),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 					     skb->data, skb->len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 			skb_set_tail_pointer(skb, skb->len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	} else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 		struct sk_buff	*skb2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 		skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 		dev_kfree_skb_any(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 		skb = skb2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 		if (!skb)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 			return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	// attach the packet count to the header
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	packet_count = skb_push(skb, (4 + 4 * 1));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	packet_len = packet_count + 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	*packet_count = cpu_to_le32(1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	*packet_len = cpu_to_le32(length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	// add padding byte
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	if ((skb->len % dev->maxpacket) == 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 		skb_put(skb, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	return skb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) static int genelink_bind(struct usbnet *dev, struct usb_interface *intf)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	dev->hard_mtu = GL_RCV_BUF_SIZE;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	dev->net->hard_header_len += 4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 	dev->in = usb_rcvbulkpipe(dev->udev, dev->driver_info->in);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	dev->out = usb_sndbulkpipe(dev->udev, dev->driver_info->out);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) static const struct driver_info	genelink_info = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	.description =	"Genesys GeneLink",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	.flags =	FLAG_POINTTOPOINT | FLAG_FRAMING_GL | FLAG_NO_SETINT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	.bind =		genelink_bind,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	.rx_fixup =	genelink_rx_fixup,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	.tx_fixup =	genelink_tx_fixup,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	.in = 1, .out = 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) #ifdef	GENELINK_ACK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	.check_connect =genelink_check_connect,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) static const struct usb_device_id	products [] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 	USB_DEVICE(0x05e3, 0x0502),	// GL620USB-A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	.driver_info =	(unsigned long) &genelink_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	/* NOT: USB_DEVICE(0x05e3, 0x0501),	// GL620USB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	 * that's half duplex, not currently supported
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	{ },		// END
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) MODULE_DEVICE_TABLE(usb, products);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) static struct usb_driver gl620a_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	.name =		"gl620a",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	.id_table =	products,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	.probe =	usbnet_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	.disconnect =	usbnet_disconnect,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	.suspend =	usbnet_suspend,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	.resume =	usbnet_resume,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 	.disable_hub_initiated_lpm = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) module_usb_driver(gl620a_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) MODULE_AUTHOR("Jiun-Jie Huang");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) MODULE_DESCRIPTION("GL620-USB-A Host-to-Host Link cables");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) MODULE_LICENSE("GPL");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229)