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
Tokamak_ has quit [Quit: Tokamak_]
Lucanis has quit [Read error: Connection reset by peer]
Tokamak_ has joined #armlinux
Lucanis has joined #armlinux
Tokamak_ has quit [Quit: Tokamak_]
Tokamak_ has joined #armlinux
sally has joined #armlinux
Tokamak_ has quit [Quit: Tokamak_]
jclsn has quit [Ping timeout: 246 seconds]
jclsn has joined #armlinux
sally has quit [Remote host closed the connection]
jclsn has quit [Ping timeout: 246 seconds]
sally has joined #armlinux
sally has quit [Remote host closed the connection]
sally has joined #armlinux
sally has quit [Remote host closed the connection]
iivanov has joined #armlinux
amitk has joined #armlinux
jclsn has joined #armlinux
monstr has joined #armlinux
frieder has joined #armlinux
frieder has quit [Remote host closed the connection]
_sfo has quit [Ping timeout: 246 seconds]
frieder has joined #armlinux
jclsn has quit [Ping timeout: 260 seconds]
jclsn has joined #armlinux
rgallaispou has joined #armlinux
jclsn has quit [Ping timeout: 264 seconds]
luispm has quit [Quit: Leaving]
headless has joined #armlinux
sszy has joined #armlinux
dliviu has quit [Ping timeout: 260 seconds]
dliviu has joined #armlinux
heat has joined #armlinux
<mwalle> is there a common practice how to deprecate device support in the kernel? I'd like to get rid of the misuse of the spi-nor for some EEPROM like FRAMs. It's such a maintenance burden. The correct way would be to use the at25 driver for these parts. But then we don't have an /dev/mtdN for these, so it's not the same. Uhm.
<mwalle> Of all the oddball devices, there is only one device used in device trees: mr25h256
luispm has joined #armlinux
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #armlinux
jclsn has joined #armlinux
<arnd> can you give more detail about what would have to change? Are these dts files that are wrongly describing hardware, or some driver that does the wrong thing?
<geertu> mwalle: Add everspin,mr25h256 to at25_of_match[] and change the configs?
jclsn has quit [Ping timeout: 246 seconds]
<mwalle> arnd: devices in question are all the SPI-NOR parts with SPI_NOR_NO_ERASE (CAT25_INFO will set that one automatically). Most of them doesn't support autodetection, like the ones in catalyst.c, they seem to be ancient and there are no users, I'd just remove them
<mwalle> arnd: but things get complicated with everspin,mr25h256, there are in-tree users in arch/arm. So while you could convert them to the proper driver that is 'compatible = "everspin,mr25h256", "atmel,at25"' it won't behave the same in userspace. I.e. there will be no /dev/mtd for it
<mwalle> geertu: ^^
<geertu> mwalle: That's unfortunate, but not uncommon (cfr. e.g. fbdev->drm)
<mwalle> funny enough there is a mb85rs1mt in our fujitsu.c which already have a proper DT binding for the at25, see Documentation/devicetree/bindings/eeprom/at25.yaml
dliviu has quit [Ping timeout: 240 seconds]
<mwalle> geertu: mh, how did that work? sorry i may be too "new" to the kernel development
dliviu has joined #armlinux
<geertu> mwalle: fbdev uses /dev/fb*, drm uses /dev/drm*
<javierm> mwalle: maybe another option is to add a new SPI_NOR_DEPRECATED Kconfig symbol that's default to 'n' and conditionally add the of_device_id entries for the deprecated devices when enabled?
<javierm> mwalle: and if after a couple of releases nobody complains, then you could remove ?
<javierm> mwalle: I see that other subsystems do something like that
<geertu> mwalle: If you add everspin,mr25h256 to at25_of_match[], but don't remove the entry in the spi-nor driver, things will work fine if people enable either the at25 or spi-nor driver
<geertu> If they enable both, what they get depends on probe order :-(
<krzk> geertu: mwalle: you could make driver excluding each other in Kconfig.
<geertu> krzk: Several of my boards use both at25 and spi-nor. So it would be better to exclude the specific entry in the spi-nor driver using #if !IS_ENABLED(CONFIG_EEPROM_AT25)
<krzk> geertu: ack, seems better
jclsn has joined #armlinux
jclsn has quit [Ping timeout: 258 seconds]
headless has quit [Quit: Konversation terminated!]
jclsn has joined #armlinux
<conchuod> Anyone seen RWSEM issues in today's next?
sally has joined #armlinux
sally has quit [Client Quit]
jclsn has quit [Ping timeout: 245 seconds]
hanetzer has quit [Ping timeout: 246 seconds]
heat has quit [Read error: Connection reset by peer]
heat has joined #armlinux
hanetzer has joined #armlinux
hanetzer has quit [Ping timeout: 246 seconds]
<mwalle> geertu: krzk: sorry, had lunch break. and after a while I'll just remove it entirely from spi-nor?
<mwalle> I fail to see deprecation strategy behind it
<arnd> I also just came back from lunch. mwalle, I think it's best to start by finding out more about how and why each of these got added to spi-nor instead of at25 in the first place.
<arnd> I see ce56ce7da3159 ("mtd: spi-nor: Add support for Fujitsu MB85RS1MT FRAM") and 8a2644d5f3608 ("mtd: spi-nor: Add support for Cypress cy15x104q") added specific chips not that long ago, so you can ask the authors whether just moving those to at25 would work for them
hanetzer has joined #armlinux
jclsn has joined #armlinux
heat_ has joined #armlinux
heat has quit [Read error: Connection reset by peer]
<arnd> Most of the catalyst and everspin parts came from drivers/mtd/devices/m25p80.c when spi-nor.c was created
<mwalle> arnd: it goes back way more
<mwalle> 5ca11ca7ad950 ("mtd: m25p80: add support for Everspin MR25H256 MRAM chip")
<mwalle> from marex :)
<mwalle> arnd: judging from https://community.infineon.com/t5/Knowledge-Base-Articles/F-RAM-Support-under-Linux-KBA223028/ta-p/248959 people are using at least that one as a replacement for flashes. so i guess they expect the mtd layer. sigh
<mwalle> it seems there are two ways to have support in linux for these "EEPROM-like and flash-like" devices in the kernel. Either through the at25 driver (which just exposes an "eeprom" sysfs binary file") or through spi-nor which sits on top of the mtd layer. And both seem to be in used. even worse, there are bindings for the MB85RS1MT pointing to the at25 driver, but its (also) implemented in spi-nor.
heat_ has quit [Read error: Connection reset by peer]
heat_ has joined #armlinux
heat__ has joined #armlinux
heat_ has quit [Remote host closed the connection]
heat has joined #armlinux
heat__ has quit [Read error: Connection reset by peer]
iivanov has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
iivanov has joined #armlinux
heat has quit [Ping timeout: 244 seconds]
heat_ has joined #armlinux
sakman_ has joined #armlinux
sakman has quit [Read error: Connection reset by peer]
heat_ has quit [Read error: Connection reset by peer]
heat has joined #armlinux
m5zs7k has quit [Ping timeout: 264 seconds]
<arnd> ardb: it looks like https://lore.kernel.org/lkml/CAMj1kXF0AQ9cc64N9kRxV8s1TDTVdAb_4s2P-rriim5DNW_cCA@mail.gmail.com/ is the only remaining patch in my original series of 16 that I had for rmk. I think this is because the conflict you mentioned.
m5zs7k has joined #armlinux
<arnd> what's the status of your series, would it make sense if you just add my patch to it?
<ardb> arnd: probably - russell pulled that into this devel-stable branch but didn't push it to -next yet
<arnd> ardb: I tried merging the devel-stable into my randconfig tree. It looks like at least the patch I mentioned above is no longer needed, so I can just skip resending it. There is one more conflict between one of my patches and your series, which will have to be addressed by removing the extra VFP_bounce() prototype, but otherwise it looks like we are clean now
<ardb> arnd: good
<ardb> i hope i didn't introduce any new occurrences?
<arnd> none that I see so far
headless has joined #armlinux
iivanov has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rgallaispou has left #armlinux [#armlinux]
luispm has quit [Quit: Leaving]
Amit_T has joined #armlinux
frieder has quit [Remote host closed the connection]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
heat has quit [Read error: Connection reset by peer]
heat has joined #armlinux
sakman_ is now known as sakman
<Xogium> yay new toy to play with ! Somoene offered me the odyssey stm32mp135d from seeed studio ^^
<Xogium> *someone
<Xogium> apparently it's got a super nice schematic too, with a good revision history and a cool block diagram
monstr has quit [Remote host closed the connection]
heat has quit [Remote host closed the connection]
heat has joined #armlinux
tchebb has quit [Ping timeout: 245 seconds]
sudeepholla_ has quit [Quit: Ex-Chat]
sudeepholla_ has joined #armlinux
sudeepholla_ has quit [Ping timeout: 245 seconds]
sudeepholla_ has joined #armlinux
tchebb has joined #armlinux
Amit_T has quit [Quit: Leaving]
tchebb_ has joined #armlinux
tchebb has quit [Ping timeout: 264 seconds]
cmarinas has quit [Read error: Connection reset by peer]
cmarinas has joined #armlinux
amitk has quit [Ping timeout: 260 seconds]
tchebb_ has quit [Ping timeout: 244 seconds]
tchebb has joined #armlinux
heat has quit [Remote host closed the connection]
headless has quit [Quit: Konversation terminated!]
apritzel has joined #armlinux
tchebb has quit [Ping timeout: 246 seconds]
tchebb_ has joined #armlinux
tchebb_ has quit [Ping timeout: 260 seconds]
tchebb has joined #armlinux