mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
mv88e6xxx: Remove locks for 6352's has_serdes
There is no register access anymore in mv88e6352_g2_scratch_port_has_serdes. So, remove the locks surrounding the function. Co-developed-by: Thomas Eckerman <thomas.eckerman.ext@ericsson.com> Signed-off-by: Thomas Eckerman <thomas.eckerman.ext@ericsson.com> Signed-off-by: Fidan Aliyeva <fidan.aliyeva.ext@ericsson.com> Link: https://patch.msgid.link/20260521202924.727929-5-fidan.aliyeva.ext@ericsson.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
da054522e8
commit
e4a9173e38
|
|
@ -326,9 +326,7 @@ static int mv88e6352_pcs_init(struct mv88e6xxx_chip *chip, int port)
|
|||
unsigned int irq;
|
||||
int err;
|
||||
|
||||
mv88e6xxx_reg_lock(chip);
|
||||
err = mv88e6352_g2_scratch_port_has_serdes(chip, port);
|
||||
mv88e6xxx_reg_unlock(chip);
|
||||
if (err <= 0)
|
||||
return err;
|
||||
|
||||
|
|
|
|||
|
|
@ -202,9 +202,7 @@ int mv88e6352_serdes_get_regs_len(struct mv88e6xxx_chip *chip, int port)
|
|||
{
|
||||
int err;
|
||||
|
||||
mv88e6xxx_reg_lock(chip);
|
||||
err = mv88e6352_g2_scratch_port_has_serdes(chip, port);
|
||||
mv88e6xxx_reg_unlock(chip);
|
||||
if (err <= 0)
|
||||
return err;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user