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
shailangsa_ has quit []
prabhakarlad has quit [Quit: Client closed]
shailangsa has joined #armlinux
apritzel has quit [Ping timeout: 240 seconds]
buZz has quit [Ping timeout: 260 seconds]
buZz has joined #armlinux
buZz is now known as Guest7950
Tokamak has quit [Ping timeout: 250 seconds]
Tokamak has joined #armlinux
Tokamak has quit [Ping timeout: 256 seconds]
Tokamak has joined #armlinux
amitk has joined #armlinux
<hanetzer>
hrm.
iivanov has joined #armlinux
cbeznea has joined #armlinux
SallyAhaj has joined #armlinux
djrscally has joined #armlinux
Nact has joined #armlinux
Lucanis0 has quit [Read error: Connection reset by peer]
Lucanis0 has joined #armlinux
Lucanis0 has quit [Changing host]
Lucanis0 has joined #armlinux
Pali has joined #armlinux
matthias_bgg has joined #armlinux
cleger has joined #armlinux
Pali has quit [Ping timeout: 276 seconds]
nsaenz has joined #armlinux
prabhakarlad has joined #armlinux
apritzel has joined #armlinux
nsaenz has quit [Quit: Leaving]
ywnkmn has quit [Ping timeout: 240 seconds]
headless has joined #armlinux
tre has joined #armlinux
<hanetzer>
an interesting catch-22 situation. I need to use the platform_device form of registration to register certain kinds of clocks in the crg, but I need to use the CLK_OF_DECLARE form of registration to get the clocks in the sysctrl running early; problem is, those clocks depend on the crg clocks lol
<apritzel>
broonie: is there some appetite (or even precedence?) for a generic clock gate via regmap?
<apritzel>
I have that simple "a bit in an I2C register toggles the clock" case
<apritzel>
and there is some wrapper for the same thing via MMIO: clk_register_gate(), which nicely hides all this CCF boilerplate
<broonie>
apritzel: Seems like a sensible enough thing for the clock API to implement, we've got the equivalents for other APIs like regulator - I'd not do it in regmap.
<broonie>
I'd put it in the clock code.
<apritzel>
yeah, I was just wondering if that should be generic, or live in my driver
<broonie>
I'd say generic.
<apritzel>
broonie: cool, thanks, will give it a try!
nsaenz has joined #armlinux
<hanetzer>
apritzel: tbh, the clock setup in drivers/clk/hisilicon is pretty robust for that kind of thing.
<broonie>
seems like a clear indication it should be in the framework/library code somewhere then!
<hanetzer>
maybe. a bit over my pay grade to be messing around too much with kernel internals. Already felt a bit eh to carve some soc specific drivers in that dir into something I can use :)
<hanetzer>
but yeah. for mux or gate clocks, you define a few struct arrays that give you a id number you can use in dts, the register block that has the bits you need, the bits themselves, flags, and such.
headless has quit [Quit: Konversation terminated!]
sszy has joined #armlinux
jlinton has joined #armlinux
jlinton has quit [Ping timeout: 252 seconds]
Nact has quit [Read error: Connection reset by peer]
Nact has joined #armlinux
<apritzel>
hanetzer: ah, thanks, I started to look around for prior art already
<hanetzer>
blerg. apparently the clk-hi3559a.c pll driver never got updated to the new api :P
headless has joined #armlinux
<hanetzer>
I'll prolly have to skip the pll clocks for now, then :/
amitk has quit [Ping timeout: 246 seconds]
tre has quit [Remote host closed the connection]
<hanetzer>
is there a tool for debugging/decoding kasan dumps?
<ukleinek>
hanetzer: brain?
<hanetzer>
ukleinek: I haz teh dum
<hanetzer>
but yeah. I can't see why its borking where it is tbh
matthias_bgg has quit [Quit: Leaving]
amitk has joined #armlinux
<hanetzer>
ARRAY_SIZE is compile-time only yeh?
iivanov has quit [Quit: Leaving...]
<hanetzer>
ah. allocated not enough space. now to figure out why this is -EBUSY
<hanetzer>
basically, 0x12040000 thru 0x120400bc is crg regs. 0x1204008c is a gmac interface control register. I pass 0x12040000 to my crg driver, and try to pass 0x1204008c into another node (see arch/arm/boot/dts/hisi-x5hd2.dtsi:439 for what I mean) and it EBUSY's on me.