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
<ukleinek>
according to another channel that's a CSP issue
<socksinspace>
it seems like it, firefox blocks the css
<ukleinek>
firefox instantly goes to www.kernel.org for me when entering "https://kernel.org", in chromium I see the CSP warning
dhruvag2000 has joined #armlinux
Bitweasil has quit [Remote host closed the connection]
Bitweasil has joined #armlinux
iivanov has quit [Remote host closed the connection]
LeSpocky has joined #armlinux
<LeSpocky>
hello
<LeSpocky>
can anyone name a spi host controller driver which implements both classic spi _and_ hw accelerated spi mem over qspi?
<LeSpocky>
I'd like some inspiration before trying to implement classic SPI (without spi mem) for the atmel qspi controller driver
iivanov has joined #armlinux
nsaenz_ has joined #armlinux
nsaenz_ has quit [Read error: Connection reset by peer]
nsaenz_ has joined #armlinux
nsaenz has quit [Ping timeout: 265 seconds]
nsaenz_ has quit [Ping timeout: 244 seconds]
nsaenz has joined #armlinux
<broonie>
LeSpocky: git grep -l spi_mem drivers/spi | xargs grep -l transfer_one ought to be a reasonable starting point.
alpernebbi has quit [Ping timeout: 272 seconds]
heat_ has joined #armlinux
prabhakalad has quit [Ping timeout: 248 seconds]
prabhakalad has joined #armlinux
heat_ is now known as heat
siak has joined #armlinux
<LeSpocky>
broonie: thanks for pointing me … I looked through Documentation/devicetree/bindings/spi before and it did not reveal anything to me, looks like spi host controllers are usually only used as generic single data line host controllers xor qspi controllers for spi-mem
<LeSpocky>
but maybe devicetree binding docs give an incomplete picture
heat_ has joined #armlinux
heat has quit [Read error: Connection reset by peer]
heat_ is now known as heat
nsaenz has quit [Ping timeout: 248 seconds]
nsaenz has joined #armlinux
nsaenz_ has joined #armlinux
nsaenz has quit [Remote host closed the connection]
monstr has quit [Ping timeout: 252 seconds]
nsaenz_ has quit [Remote host closed the connection]
nsaenz has joined #armlinux
<geertu>
broonie: don't you want mem_ops _and_ transfer_one for this case?
<geertu>
LeSpocky: What do you mean exactly with "accelerated spi mem over qspi"?
<geertu>
Linux kernel mem_ops, or a special harwdare feature where the SPI FLASH is memory-mapped, and the hardware converts memory accesses to SPI FLASH read/write commands automatically?
<LeSpocky>
geertu: the atmel qspi driver for e.g. at91 sam9x60 qspi controller sets a flag "Serial Memory Mode" in a register of the microcontroller, the microcontroller operates the interface in "SPI mode" or "Serial Memory mode" based on this flag, for that serial memory mode the sam9x60 builds the necessary spi messages by itself
<LeSpocky>
which is bad if you want to use an SPI slave device which is no memory
<geertu>
LeSpocky: Yes, that obviously supports FLASH types onlu
<LeSpocky>
someone™ wired a non-memory spi slave device to the qspi interface of a sam9x60 here, that's why
<geertu>
That's drivers/spi/atmel-quadspi.c? It indeed doesn't implement transfer_one
<LeSpocky>
indeed
<conchuod>
LeSpocky: Surely there are other examples of drivers that can do both, no?
<conchuod>
I think the one I looked at recently that can do both was for rockchip
<conchuod>
Perhaps I am misremembering though :/
Amit_T has joined #armlinux
<conchuod>
:q
<conchuod>
Oh, maybe it was broadcom's that I was looking at. bcm-qspi.
System_Error has quit [Ping timeout: 260 seconds]
<LeSpocky>
conchuod: that's what I'm currently looking at
<conchuod>
LeSpocky: I ~wrote~rewrote a patch doing the same thing for a different driver very recently but I'm a bit wary of linking something that may be a bad example. I've another version to send once I get back from holiday.
<LeSpocky>
I'm not sure if that mode can be switched at runtime or should be some option at driver load time
alpernebbi has joined #armlinux
<LeSpocky>
should read the datasheet again
<LeSpocky>
not sure if that mode is something to be switched at runtime depending on whether transfer_one() or something from mem_ops is called or if it should be configured at driver probe time only
<LeSpocky>
well, I'm repeating myself, time for weekend and rest *lol*
atorgue1 has joined #armlinux
atorgue has joined #armlinux
atorgue__ has quit [Read error: Connection reset by peer]
System_Error has joined #armlinux
atorgue1 has quit [Read error: Connection reset by peer]
<broonie>
geertu: That's what the command does? Searches for transfer_one() in files that have mem_ops.
<geertu>
broonie: Oops, you're right. Too hot to read here?
* cambrian_invader
also added transfer_one support for a qspi driver recently but it is still too buggy for upstream
amitk_ has joined #armlinux
amitk has quit [Ping timeout: 276 seconds]
rvalue- has joined #armlinux
rvalue has quit [Ping timeout: 276 seconds]
sudeepholla has quit [Remote host closed the connection]
rvalue- is now known as rvalue
sudeepholla has joined #armlinux
iivanov has quit [Remote host closed the connection]
luispm has quit [Quit: Leaving]
iivanov has joined #armlinux
iivanov has quit [Ping timeout: 255 seconds]
headless has joined #armlinux
Livio has quit [Ping timeout: 255 seconds]
atorgue has quit [Read error: Connection reset by peer]