From: Kyle Roeschley <kyle.roeschley-acOepvfBmUk@public.gmane.org>
To: Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
Cc: Trent Piepho <tpiepho-cgc2CodaaHDQT0dZR+AlfA@public.gmane.org>,
"linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: spidev: Instantiating from DT as "spidev"
Date: Tue, 12 Dec 2017 12:44:45 -0600 [thread overview]
Message-ID: <20171212184444.GA32483@senary> (raw)
In-Reply-To: <20171130222416.4b7pob47eicuappv@senary>
On Thu, Nov 30, 2017 at 04:24:16PM -0600, Kyle Roeschley wrote:
> On Thu, Nov 30, 2017 at 09:03:12AM +0100, Geert Uytterhoeven wrote:
> > Hi Trent,
> >
> > On Thu, Nov 30, 2017 at 3:07 AM, Trent Piepho <tpiepho-cgc2CodaaHDQT0dZR+AlfA@public.gmane.org> wrote:
> > > On Wed, 2017-11-29 at 23:18 +0100, Geert Uytterhoeven wrote:
> > >> To me, the above sounds a bit contradictive: either you have
> > >> 1. a simple (trivial) description, which can be handled by spidev and
> > >> userspace, and thus by just writing "<unit-addr> spidev" to a new_device
> > >> sysfs node, or
>
> So you're suggesting that new_device can only be used to create a device which
> uses spidev (without yelling about it)? That makes sense to me.
>
> > >> 2. a complex description, for which you need a specialized in-kernel driver,
> > >> so you're gonna need a real DT node (and overlays?) to describe it.
> > >>
> > >> I don't think writing a complex description to a new_device sysfs node makes
> > >> sense.
> > >
> > > Is there anything one can do with new_device that can't be done with a
> > > dt fragment?
> >
> > Nope.
>
> Aren't DT overlays via configfs not yet in mainline? So if I did want to use
> that mechanism, I'd have call the in-kernel API from within the SPI core.
>
Any more comments on this? If not, I'll create something like new_device and
send it up.
--
Kyle Roeschley
Software Engineer
National Instruments
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-12-12 18:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 15:04 spidev: Instantiating from DT as "spidev" Kyle Roeschley
2017-11-29 16:32 ` Geert Uytterhoeven
[not found] ` <CAMuHMdUps9Ti=CRZM7UxrHLD8GA+FKD+_RFLW3H9wUpSRTYs8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-29 19:24 ` Kyle Roeschley
2017-11-29 22:18 ` Geert Uytterhoeven
[not found] ` <CAMuHMdX62=vC6=P-v=SPe_hq0F12tOZCgePaS7=MZZg_4PkvUw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-30 2:07 ` Trent Piepho
[not found] ` <1512007657.9792.45.camel-cgc2CodaaHDQT0dZR+AlfA@public.gmane.org>
2017-11-30 8:03 ` Geert Uytterhoeven
[not found] ` <CAMuHMdXv2WsGCUBD4Td9K1zOfZ9DOfeW5rYtCyq27Ucp21xGRA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-30 22:24 ` Kyle Roeschley
2017-12-12 18:44 ` Kyle Roeschley [this message]
2017-11-29 20:22 ` Trent Piepho
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=20171212184444.GA32483@senary \
--to=kyle.roeschley-acoepvfbmuk@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=tpiepho-cgc2CodaaHDQT0dZR+AlfA@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).