Skip to content

Commit abd143d

Browse files
committed
tgupdate: merge t/upstream base into t/upstream
2 parents 72cb4f2 + ebc6ead commit abd143d

File tree

23 files changed

+40
-62
lines changed

23 files changed

+40
-62
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15351,7 +15351,7 @@ M: Daniel Machon <[email protected]>
1535115351
1535215352
1535315353
S: Maintained
15354-
F: drivers/net/ethernet/microchip/lan969x/*
15354+
F: drivers/net/ethernet/microchip/sparx5/lan969x/*
1535515355

1535615356
MICROCHIP LCDFB DRIVER
1535715357
M: Nicolas Ferre <[email protected]>

drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ void t4_idma_monitor(struct adapter *adapter,
20762076
struct sge_idma_monitor_state *idma,
20772077
int hz, int ticks);
20782078
int t4_set_vf_mac_acl(struct adapter *adapter, unsigned int vf,
2079-
unsigned int naddr, u8 *addr);
2079+
u8 start, unsigned int naddr, u8 *addr);
20802080
void t4_tp_pio_read(struct adapter *adap, u32 *buff, u32 nregs,
20812081
u32 start_index, bool sleep_ok);
20822082
void t4_tp_tm_pio_read(struct adapter *adap, u32 *buff, u32 nregs,

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3234,7 +3234,7 @@ static int cxgb4_mgmt_set_vf_mac(struct net_device *dev, int vf, u8 *mac)
32343234

32353235
dev_info(pi->adapter->pdev_dev,
32363236
"Setting MAC %pM on VF %d\n", mac, vf);
3237-
ret = t4_set_vf_mac_acl(adap, vf + 1, 1, mac);
3237+
ret = t4_set_vf_mac_acl(adap, vf + 1, pi->lport, 1, mac);
32383238
if (!ret)
32393239
ether_addr_copy(adap->vfinfo[vf].vf_mac_addr, mac);
32403240
return ret;

drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10215,11 +10215,12 @@ int t4_load_cfg(struct adapter *adap, const u8 *cfg_data, unsigned int size)
1021510215
* t4_set_vf_mac_acl - Set MAC address for the specified VF
1021610216
* @adapter: The adapter
1021710217
* @vf: one of the VFs instantiated by the specified PF
10218+
* @start: The start port id associated with specified VF
1021810219
* @naddr: the number of MAC addresses
1021910220
* @addr: the MAC address(es) to be set to the specified VF
1022010221
*/
1022110222
int t4_set_vf_mac_acl(struct adapter *adapter, unsigned int vf,
10222-
unsigned int naddr, u8 *addr)
10223+
u8 start, unsigned int naddr, u8 *addr)
1022310224
{
1022410225
struct fw_acl_mac_cmd cmd;
1022510226

@@ -10234,7 +10235,7 @@ int t4_set_vf_mac_acl(struct adapter *adapter, unsigned int vf,
1023410235
cmd.en_to_len16 = cpu_to_be32((unsigned int)FW_LEN16(cmd));
1023510236
cmd.nmac = naddr;
1023610237

10237-
switch (adapter->pf) {
10238+
switch (start) {
1023810239
case 3:
1023910240
memcpy(cmd.macaddr3, addr, sizeof(cmd.macaddr3));
1024010241
break;

drivers/net/ethernet/microchip/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ config LAN743X
5959

6060
source "drivers/net/ethernet/microchip/lan865x/Kconfig"
6161
source "drivers/net/ethernet/microchip/lan966x/Kconfig"
62-
source "drivers/net/ethernet/microchip/lan969x/Kconfig"
6362
source "drivers/net/ethernet/microchip/sparx5/Kconfig"
6463
source "drivers/net/ethernet/microchip/vcap/Kconfig"
6564
source "drivers/net/ethernet/microchip/fdma/Kconfig"

drivers/net/ethernet/microchip/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ lan743x-objs := lan743x_main.o lan743x_ethtool.o lan743x_ptp.o
1111

1212
obj-$(CONFIG_LAN865X) += lan865x/
1313
obj-$(CONFIG_LAN966X_SWITCH) += lan966x/
14-
obj-$(CONFIG_LAN969X_SWITCH) += lan969x/
1514
obj-$(CONFIG_SPARX5_SWITCH) += sparx5/
1615
obj-$(CONFIG_VCAP) += vcap/
1716
obj-$(CONFIG_FDMA) += fdma/

drivers/net/ethernet/microchip/lan969x/Kconfig

Lines changed: 0 additions & 5 deletions
This file was deleted.

drivers/net/ethernet/microchip/lan969x/Makefile

Lines changed: 0 additions & 13 deletions
This file was deleted.

drivers/net/ethernet/microchip/sparx5/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ config SPARX5_DCB
2424
DSCP and PCP.
2525

2626
If unsure, set to Y.
27+
28+
config LAN969X_SWITCH
29+
bool "Lan969x switch driver"
30+
depends on SPARX5_SWITCH
31+
help
32+
This driver supports the lan969x family of network switch devices.

drivers/net/ethernet/microchip/sparx5/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ sparx5-switch-y := sparx5_main.o sparx5_packet.o \
1616
sparx5-switch-$(CONFIG_SPARX5_DCB) += sparx5_dcb.o
1717
sparx5-switch-$(CONFIG_DEBUG_FS) += sparx5_vcap_debugfs.o
1818

19+
sparx5-switch-$(CONFIG_LAN969X_SWITCH) += lan969x/lan969x_regs.o \
20+
lan969x/lan969x.o \
21+
lan969x/lan969x_calendar.o \
22+
lan969x/lan969x_vcap_ag_api.o \
23+
lan969x/lan969x_vcap_impl.o
24+
1925
# Provide include files
2026
ccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/vcap
2127
ccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/fdma

0 commit comments

Comments
 (0)