Thread (36 messages) 36 messages, 5 authors, 2021-04-25

Re: [PATCH 11/14] drivers: net: dsa: qca8k: apply switch revision fix

From: Ansuel Smith <ansuelsmth@gmail.com>
Date: 2021-04-25 11:59:29
Also in: linux-devicetree, lkml

On Sun, Apr 25, 2021 at 12:45:54PM +0800, DENG Qingfang wrote:
Hi Ansuel,

On Sat, Apr 24, 2021 at 11:18:20PM +0200, Ansuel Smith wrote:
quoted
I'm starting to do some work with this and a problem arised. Since these
value are based on the switch revision, how can I access these kind of
data from the phy driver? It's allowed to declare a phy driver in the
dsa directory? (The idea would be to create a qca8k dir with the dsa
driver and the dedicated internal phy driver.) This would facilitate the
use of normal qca8k_read/write (to access the switch revision from the
phy driver) using common function?
In case of different switch revision, the PHY ID should also be different.
I think you can reuse the current at803x.c PHY driver, as they seem to
share similar registers.
Is this really necessary? Every PHY has the same ID linked to the switch
id but the revision can change across the same switch id. Isn't the phy
dev flag enought to differiante one id from another? 
quoted
quoted
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help