Skip to content

Commit c286909

Browse files
davidchen7davem330
authored andcommitted
r8152: Fix an error on RTL8153-BD MAC Address Passthrough support
RTL8153-BD is used in Dell DA300 type-C dongle. Added RTL8153-BD support to activate MAC address pass through on DA300. Apply correction on previously submitted patch in net.git tree. Signed-off-by: David Chen <david.chen7@dell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7cc9f70 commit c286909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/r8152.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ static int vendor_mac_passthru_addr_read(struct r8152 *tp, struct sockaddr *sa)
11791179
} else {
11801180
/* test for RTL8153-BND and RTL8153-BD */
11811181
ocp_data = ocp_read_byte(tp, MCU_TYPE_USB, USB_MISC_1);
1182-
if ((ocp_data & BND_MASK) == 0 && (ocp_data & BD_MASK)) {
1182+
if ((ocp_data & BND_MASK) == 0 && (ocp_data & BD_MASK) == 0) {
11831183
netif_dbg(tp, probe, tp->netdev,
11841184
"Invalid variant for MAC pass through\n");
11851185
return -ENODEV;

0 commit comments

Comments
 (0)