All of
 help / color / mirror / Atom feed
From: Pratyush Yadav <>
To: Vignesh Raghavendra <>
Cc: Petr Malat <>, <>,
	Miquel Raynal <>,
	Richard Weinberger <>,
	Rob Herring <>,
	Tudor Ambarus <>
Subject: Re: [PATCH] spi-nor: sfdp: Allow configuring unknown flashes using SFDP
Date: Thu, 27 May 2021 19:24:48 +0530	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On 27/05/21 07:22PM, Vignesh Raghavendra wrote:
> On 5/21/21 5:23 PM, Petr Malat wrote:
> > Hi!
> > On Fri, May 21, 2021 at 03:25:05PM +0530, Pratyush Yadav wrote:
> >> On 20/05/21 06:07PM, Petr Malat wrote:
> >>> This change allows adding a support for flashes with correct SFDP
> >>> without recompilation of the kernel by setting sfdp-compatible property
> >>> in their node. Alternatively, sfdp_compatible module option can be used
> >>> to list JEDEC IDs of flashes, whose SFDP can be trusted. Star "*" can
> >>> be used to match all JEDEC IDs.
> >>
> >> I have skimmed through the patch. Before I look at it more closely, I 
> >> want to understand the use case for this patch. Why would you not want 
> >> to recompile the kernel when adding support for new hardware? Do you 
> >> want the ability to support flashes on devices that have already been 
> >> deployed in the field? Is it something that comes up frequently?
> > In my case the kernel is loaded from a USB mass storage device, which
> > can be preproduced and on stock (with the kernel already on it). With
> > my patch I can change the flash vendor without the need of updating
> > the image on already existing USB mass storage devices.
> > 
> > The patch is also useful for people who use distribution kernel as they
> > will not have to wait until (and if) the distribution updates it.
> Don't need separate DT property or cmdline argument. There is no way to
> know if the SFDP tables are 100% valid when kernel is working with a
> "generic flash".
> Flashes are often replaced with newer revisions of the part that may/may
> not have valid SFDP tables.
> So just rely on SFDP, when no valid entry is found in the manufacturer's
> flash_info[] while printing out a warning to user that this is just best
> effort support.


Pratyush Yadav
Texas Instruments Inc.

Linux MTD discussion mailing list

  reply	other threads:[~2021-05-27 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20 16:07 [PATCH] spi-nor: sfdp: Allow configuring unknown flashes using SFDP Petr Malat
2021-05-21  9:55 ` Pratyush Yadav
2021-05-21 11:53   ` Petr Malat
2021-05-27 13:52     ` Vignesh Raghavendra
2021-05-27 13:54       ` Pratyush Yadav [this message]
2021-05-27 15:45       ` Petr Malat
2021-05-28 11:56         ` Vignesh Raghavendra

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \

* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.