Re: [PATCH RFC v6 2/6] dpll: Add DPLL framework base functions
From: Jiri Pirko <jiri@resnulli.us>
Date: 2023-05-09 07:53:15
Also in:
linux-clk
Mon, May 08, 2023 at 09:42:50PM CEST, kuba@kernel.org wrote:
On Mon, 8 May 2023 14:17:30 +0200 Jiri Pirko wrote:quoted
quoted
quoted
Hmm, that would kind of embed the pin type into attr which feels wrong.An attribute which changes meaning based on a value of another attribute feels even more wrong.
It wouldn't change meaning, it would be still "a label". Either on a back of a PCI card or internal pin in a board scheme. Still the same meaning (for mux type for example).
quoted
quoted
Looking at the above from a different angle, the DPLL_A_PIN_FRONT_PANEL_LABEL attribute will be available only for DPLL_PIN_TYPE_EXT type pins, which looks legit to me - possibly renaming DPLL_A_PIN_FRONT_PANEL_LABEL as DPLL_A_PIN_EXT_LABEL.Yup. Even renaming EXT to something that's less.. relative :(
Suggestion?
quoted
Well sure, in case there is no "label" attr for the rest of the types. Which I believe it is, for the ice implementation in this patchset. Otherwise, there is no way to distinguish between the pins. To have multiple attrs for label for multiple pin types does not make any sense to me, that was my point.Come on, am I really this bad at explaining this?
Or perhaps I'm just slow.
If we make a generic "label" attribute driver authors will pack everything they want to expose to the user into it, and then some.
What's difference in generic label string attr and type specific label string attr. What is stopping driver developers to pack crap in either of these 2. Perhaps I'm missing something. Could you draw examples?
So we need attributes which will feel *obviously* *wrong* to abuse.
Sure, I get what you say and agree. I'm just trying to find out the actual attributes :)