All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver
Date: Mon, 24 Aug 2015 12:14:57 +0200	[thread overview]
Message-ID: <201508241214.57643.marex@denx.de> (raw)
In-Reply-To: <CAK7LNAQ0z4+EipD4CURSFpZaHTwpP0oB=U5b9f_k_0qtzT_x3Q@mail.gmail.com>

On Monday, August 24, 2015 at 12:02:08 PM, Masahiro Yamada wrote:
> 2015-08-24 11:54 GMT+09:00 Marek Vasut <marex@denx.de>:
> > On Sunday, August 23, 2015 at 11:21:27 PM, Simon Glass wrote:
> >> Hi Marek,
> > 
> > Hi Simon,
> > 
> > [...]
> > 
> >> >> > I think the in drivers/core/Kconfig , the SPL_SIMPLE_BUS should now
> >> >> > depend on SPL_OF_CONTROL, not on OF_CONTROL, right ? :)
> >> >> 
> >> >> Ah yes that sounds right. Would you like to send a new patch against
> >> >> mainline? I think it is best to consider this a rewrite rather than a
> >> >> merge!
> >> > 
> >> > Heh :) I think that's the last missing bit, so feel free to fix it and
> >> > we're good. But if you insist on a new patch, please do let me know :)
> >> 
> >> OK, done. Let me know how it looks.
> > 
> > Looks great, thanks :)
> 
> Nope.
> 
> 
> If CONFIG_OF_CONTROL is enabled and CONFIG_SIMPLE_BUS is disabled,
> I get build error.

Hrm.

>   LD      u-boot
> drivers/built-in.o: In function `dev_get_addr':
> /home/yamada/ref/u-boot-dm/drivers/core/device.c:571: undefined
> reference to `simple_bus_translate'
> collect2: error: ld returned 1 exit status
> make: *** [u-boot] Error 1
> 
> 
> Do you really want to switch OF_CONTROL and SIMPLE_BUS separately?

I don't need it anymore in fact. I just needed to have simple-bus support
enabled in SPL, which I have even without this patch now. This is how it
came to be:

https://www.mail-archive.com/u-boot at lists.denx.de/msg179851.html

> simple-bus.c looks like a part of DM core rather than a driver because
> the address transformation (simple_bus_translate) is mandatory to
> handle reg properties in DTS correctly.
> 
> The reason for disabling SIMPLE_BUS but not OF_CONTROL, if any,
> is to save memory footprint of drivers/core/simple-bus.c
> Do you think it is significant?
> 
> 
> I think this is enough:
> 
> obj-y += device.o lists.o root.o uclass.o util.o
> obj-$(CONFIG_DEVRES) += devres.o
> obj-$(CONFIG_$(SPL_)OF_CONTROL) += simple-bus.o
> obj-$(CONFIG_$(SPL_)DM_DEVICE_REMOVE) += device-remove.o
> obj-$(CONFIG_DM) += dump.o
> obj-$(CONFIG_REGMAP) += regmap.o
> obj-$(CONFIG_SYSCON) += syscon-uclass.o
> 
> (drop "ifndef CONFIG_SPL_BUILD" and "endif")

Feel free to apply the original patch ;-)

https://www.mail-archive.com/u-boot at lists.denx.de/msg178872.html

Best regards,
Marek Vasut

  reply	other threads:[~2015-08-24 10:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-02 23:15 [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver Marek Vasut
2015-08-02 23:52 ` Simon Glass
2015-08-02 23:55   ` Marek Vasut
2015-08-02 23:58     ` Simon Glass
2015-08-10 13:39   ` Simon Glass
2015-08-10 13:57     ` Marek Vasut
2015-08-10 14:00       ` Simon Glass
2015-08-10 14:03         ` Marek Vasut
2015-08-22 13:40           ` Simon Glass
2015-08-22 15:50             ` Marek Vasut
2015-08-22 16:01               ` Simon Glass
2015-08-22 16:48                 ` Marek Vasut
2015-08-22 17:09                   ` Simon Glass
2015-08-23  1:12                     ` Marek Vasut
2015-08-23 21:21                       ` Simon Glass
2015-08-24  2:54                         ` Marek Vasut
2015-08-24 10:02                           ` Masahiro Yamada
2015-08-24 10:14                             ` Marek Vasut [this message]
2015-08-24 16:58                             ` Simon Glass
2015-08-30 22:42                               ` Simon Glass

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=201508241214.57643.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /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.