hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/drivers/net/dsa/mv88e6xxx/phy.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Marvell 88e6xxx Ethernet switch PHY and PPU support
34 *
45 * Copyright (c) 2008 Marvell Semiconductor
56 *
67 * Copyright (c) 2017 Andrew Lunn <andrew@lunn.ch>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
128 */
139
1410 #include <linux/mdio.h>
....@@ -141,7 +137,7 @@
141137
142138 chip = container_of(ugly, struct mv88e6xxx_chip, ppu_work);
143139
144
- mutex_lock(&chip->reg_lock);
140
+ mv88e6xxx_reg_lock(chip);
145141
146142 if (mutex_trylock(&chip->ppu_mutex)) {
147143 if (mv88e6xxx_phy_ppu_enable(chip) == 0)
....@@ -149,7 +145,7 @@
149145 mutex_unlock(&chip->ppu_mutex);
150146 }
151147
152
- mutex_unlock(&chip->reg_lock);
148
+ mv88e6xxx_reg_unlock(chip);
153149 }
154150
155151 static void mv88e6xxx_phy_ppu_reenable_timer(struct timer_list *t)