diff options
| author | Egil Hjelmeland <[email protected]> | 2017-10-24 17:14:10 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-26 17:40:32 +0900 |
| commit | 3c91b0c1de8d013490bbc41ce9ee8810ea5baddd (patch) | |
| tree | 837720e8983191cdd9b9804988a3d26061c72cbb /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | acfdf7eabea4186a386ba5e656f0c739563cb1a5 (diff) | |
net: dsa: lan9303: Do not disable switch fabric port 0 at .probe
Make the LAN9303 work when lan9303_probe() is called twice.
For some unknown reason the LAN9303 switch fail to forward data when switch
fabric port 0 TX is disabled during probe. (Write of LAN9303_MAC_TX_CFG_0
in lan9303_disable_processing_port().)
In that situation the switch fabric seem to receive frames, because the ALR
is learning addresses. But no frames are transmitted on any of the ports.
In our system lan9303_probe() is called twice, first time
dsa_register_switch() return -EPROBE_DEFER. As an experiment, modified the
code to skip writing LAN9303_MAC_TX_CFG_0, port 0 during the first probe.
Then the switch works as expected.
Resolve the problem by not calling lan9303_disable_processing_port() on
port 0 during probe. Ports 1 and 2 are still disabled.
Although unsatisfying that the exact failure mechanism is not known,
the patch should not cause any harm.
Signed-off-by: Egil Hjelmeland <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions