Re: [PATCH] net: usb: smsc95xx: configure external LEDs function for EVB-LAN8670-USB
From: Oliver Neukum
Date: Mon May 27 2024 - 04:28:31 EST
On 22.05.24 16:08, Parthiban Veerasooran wrote:
Hi,
however you solve this, the descriptors are stored in wire order.
+ if (dev->udev->descriptor.idVendor == 0x184F &&
+ dev->udev->descriptor.idProduct == 0x0051)
+ write_buf |= LED_GPIO_CFG_LED_SEL;
This needs to be
if (dev->udev->descriptor.idVendor == cpu_to_le16(0x184F) &&
dev->udev->descriptor.idProduct == cpu_to_le16(0x0051))
HTH
Oliver