ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
heat has quit [Ping timeout: 252 seconds]
heat has joined #armlinux
gvg has joined #armlinux
nsaenz has joined #armlinux
nsaenz has quit [Ping timeout: 245 seconds]
apritzel has quit [Ping timeout: 255 seconds]
heat has quit [Ping timeout: 246 seconds]
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #armlinux
amitk has joined #armlinux
System_Error has quit [Remote host closed the connection]
System_Error has joined #armlinux
mvaittin has joined #armlinux
nsaenz has joined #armlinux
headless has joined #armlinux
monstr has joined #armlinux
gclement has joined #armlinux
apritzel has joined #armlinux
amitk_ has joined #armlinux
amitk has quit [Ping timeout: 246 seconds]
apritzel has quit [Ping timeout: 272 seconds]
cbeznea has joined #armlinux
rgallaispou has joined #armlinux
headless has quit [Quit: Konversation terminated!]
sszy has joined #armlinux
heat has joined #armlinux
<geertu> ukleinek: Bummer, torvalds is preempting your patch statistics ;-)
fancer has joined #armlinux
* ukleinek raises eyebrows and fails to find what geertu means
<geertu> ukleinek: commit e70140ba0d2b1a30 ("Get rid of 'remove_new' relic from platform driver struct")
<ukleinek> oh, would have been nice if he told me.
<geertu> ukleinek: Well, I guess you would have found soon during the customary rebase
<geertu> found out
* ukleinek nods, probably tomorrow. But I just sent out another patch of this sort ...
<geertu> ukleinek: oops
<ukleinek> ah, for reasons I decided not to talk about, the patch didn't make it out. Good.
<mmind00> vkoul: I may just be blind for not finding this, but can you tell me what the concurrency expectation of the phy-layer is? i.e. multiple phy-consumers getting the same phy ... I have been looking for some -EBUSY, but haven't found one yet
mripard has joined #armlinux
militantorc has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
pikapika_lunar has joined #armlinux
apritzel has joined #armlinux
rockosov has joined #armlinux
lag has quit [Remote host closed the connection]
lag has joined #armlinux
Amit_T has joined #armlinux
robmur01 has joined #armlinux
headless has joined #armlinux
nsaenz has quit [Ping timeout: 276 seconds]
luispm has quit [Ping timeout: 265 seconds]
headless has quit [Quit: Konversation terminated!]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #armlinux
mvaittin has quit [Ping timeout: 244 seconds]
headless has joined #armlinux
luispm has joined #armlinux
<Forty-Bot> mmind00: afaik there are no checks for this in the phy layer
<Forty-Bot> (at least the last time I looked at it ~2 years ago)
<Forty-Bot> so if you want to enforce e.g. "one consumer per phy" you have to do it at the driver level
<Forty-Bot> which isn't too bad; just stick a "used" variable in your phy and check it in phy_init or whatever
<mmind00> Forty-Bot: yep ... the question was more aimed at what is the expectation in the phy-layer ... like a phy being used by two separate controllers "at the same time" an expected use-case ... in my mind allowing that would mean chaos, so some usage-checking would be adviced, as you wrote
<Forty-Bot> so I think there are two use cases
<Forty-Bot> first, you have a phy that is not supposed to be reused
<Forty-Bot> in which case, supplying it to two different devices is a firmware bug
<Forty-Bot> but it's not exactly going to cause further problems
<Forty-Bot> probably one or both of the devices won't work, but if there's one phy then there's one physical serdes too, so of course this happens
<Forty-Bot> the other case is that you want to allow two devices to use the same phy at runtime (e.g. say you have a USB3 port and you also want to do displayport)
<Forty-Bot> so they need to coordinate by releasing the phy (phy_power_down/phy_exit) once they are done
<Forty-Bot> and this is possible with the current framework, but wouldn't be if exclusive access was enforced at the phy layer
<mmind00> Forty-Bot: yep ... I get that ... just wanting to make sure I don't suggest wrong stuff in https://lore.kernel.org/linux-rockchip/2342f342-672c-447e-90d8-674b748af6a4@rock-chips.com/T/#mcfc7313444f5d3a0f71421aa9377eeb0dd11dcf0
<mmind00> i.e. an hdmi+edp phy connected to an dw-hdmi controller and an analogix-dp controller ... it can of course only do one at a time
<mmind00> right now we're debating the pros and cons of phy_set_mode vs. getting the phy via an phandle argument (which seems to be a somewhat newish idea - at least to me)
<Forty-Bot> I think phy_set_mode is the Way to Go
<Forty-Bot> doing things in the phandle is more brittle, since it introduces opportunities for firmware bugs
<Forty-Bot> e.g. you hook up the phy to a different device but forget to change the mode in the phandle
<Forty-Bot> and the consuming device should definitely know what phy mode it needs
<mmind00> recently I read suggestions going the opposite way ;-) ... like for my own DPHY/CPHY driver
<Forty-Bot> link?
<Forty-Bot> eh, that's just a problem of expectations
<Forty-Bot> I think the reason for this is that a lot of phys don't support changing the mode at runtime
<mmind00> where the argument makes sense too ... like you "should" know what type of phy you need when you write the DT ... and of course those phy-links are always on the soc-level itself
<Forty-Bot> especially some of the older ones
<mmind00> so the board-dt-writer won't ever come near that
<Forty-Bot> no, don't make the DT authors think ;)
<Forty-Bot> it's much nicer to have an interface you can't screw up
<Forty-Bot> anyway, if you support phy_set_mode, then it's much better to just skip the phy modes IMO
<Forty-Bot> if you decide you want it later you can always add it
<Forty-Bot> but you can never remove anything from devicetree
psydroid has joined #armlinux
psydroid2 has joined #armlinux
mvaittin has joined #armlinux
dmart has joined #armlinux
headless has quit [Ping timeout: 260 seconds]
headless has joined #armlinux
headless has quit [Client Quit]
headless has joined #armlinux
mvaittin has quit [Ping timeout: 265 seconds]
gclement has quit [Ping timeout: 272 seconds]
Perflosopher has quit [Quit: Ping timeout (120 seconds)]
Perflosopher has joined #armlinux
mvaittin has joined #armlinux
mvaittin has quit [Ping timeout: 265 seconds]
headless has quit [Quit: Konversation terminated!]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cbeznea has quit [Ping timeout: 246 seconds]
cbeznea has joined #armlinux
mvaittin has joined #armlinux
psydroid2 has quit [Ping timeout: 252 seconds]
luispm has quit [Quit: Leaving]
siak has joined #armlinux
apritzel has quit [Ping timeout: 252 seconds]
psydroid2 has joined #armlinux
rvalue- has joined #armlinux
rvalue has quit [Ping timeout: 246 seconds]
headless has joined #armlinux
rvalue- is now known as rvalue
fancer has quit [Quit: Konversation terminated!]
System_Error has quit [Remote host closed the connection]
monstr has quit [Remote host closed the connection]
System_Error has joined #armlinux
siak has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TheCoffeMaker_ has joined #armlinux
TheCoffeMaker has quit [Read error: Connection reset by peer]
mvaittin has quit [Ping timeout: 265 seconds]
heat_ has joined #armlinux
Amit_T has quit [Quit: Leaving]
heat has quit [Ping timeout: 252 seconds]
heat has joined #armlinux
heat_ has quit [Read error: Connection reset by peer]
headless has quit [Quit: Konversation terminated!]
cbeznea has quit [Ping timeout: 264 seconds]
psydroid2 has quit [Remote host closed the connection]
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
apritzel has joined #armlinux
jwerner has joined #armlinux