net: phy: at803x: move at8035 specific DT parse to dedicated probe
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 8 Dec 2023 14:51:59 +0000 (15:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 10:34:28 +0000 (10:34 +0000)
commit21a2802a8365cfa82cc02187c1f95136d85592ad
tree2a75036355906b14a5b0a14ac1c0fa71d0d683b7
parentf932a6dc8bae0dae9645b5b1b4c65aed8a8acb2a
net: phy: at803x: move at8035 specific DT parse to dedicated probe

Move at8035 specific DT parse for clock out frequency to dedicated probe
to make at803x probe function more generic.

This is to tidy code and no behaviour change are intended.

Detection logic is changed, we check if the clk 25m mask is set and if
it's not zero, we assume the qca,clk-out-frequency property is set.

The property is checked in the generic at803x_parse_dt called by
at803x_probe.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c