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
apritzel_ has quit [Ping timeout: 265 seconds]
PobodysNerfect has joined #armlinux
PobodysNerfect has quit [Ping timeout: 240 seconds]
alpernebbi has quit [Ping timeout: 256 seconds]
alpernebbi has joined #armlinux
prabhakarlad has quit [Quit: Client closed]
jclsn has quit [Ping timeout: 240 seconds]
jclsn has joined #armlinux
tachoknight has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cbeznea has joined #armlinux
heat has quit [Ping timeout: 240 seconds]
macromorgan has quit [Read error: Connection reset by peer]
iivanov has joined #armlinux
iivanov has quit [Remote host closed the connection]
iivanov has joined #armlinux
tachoknight has joined #armlinux
tachoknight has quit [Ping timeout: 256 seconds]
monstr has joined #armlinux
guillaume_g has joined #armlinux
frieder has joined #armlinux
iivanov1 has joined #armlinux
iivanov1 has quit [Quit: Leaving.]
PobodysNerfect has joined #armlinux
<wens> linusw__: Have you seen any shared GPIO cases other than regulators? we're expecting to see components (TDDI, or touch w/ display driver) with shared reset pins, and are wondering what's the best fit
<geertu> wens: On various Renesas R-Car Gen3 boards, there are GPIOs shared by LEDs and switches.
<bjdooks> but iirc you can point the led driver at gpio controller
<wens> bjdooks: you mean gpio hogs? but then you sort of can't control them
<geertu> switches are active-low, LEDs are active-high.
<wens> geertu: sounds interesting
<geertu> When the GPIO is switched to input, the LED lights up, and pressing the switch will turn it off, as a side-ecffect
<wens> I guess it boils down to how to let two or more device drivers share a single GPIO line to control something
<geertu> Indeed. The LED+switch case is a bit complicated, because you can only read the switch state when the LED is on.
<wens> for our case we could work around it by describing them as regulators, but I was curious if there were less hacky ways
<wens> I don't recall seeing GPIO-based reset controllers in the past though
<geertu> IIRC, linusw suggested the GPIO-based reset controller? reset controller support shared resets
<wens> yeah, that was my second option
<linusw__> wens: yeah I've also seen shared resets before
<linusw__> I think I've said that it'd fine to just go and implement drivers/reset/reset-gpio.c (despite that subsystem is mostly for silicon reset) and use shared lines like regulators do.
<linusw__> The problem is that that is not exactly easy, the reset controller may be easy but two drivers will need to cooperate to actually perform a live reset.
<linusw__> Like a LCD and a touch screen controller will need to signal each other if one of them want reset and the other does not, so they can both bring down the reference count to 0 in cooperation.
<linusw__> Some even say that breaks encapsulation and assumptions that all drivers make of resources being independent.
m5zs7k has quit [Ping timeout: 240 seconds]
<linusw__> So it is pretty stupid hardware design and consequently leads to stupid software design...
headless has joined #armlinux
sszy has joined #armlinux
m5zs7k has joined #armlinux
<wens> yeah... I was just made aware that the display part in the TDDI thing needs to trigger reset multiple times during init... (facepalm)
undeadscholar has joined #armlinux
<geertu> Sharing saves pins (at the expense of something else)
<geertu> My favorite is still the interrupt line shared by two PMICs, who both assert it on boot to indicate power had been lost before...
bps has joined #armlinux
bps has quit [Changing host]
bps has joined #armlinux
<wens> I've seen those, though the PMICs I saw weren't as crazy
<mvaittin> Well, HW designers tend to do "novel" solutions :) My favourite was the opposite of Geert's. One PMIC which provided two separate IRQ lines - but had IRQ status/ACK/MASK for both mixed in same register(s). Ultimate race-by-design.
<tmlind> hehe also check out dave brownell's old comment "mentor saves a bit" somewhere in drivers/usb/musb :)
rockosov has joined #armlinux
PobodysNerfect_ has joined #armlinux
PobodysNerfect has quit [Ping timeout: 268 seconds]
<linusw__> arnd: it appears the build robots are actually not complaining about my static inline work on virt_to_pfn(), I thought I would have to go on forever...
<linusw__> The plan is to send it out as a series and target the arch tree as it is a kind if wide thing.
apritzel_ has joined #armlinux
<arnd> nice!
cbeznea has quit [Ping timeout: 246 seconds]
matthias_bgg has joined #armlinux
cbeznea has joined #armlinux
shoragan has quit [Remote host closed the connection]
shoragan has joined #armlinux
apritzel_ has quit [Ping timeout: 240 seconds]
cbeznea1 has joined #armlinux
cbeznea has quit [Ping timeout: 264 seconds]
apritzel has joined #armlinux
cbeznea1 has quit [Ping timeout: 265 seconds]
<j`ey> https://lore.kernel.org/linux-arm-kernel/ doesnt seem to be updating for a couple of days now (although infradead itself seems fine)
prabhakarlad has joined #armlinux
cbeznea has joined #armlinux
pharonix71 has quit [Ping timeout: 240 seconds]
pharonix71 has joined #armlinux
luispm has quit [Quit: Leaving]
undeadscholar has quit [Remote host closed the connection]
Nact has joined #armlinux
rockosov has quit [Ping timeout: 240 seconds]
rockosov has joined #armlinux
headless has quit [Quit: Konversation terminated!]
<javierm> maz: hi, I noticed that KVM is a bool Kconfig symbol in aarch64 instead of a tristate symbol as is in x86_64, is there any reason for that?
<javierm> I see that has always been bool since it was merged and same for x86_64, it has always been tristate
luispm has joined #armlinux
<maz> javierm: because you cannot build KVM/arm64 as a module?
<maz> (and no, I'm not entertaining changing that).
<javierm> maz: perfect, I was just wondering if that was the case
<javierm> maz: and thanks for the clarification
<maz> javierm: np
<linusw__> j`ey: I guess lore has been unsubscribed from the list, which usually happens because of bounces.
<ardb> i get unsubscribed 1-2x per week
<ardb> ok a bit less than that but multiple times a month at least
<ardb> very tedious
Nact has quit [Quit: Konversation terminated!]
<geertu> ardb: #metoo
* geertu managed to address the right ar* in a single try
<arnd> I think I only had that problem once after migrating from 1und1.de to fastmail.com
<ardb> geertu: \o/
heat has joined #armlinux
<j`ey> linusw__: yeah, just saw some other people were unsubscribed this week
<linusw__> j`ey: I tried to mail David Woodehouse about the problem of repetitive unsubscribes from the infradead lists, but he didn't reply.
<geertu> linusw__: checkpatch doesn't like your "void * func" style
<linusw__> geertu: aha I'll fix that for v2
<linusw__> geertu: btw I chose arc and m68k as "extra" architecture because they have active maintainers.
<geertu> linusw__: Thx! Zero-day also tends to report many issues in m68k test builds.
<geertu> I'm giving your series a try on m68k...
<linusw__> geertu: thanks! I hope it "just works".
elastic_1 has joined #armlinux
elastic_1 is now known as elastic_dog
elastic_dog is now known as Guest4205
Guest4205 has quit [Ping timeout: 256 seconds]
* geertu wonders why his DTB doesn't contain the new feature he's working on, and updates his scripts for the introduction of vendor-specific subdirs
monstr has quit [Remote host closed the connection]
bjoto has quit [Ping timeout: 268 seconds]
bjoto has joined #armlinux
cbeznea has quit [Read error: Connection reset by peer]
prabhakarlad has quit [Quit: Client closed]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cbeznea has joined #armlinux
guillaume_g has quit [Quit: Konversation terminated!]
bps has quit [Ping timeout: 256 seconds]
<geertu> linusw__: Works fine on ARAnyM. Compiles with a few warnings for Sun-3, will look into that tomorrow...
<marex> ukleinek: hey, you around ?
<marex> ukleinek: I have a bit of a question regarding pwm core
<marex> ukleinek: I am looking at 546 int pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state)
<marex> ukleinek: there is 560 if (!pwm || !state || !state->period ||
<marex> 562 return -EINVAL;
<marex> ukleinek: this blows up if state->enabled is false and state->period = 0 (which I think is a valid case, no?)
headless has joined #armlinux
headless_ has joined #armlinux
headless has quit [Ping timeout: 265 seconds]
headless_ has quit [Quit: Konversation terminated!]
headless has joined #armlinux
<marex> dtor: frieder: hi, I am looking at pwm beeper and I would like to set volume (PWM duty cycle), I wonder whether I should try and extend SND_TONE somehow (but but, kernel ABI) or go the sysfs attribute way (doesnt sound quite right either)
<marex> any hints ?
apritzel has quit [Ping timeout: 240 seconds]
<robmur01> there would seem to be a reasonable argument for a DT property for duty cycle to match the one for frequency
<marex> robmur01: I want this configurable at runtime
matthias_bgg has quit [Quit: Leaving]
bps has joined #armlinux
apritzel_ has joined #armlinux
iivanov has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rvalue has quit [Ping timeout: 256 seconds]
rvalue has joined #armlinux
cbeznea has quit [Quit: Leaving.]
luispm has quit [Quit: Leaving]
bps has quit [Ping timeout: 240 seconds]
bps has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
PobodysNerfect_ has quit [Quit: Gone to sleep. ZZZzzz…]
headless has quit [Quit: Konversation terminated!]
macromorgan has joined #armlinux
<linusw__> geertu: usually the problem is someone passing unsigned long to virt_to_page() or virt_to_pfn(), so a cast to (void *) fixes it.
<frieder> marex: No idea what the best approach for pwm-beeper would be.
<frieder> marex: Did you see that Manuel Traut did a respin of my ancient series in February: https://patchwork.kernel.org/project/linux-input/cover/20230201152128.614439-1-manuel.traut@mt.com/.
frieder has quit [Remote host closed the connection]
PobodysNerfect has joined #armlinux
PobodysNerfect has quit [Ping timeout: 240 seconds]
PobodysNerfect has joined #armlinux
PobodysNerfect has quit [Ping timeout: 240 seconds]
elastic_1 has joined #armlinux
elastic_1 is now known as elastic_dog
bps has quit [Ping timeout: 246 seconds]
apritzel_ has quit [Ping timeout: 264 seconds]