mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
net: dsa: microchip: add ksz_prmw32() helper
This will be used in a subsequent patch fixing an errata for writes to certain PHY registers. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Reviewed-by: Simon Horman <simon.horman@corigine.com> Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com> Link: https://lore.kernel.org/r/20230620113855.733526-3-linux@rasmusvillemoes.dk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
3b42fbd595
commit
ece28ecbec
1 changed files with 7 additions and 0 deletions
|
@ -582,6 +582,13 @@ static inline int ksz_prmw8(struct ksz_device *dev, int port, int offset,
|
|||
mask, val);
|
||||
}
|
||||
|
||||
static inline int ksz_prmw32(struct ksz_device *dev, int port, int offset,
|
||||
u32 mask, u32 val)
|
||||
{
|
||||
return ksz_rmw32(dev, dev->dev_ops->get_port_addr(port, offset),
|
||||
mask, val);
|
||||
}
|
||||
|
||||
static inline void ksz_regmap_lock(void *__mtx)
|
||||
{
|
||||
struct mutex *mtx = __mtx;
|
||||
|
|
Loading…
Add table
Reference in a new issue