All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vabhav Sharma <vabhav.sharma@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers: serial: probe all serial devices
Date: Thu, 25 Oct 2018 14:00:24 +0000	[thread overview]
Message-ID: <VI1PR04MB4800B8D5B2F2F852F6C04110F3F70@VI1PR04MB4800.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <CAPnjgZ2W-jN_tGh6FPuU_ybt5JBS+o5No--Vfze06bV3Bu3c5A@mail.gmail.com>



> -----Original Message-----
> From: sjg at google.com <sjg@google.com> On Behalf Of Simon Glass
> Sent: Friday, October 19, 2018 8:56 AM
> To: Bin Meng <bmeng.cn@gmail.com>
> Cc: Vabhav Sharma <vabhav.sharma@nxp.com>; U-Boot Mailing List <u-
> boot at lists.denx.de>; u-boot-dm at lists.denx.de; Andreas Dannenberg
> <dannenberg@ti.com>; Masahiro Yamada
> <yamada.masahiro@socionext.com>; Stefan Roese <sr@denx.de>
> Subject: Re: [PATCH] drivers: serial: probe all serial devices
> 
> Hi Bin,
> 
> On 15 October 2018 at 06:28, Bin Meng <bmeng.cn@gmail.com> wrote:
> > On Mon, Oct 15, 2018 at 8:15 PM Vabhav Sharma
> <vabhav.sharma@nxp.com> wrote:
> >>
> >> Serial subsystem search and probe only one first serial device and
> >> unable to use remaining available UART devices
> >>
> >> This patch changes the logic to probe all available serial devices
> >> using platform data or device tree in DM model in order to use all
> >> UART devices
> >>
> >> Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
> >> ---
> >>  drivers/serial/Kconfig         | 12 ++++++++++++
> >>  drivers/serial/serial-uclass.c | 42
> >> ++++++++++++++++++++++++++++++++++++++++++
> >>  2 files changed, 54 insertions(+)
> >>
> >
> > Looks more and more devices have requirement to be probed during boot.
> > Guess we should handle such in a unified way?
> 
> How about:
> 
> - in dm_init(), after binding, we move on to an auto-probe step
> - a uclass flag indicates that all devices in that uclass must be probed  (that
> will be useful for PCI)
For devices class respective UCLASS to be provided with auto-probe, How many class to be included?
> 
> - a way to tell DM to probe all devices in a particular uclass (e.g. a call to
> dm_set_uclass_autoprobe(enum uclass_id, bool)
>   (that will be useful for this serial case)
Do you mean to verify and send patch for serial uclass with this approach after device_probe in dm_init
> 
> Regards,
> Simon

  reply	other threads:[~2018-10-25 14:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-15  0:09 [U-Boot] [PATCH] drivers: serial: probe all serial devices Vabhav Sharma
2018-10-15 12:28 ` Bin Meng
2018-10-16  7:23   ` Vabhav Sharma
2018-10-19  3:25   ` Simon Glass
2018-10-25 14:00     ` Vabhav Sharma [this message]
2018-10-25 14:24     ` Bin Meng
2018-10-16  6:59 ` [U-Boot] [U-Boot-DM] " Marek Vasut
2018-10-16  7:20   ` Vabhav Sharma
2018-10-16  9:09     ` Marek Vasut
2018-10-25 13:51       ` Vabhav Sharma
2018-10-25 14:04         ` Wolfgang Denk
2018-10-25 14:19           ` Vabhav Sharma
2018-10-26 11:26             ` Wolfgang Denk
2018-11-02  8:40               ` Vabhav Sharma
2018-11-02 10:07                 ` [U-Boot] " Wolfgang Denk

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=VI1PR04MB4800B8D5B2F2F852F6C04110F3F70@VI1PR04MB4800.eurprd04.prod.outlook.com \
    --to=vabhav.sharma@nxp.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.