[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4455b5175d3c372c15d9732f03b9eb20@manjaro.org>
Date: Sun, 18 Aug 2024 21:20:49 +0200
From: Dragan Simic <dsimic@...jaro.org>
To: Vicente Bergas <vicencb@...il.com>
Cc: "open list:ARM/Rockchip SoC..." <linux-rockchip@...ts.infradead.org>,
linux-spi@...r.kernel.org, Mark Brown <broonie@...nel.org>, Heiko Stuebner
<heiko@...ech.de>, linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [BUG] Rockchip SPI: Runtime PM usage count underflow!
On 2024-08-18 20:55, Vicente Bergas wrote:
> On Sun, Aug 18, 2024 at 8:26 PM Dragan Simic <dsimic@...jaro.org>
> wrote:
>> On 2024-08-18 20:13, Vicente Bergas wrote:
>> > i am a user of the CONFIG_SPI_SPIDEV device.
>> > It stopped working between 6.8 and 6.10.5.
>> > The SPI bus itself reports no errors to userspace, but no devices
>> > appear connected to the bus.
>> > The platform used is RK3328.
>> > The only spi-related message in dmesg is:
>> > rockchip-spi ff190000.spi: Runtime PM usage count underflow!
>>
>> I'm working on a related patch. Could you, please, describe your
>> use case for the spidev driver, i.e. what board are you using it on,
>> and for what purpose?
>
> The board is ROCK64 and the purpose is to update all the software that
> board runs, which is stored on the SPI NOR flash onboard.
So, if I got it right, you boot your Rock64 from the SPI chip that
contains all the software it runs, but you also boot Linux on it from
a microSD card, to update the contents of the SPI chip? I'm guessing
it that way, because the size of an SPI chip is hardly large enough
for storing even an extremely size-optimized Linux system.
Anyway, I wonder why do you have to use the spidev driver for that
purpose? Why can't you use 'compatible = "jedec,spi-nor";' to access
the SPI chip through /dev/mtd0 under Linux?
> I have not tested this kernel version on RK3399, but it may also
> affect that other use case:
> https://gitlab.com/vicencb/kevinboot
>
> N.B.: My name is Vicente.
Oh, I'm sorry for mistyping your first name. Should've copy & pasted
it instead, to prevent such typing mistakes.
Powered by blists - more mailing lists