projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c99194e
)
net: dsa: loop: Set correct number of ports
author
Florian Fainelli
<f.fainelli@gmail.com>
Mon, 3 Aug 2020 20:03:54 +0000
(13:03 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 4 Aug 2020 01:19:23 +0000
(18:19 -0700)
We only support DSA_LOOP_NUM_PORTS in the switch, do not tell the DSA
core to allocate up to DSA_MAX_PORTS which is nearly the double (6 vs.
11).
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/dsa_loop.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/dsa/dsa_loop.c
b/drivers/net/dsa/dsa_loop.c
index 6a7d661b5a598869bb8d168214ce9aab41a7545f..eb600b3dbf26767c943054cd09bb55ebbb9dc4f0 100644
(file)
--- a/
drivers/net/dsa/dsa_loop.c
+++ b/
drivers/net/dsa/dsa_loop.c
@@
-275,7
+275,7
@@
static int dsa_loop_drv_probe(struct mdio_device *mdiodev)
return -ENOMEM;
ds->dev = &mdiodev->dev;
- ds->num_ports = DSA_
MAX
_PORTS;
+ ds->num_ports = DSA_
LOOP_NUM
_PORTS;
ps = devm_kzalloc(&mdiodev->dev, sizeof(*ps), GFP_KERNEL);
if (!ps)