From: gregory.clement@bootlin.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] mtd: nand: marvell: Fix clock resource by adding a register clock
Date: Wed, 07 Mar 2018 15:23:30 +0100 [thread overview]
Message-ID: <87woyo3qxp.fsf@bootlin.com> (raw)
In-Reply-To: <20180306134311.7bbf8ce7@bbrezillon> (Boris Brezillon's message of "Tue, 6 Mar 2018 13:43:11 +0100")
Hi Boris,
On mar., mars 06 2018, Boris Brezillon <boris.brezillon@bootlin.com> wrote:
>> >
>> > Another solution would be to retrieve the reg clk only on platforms
>> > that need it (based on the compatible). This way you won't have to test
>> > for -ENOENT and could simply propagate the error to the upper layer.
>>
>> We can't do this because we need to be bacwkard compatible.
>
> I don't get it. If the clock is missing in the DT, the NAND is
> already not working on these platforms, right? How could we break
> something that is already broken?
As you probably know this patch have been tested on an Armada 7K based
board, so it more or less works.
But it works because the second clock used by the nand controller is
also used by other IP and already setup by the drivers of these IP. So
today it is only if you boot a kernel without crypto, i2c, spi and uart
support that the nand won't work.
Then the current representation is wrong, but it is still usable in most
of the case. So that's why we still need to support the case where we
have only one clock in the device tree.
Gregory
>
> Regards,
>
> Boris
>
> --
> Boris Brezillon, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com
--
Gregory Clement, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com
prev parent reply other threads:[~2018-03-07 14:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-28 14:35 [PATCH] mtd: nand: marvell: Fix clock resource by adding a register clock Gregory CLEMENT
2018-03-01 17:35 ` Boris Brezillon
2018-03-06 11:04 ` Gregory CLEMENT
2018-03-06 12:43 ` Boris Brezillon
2018-03-06 13:08 ` Russell King - ARM Linux
2018-03-06 13:10 ` Boris Brezillon
2018-03-07 14:23 ` Gregory CLEMENT [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87woyo3qxp.fsf@bootlin.com \
--to=gregory.clement@bootlin.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox