All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timothy Pearson <tpearson@raptorengineering.com>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: linux-mtd@lists.infradead.org,
	Stewart Smith <stewart@linux.vnet.ibm.com>
Subject: Re: [PATCH] mtd/powernv_flash: Enable partition support
Date: Thu, 29 Mar 2018 17:25:48 -0500	[thread overview]
Message-ID: <5ABD67EC.6060307@raptorengineering.com> (raw)
In-Reply-To: <CACna6rxHmPFJqGdvBHt62R9YKVAtajj4S2e=+B6t+EOr7bpApA@mail.gmail.com>

On 03/29/2018 05:11 PM, Rafał Miłecki wrote:
> On 29 March 2018 at 23:43, Timothy Pearson
> <tpearson@raptorengineering.com> wrote:
>> Will resend with Signed-off-by.
>>
>> Before this patch, the driver was not picking up the OF-provided
>> partition list.  It seemed specifically designed to register only one
>> large partition covering the entire PNOR; mtd_device_register() does not
>> run parsing of any type AFAIK.
> 
> Please don't top post.

Whoops!  I have to interface with other entities that need top posting
and slipped up here.  Sorry about that!

> This is how mtd_device_register is defined:
> #define mtd_device_register(master, parts, nr_parts) \
>         mtd_device_parse_register(master, NULL, NULL, parts, nr_parts)
> 
> So your patch seems to be replacing
> mtd_device_parse_register(&data->mtd, NULL, NULL, NULL, 0);
> with
> mtd_device_parse_register(&data->mtd, part_probes, NULL, NULL, 0);
> 
> I still claim that all it does is replacing list of default parsers:
> "cmdlinepart", "ofpart", NULL
> with a custom list:
> "ofpart", NULL
> 
> I don't think you need that. Probably the only change you really need is to add:
> mtd_set_of_node(&data->mtd, dev->of_node);

It's possible; I'm not as familiar with the MTD subsystem as I should
be.  That being said, in this application there is no chance of
partition information being passed via kernel command line, so the right
thing to do from a design perspective is lock the parser to ofpart only.

If you need me to remove that part of the patch I will do so.

Thanks!

-- 
Timothy Pearson
Raptor Engineering
+1 (415) 727-8645 (direct line)
+1 (512) 690-0200 (switchboard)
https://www.raptorengineering.com

  reply	other threads:[~2018-03-29 22:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-25 20:05 [PATCH] mtd/powernv_flash: Enable partition support Timothy Pearson
2018-03-29  5:29 ` Rafał Miłecki
2018-03-29 21:43   ` Timothy Pearson
2018-03-29 22:11     ` Rafał Miłecki
2018-03-29 22:25       ` Timothy Pearson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-07-23  9:02 Timothy Pearson
2018-07-23 10:14 ` Rafał Miłecki
2018-07-23 18:19   ` Timothy Pearson

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=5ABD67EC.6060307@raptorengineering.com \
    --to=tpearson@raptorengineering.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=stewart@linux.vnet.ibm.com \
    --cc=zajec5@gmail.com \
    /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 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.