From: Brian Norris <computersforpeace@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH] mtd: physmap_of: fixup gemini/versatile dependencies
Date: Fri, 10 Feb 2017 10:03:31 -0800 [thread overview]
Message-ID: <20170210180331.GB67059@google.com> (raw)
In-Reply-To: <CACRpkdbQZ3PW_iqj6Zn1+b+wKs9eSQ4GHmhN6KTEJLZYMOfc8g@mail.gmail.com>
On Fri, Feb 10, 2017 at 01:19:15PM +0100, Linus Walleij wrote:
> On Thu, Feb 9, 2017 at 3:09 AM, Brian Norris
> <computersforpeace@gmail.com> wrote:
>
> > physmap_of sort of depends on the gemini and versatile modules (when
> > they're enabled), but this isn't expressed in Kconfig. Let's just merge
> > the modules all together, when enabled. Then we can avoid exporting a
> > few symbols, and the versatile and gemini code can now be modular again
> > (the below commit accidentally made them built-in only).
> >
> > Resolves errors like this:
> >
> > ERROR: "of_flash_probe_versatile" [drivers/mtd/maps/physmap_of.ko] undefined!
> > ERROR: "of_flash_probe_gemini" [drivers/mtd/maps/physmap_of.ko] undefined!
> >
> > Fixes: 56ff337ea433 ("mtd: physmap_of: add a hook for Gemini flash probing")
> > Cc: Linus Walleij <linus.walleij@linaro.org>
> > Signed-off-by: Brian Norris <computersforpeace@gmail.com>
>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
>
> Sorry for not responding quicker.
Eh, no problem. It's mostly my fault for batch processing within the
last week before the merge window :)
I've applied my solution to l2-mtd.git. Thanks for reviewing.
> I hacked up this not entirely optimal solution to the same problem
> but I think what you're doing is better:
>
> config MTD_PHYSMAP_OF_VERSATILE
> - bool "Support ARM Versatile physmap OF"
> - depends on MTD_PHYSMAP_OF
> - depends on MFD_SYSCON
> + bool "ARM Versatile OF-based physical memory map handling"
> + depends on MTD_PHYSMAP_OF=y
> + depends on MFD_SYSCON=y
> default y if (ARCH_INTEGRATOR || ARCH_VERSATILE || ARCH_REALVIEW)
> help
> This provides some extra DT physmap parsing for the ARM Versatile
> platforms, basically to add a VPP (write protection) callback so
> the flash can be taken out of write protection.
>
> +config MTD_PHYSMAP_OF_GEMINI
> + bool "Cortina Gemini OF-based physical memory map handling"
> + depends on MTD_PHYSMAP_OF=y
> + depends on MFD_SYSCON=y
> + default ARCH_GEMINI
> + help
> + This provides some extra DT physmap parsing for the Gemini
> + platforms, some detection and setting up parallel mode on the
> + external interface.
>
> I.e. I made the modules be only accessible when compiled-in.
>
> Either solution is fine with me, but someone else might be annoyed
> by my solution so let's go with yours.
Sounds good.
> And by the way: thanks for merging this!
No problem.
Brian
prev parent reply other threads:[~2017-02-10 18:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 2:09 [PATCH] mtd: physmap_of: fixup gemini/versatile dependencies Brian Norris
2017-02-10 2:38 ` Brian Norris
2017-02-10 12:19 ` Linus Walleij
2017-02-10 18:03 ` Brian Norris [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=20170210180331.GB67059@google.com \
--to=computersforpeace@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-mtd@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 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.