All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sekhar Nori <nsekhar@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 2/7] dm: core: add support for getting register address and size
Date: Fri, 2 Aug 2019 11:39:04 +0530	[thread overview]
Message-ID: <ddd0e772-7045-efbd-9a6c-8f1fdf6ef903@ti.com> (raw)
In-Reply-To: <CACUy__WbXCSS2=ec_toxZ6sm8yKQkZChP1KeO-e1Uv0Qhk4ebw@mail.gmail.com>

Hi Daniel,

On 01/08/19 9:51 PM, Daniel Schwierzeck wrote:
>> diff --git a/drivers/core/read.c b/drivers/core/read.c
>> index 1a044b05e884..8b5502de1159 100644
>> --- a/drivers/core/read.c
>> +++ b/drivers/core/read.c
>> @@ -82,6 +82,15 @@ fdt_addr_t dev_read_addr_index(struct udevice *dev, int index)
>>                 return devfdt_get_addr_index(dev, index);
>>  }
>>
>> +fdt_addr_t dev_read_addr_size_index(struct udevice *dev, int index,
>> +                                   fdt_size_t *size)
>> +{
>> +       if (ofnode_is_np(dev_ofnode(dev)))
>> +               return ofnode_get_addr_size_index(dev_ofnode(dev), index, size);
>> +       else
>> +               return devfdt_get_addr_size_index(dev, index, size);
>> +}
>> +
>>  void *dev_remap_addr_index(struct udevice *dev, int index)
>>  {
>>         fdt_addr_t addr = dev_read_addr_index(dev, index);
>> @@ -102,6 +111,17 @@ fdt_addr_t dev_read_addr_name(struct udevice *dev, const char *name)
>>                 return dev_read_addr_index(dev, index);
>>  }
> 
> maybe it makes sense to update the dev_remap_* variants to utilise the
> new dev_read_addr_* to be able to pass a valid size to map_physmem()?
> Currently a size of 0 is passed due to the lack of function which you
> are adding now.

Thanks for pointing that out. I think this is something that can come as
a follow-on series. This series itself was supposed to go into 2019.10,
but held up due to a stupid bug I introduced.

I will send a v4 today with a commit message change that was asked with
the hope that it can get into 2019.10 still.

Thanks,
Sekhar

  reply	other threads:[~2019-08-02  6:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-01 13:42 [U-Boot] [PATCH v3 0/7] Add PCIe root complex support for AM654x SoC Sekhar Nori
2019-08-01 13:42 ` [U-Boot] [PATCH v3 1/7] clk: add support for clk_is_match() Sekhar Nori
2019-08-01 13:47   ` Fabio Estevam
2019-08-01 13:54     ` Sekhar Nori
2019-08-01 13:55       ` Fabio Estevam
2019-08-01 15:50       ` Tom Rini
2019-08-13 16:51   ` Tom Rini
2019-08-01 13:42 ` [U-Boot] [PATCH v3 2/7] dm: core: add support for getting register address and size Sekhar Nori
2019-08-01 16:21   ` Daniel Schwierzeck
2019-08-02  6:09     ` Sekhar Nori [this message]
2019-08-13 16:51   ` Tom Rini
2019-08-01 13:42 ` [U-Boot] [PATCH v3 3/7] pcie: ti: add driver for AM65x PCIe RC Sekhar Nori
2019-08-13 16:51   ` Tom Rini
2019-08-01 13:42 ` [U-Boot] [PATCH v3 4/7] phy: add support for AM654x SERDES Sekhar Nori
2019-08-13 16:51   ` Tom Rini
2019-08-01 13:42 ` [U-Boot] [PATCH v3 5/7] configs: am65x_evm_a53: enable PCIe support Sekhar Nori
2019-08-13 16:51   ` Tom Rini
2019-08-01 13:43 ` [U-Boot] [PATCH v3 6/7] arm: dts: k3-am65: add support for PCIe and SERDES Sekhar Nori
2019-08-13 16:51   ` Tom Rini
2019-08-01 13:43 ` [U-Boot] [PATCH v3 7/7] configs: am65x_evm_a53: enable support for PCIe ethernet cards Sekhar Nori
2019-08-13 16:51   ` Tom Rini

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=ddd0e772-7045-efbd-9a6c-8f1fdf6ef903@ti.com \
    --to=nsekhar@ti.com \
    --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.