All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robherring2@gmail.com>
To: Neil Brown <neilb@suse.de>
Cc: Vincent Cuissard <cuissard@marvell.com>,
	linux-nfc@lists.01.org,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH v3 2/2] NFC: nfcmrvl: add UART driver
Date: Thu, 18 Jun 2015 21:36:46 -0500	[thread overview]
Message-ID: <CAL_JsqKMQgwokgneX_qR8k_cKh3fDNjhy5y3dTto=UsEcc54Bw@mail.gmail.com> (raw)
In-Reply-To: <20150612172411.68e08669@home.neil.brown.name>

On Fri, Jun 12, 2015 at 2:24 AM, Neil Brown <neilb@suse.de> wrote:
> On Thu, 11 Jun 2015 23:06:54 -0500
> Rob Herring <robherring2@gmail.com> wrote:
>
>> Adding Neil Brown who has been doing a UART slave binding[1].
>
> Thanks for the heads-up.

Here's another one [1].

> This is quite a different approach to configuring a device that is attached to
> a UART, but then I think it is trying to handle different issues than my
> approach and the two can easily co-exist.

Yes, but the binding is pretty similar.

> My need was for a driver to be activated when the tty device was opened.
> So the uart needs to examine the child in devicetree, find the "compatible"
> driver, probe it, and allow it to intercept "open" requests.
>
> This need is to be able to configure a particular driver that is attached to a
> particular line discipline.
> So (if I understand correctly), the /dev/ttyXX would be opened, an line
> discipline would be selected, and ioctl to that line discipline would select
> the driver and then that drive goes and looks in devicetree, find the
> configuration, and makes use of it.

I guess you co

> It may be a pipe dream, but it might be nice if these could be combined.  When
> the uart looks in device tree, if it finds a child which specifies a
> line-discipline, it could activate that line discipline directly which could
> then extract other information  and activate the relevant drive, which could
> then gather the relevant configuration information.
>
> I do think my current code would get confused if it found this device tree node
> under a uart.
> It currently thinks any device tree node with a "compatible" attribute implies
> a device that will have a driver.  So it won't register the tty device until
> that driver appears.  That would be a problem for this NFC driver.
>
> It probably makes sense to change my approach so that the tty still gets
> registered immediately, but when the driver appears it gets connected in to the
> tty somehow.   I'll have to give that some thought.

[1] http://www.spinics.net/lists/linux-bluetooth/msg62629.html

  reply	other threads:[~2015-06-19  2:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-11 12:00 [PATCH v3 0/2] Marvell NFC NCI UART driver and DT configuration Vincent Cuissard
     [not found] ` <1434024020-17048-1-git-send-email-cuissard-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
2015-06-11 12:00   ` [PATCH v3 1/2] NFC: nfcmrvl: add platform_data " Vincent Cuissard
2015-06-11 12:00   ` [PATCH v3 2/2] NFC: nfcmrvl: add UART driver Vincent Cuissard
     [not found]     ` <1434024020-17048-3-git-send-email-cuissard-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
2015-06-12  4:06       ` Rob Herring
     [not found]         ` <CAL_JsqKtCT9wLS5xqHoJ9K_2Y+Tw8g7mP=MSkDBXO9TexHd9pg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-12  7:24           ` Neil Brown
2015-06-19  2:36             ` Rob Herring [this message]
2015-06-11 21:44   ` [linux-nfc] [PATCH v3 0/2] Marvell NFC NCI UART driver and DT configuration Samuel Ortiz
     [not found]     ` <20150611214400.GD10011-41CF7WKNp/HfYmLG0ciiYFaTQe2KTcn/@public.gmane.org>
2015-06-23 14:42       ` Rob Herring

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='CAL_JsqKMQgwokgneX_qR8k_cKh3fDNjhy5y3dTto=UsEcc54Bw@mail.gmail.com' \
    --to=robherring2@gmail.com \
    --cc=cuissard@marvell.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-nfc@lists.01.org \
    --cc=neilb@suse.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.