All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
To: Michal Simek <michal.simek@xilinx.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH] serial: zynq: Add support for serial parameters
Date: Thu, 24 Jun 2021 18:41:23 +0900	[thread overview]
Message-ID: <fa507701-6c8a-186e-17ef-19d965754b06@socionext.com> (raw)
In-Reply-To: <cf4e45b2-9bf2-ec47-3005-52ac22f1c517@xilinx.com>

Hi Michal,

On 2021/06/23 20:15, Michal Simek wrote:
> Hi Kunihiko,
> 
> On 6/23/21 12:52 PM, Kunihiko Hayashi wrote:
>> Hi Michal,
>>
>> On 2021/06/22 21:44, Michal Simek wrote:
>>> Hi,
>>>
>>> On 6/22/21 6:24 AM, Kunihiko Hayashi wrote:
>>>> This adds serial parameters that include stop bit mode, parity mode,
>>>> and character length. Mark parity and space parity modes are not
>>>> supported.
>>>>
>>>> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
>>>> ---
>>>>    drivers/serial/serial_zynq.c | 64
>>>> ++++++++++++++++++++++++++++++++++++++++++++
>>>>    1 file changed, 64 insertions(+)
>>
>> [snip]
>>
>>> I am just curious how you have tested it because only hook is in
>>> test/dm/serial.c and I can't see no way how to change this setting via
>>> u-boot command line.
>>
>> I was misunderstanding.
>>
>> Surely there is no way to execute .setconfig function, and
>> neither command line nor devicetree actually affects the serial mode.
>> The mode just inherits that of the previous firmware.
>>
>>> That being said I see that this change adds 184 bytes which is quite a
>>> lot especially for SPL on zynqmp. That's why would like to know how this
>>> feature should be used. If make sense for example to limit it to only
>>> full U-Boot.
>>
>> I see. I didn't think enough about the size limit of SPL.
>> Anyway, I withdraw this patch.
> 
> Up2you. Maybe someone will add any support for calling these functions.
> For me it is fine to add it to full U-Boot but not to SPL for DM testing.

Ok, I expect to such support.
I'll modify it to add the function when CONFIG_SPL_BUILD isn't defined
if there is no concern, and resend it.

Thank you,

---
Best Regards
Kunihiko Hayashi

      reply	other threads:[~2021-06-24  9:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22  4:24 [PATCH] serial: zynq: Add support for serial parameters Kunihiko Hayashi
2021-06-22 12:44 ` Michal Simek
2021-06-23 10:52   ` Kunihiko Hayashi
2021-06-23 11:15     ` Michal Simek
2021-06-24  9:41       ` Kunihiko Hayashi [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=fa507701-6c8a-186e-17ef-19d965754b06@socionext.com \
    --to=hayashi.kunihiko@socionext.com \
    --cc=michal.simek@xilinx.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.