[PATCH net-next v2 2/3] net: stmmac: qcom-ethqos: add rgmii set/clear functions
Konrad Dybcio
konrad.dybcio at oss.qualcomm.com
Thu Nov 20 04:07:34 PST 2025
On 11/20/25 12:25 PM, Russell King (Oracle) wrote:
> The driver has a lot of bit manipulation of the RGMII registers. Add
> a pair of helpers to set bits and clear bits, converting the various
> calls to rgmii_updatel() as appropriate.
>
> Most of the change was done via this sed script:
>
> /rgmii_updatel/ {
> N
> /,$/N
> /mask, / ! {
> s|rgmii_updatel\(([^,]*,\s+([^,]*),\s+)\2,\s+|rgmii_setmask(\1|
> s|rgmii_updatel\(([^,]*,\s+([^,]*),\s+)0,\s+|rgmii_clrmask(\1|
> s|^\s+$||
> }
> }
>
> and then formatting tweaked where necessary.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio at oss.qualcomm.com>
Konrad
More information about the linux-arm-kernel
mailing list