All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mtd: spi: Add DM support to SH QSPI driver
Date: Sun, 2 Sep 2018 23:30:32 +0530	[thread overview]
Message-ID: <CAMty3ZCQfEgZxCLxz6wCGrNNiXt73_MHTCwXM+Qt=AQkdsT-dA@mail.gmail.com> (raw)
In-Reply-To: <d88275de-3d38-27be-41c1-fda981fcd011@gmail.com>

On Sun, Aug 26, 2018 at 4:07 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
> On 08/26/2018 08:45 AM, Jagan Teki wrote:
>> On Sat, Aug 25, 2018 at 11:04 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
>>> Add DM support to the SH QSPI driver while retaining non-DM support.
>>> The later is required as this driver is used in SPL which has a size
>>> limitation of 16 kiB.
>>>
>>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
>>> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
>>> ---
>>>  drivers/spi/sh_qspi.c | 215 +++++++++++++++++++++++++++++++++++---------------
>>>  1 file changed, 150 insertions(+), 65 deletions(-)
>>>
>>> diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c
>>> index e9123e2c39..64dfd748d6 100644
>>> --- a/drivers/spi/sh_qspi.c
>>> +++ b/drivers/spi/sh_qspi.c
>>> @@ -67,15 +67,12 @@ struct sh_qspi_regs {
>>>  };
>>>
>>>  struct sh_qspi_slave {
>>> +#ifndef CONFIG_DM_SPI
>>
>> We are trying to drop non-dm code as much as possible (with
>> MIGRATION.txt policy), how about adding PLTADATA or spi read glue code
>> or any other?
>
> The SPL on that board (silk) has 16 kiB limit, right now I am at 15500 B
> with gcc 7.x already, adding any more overhead will make it overflow. So
> while I'd like to have it all fancy DM and stuff, it's not possible.

How about having simple glue code for SPL, since it anyway used for
read in real?

  reply	other threads:[~2018-09-02 18:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-25 17:34 [U-Boot] [PATCH] mtd: spi: Add DM support to SH QSPI driver Marek Vasut
2018-08-26  6:45 ` Jagan Teki
2018-08-26 10:37   ` Marek Vasut
2018-09-02 18:00     ` Jagan Teki [this message]
2018-09-02 18:26       ` Marek Vasut
2018-09-02 18:41         ` Jagan Teki
2018-09-02 19:16           ` Marek Vasut
2018-09-06 14:49             ` Jagan Teki
2018-10-02 16:57 ` Jagan Teki

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='CAMty3ZCQfEgZxCLxz6wCGrNNiXt73_MHTCwXM+Qt=AQkdsT-dA@mail.gmail.com' \
    --to=jagan@amarulasolutions.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.