diff options
| author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2024-09-04 19:18:17 +0200 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2024-09-09 10:29:04 +0100 |
| commit | aa3672be731d473f65619ad198664a90771ab3d5 (patch) | |
| tree | 13a7faaa82e1315b26d26293d506c3020507503a /net/unix/af_unix.c | |
| parent | net: ethernet: fs_enet: drop the .adjust_link custom fs_ops (diff) | |
| download | linux-aa3672be731d473f65619ad198664a90771ab3d5.tar.gz linux-aa3672be731d473f65619ad198664a90771ab3d5.zip | |
net: ethernet: fs_enet: only protect the .restart() call in .adjust_link
When .adjust_link() gets called, it runs in thread context, with the
phydev->lock held. We only need to protect the fep->fecp/fccp/sccp
register that are accessed within the .restart() function from
concurrent access from the interrupts.
These registers are being protected by the fep->lock spinlock, so we can
move the spinlock protection around the .restart() call instead of the
entire adjust_link() call. By doing so, we can simplify further the
.adjust_link() callback and avoid the intermediate helper.
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
