From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Roeschley Subject: Re: spidev: Instantiating from DT as "spidev" Date: Thu, 30 Nov 2017 16:24:16 -0600 Message-ID: <20171130222416.4b7pob47eicuappv@senary> References: <20171129150435.5npybjuu2ndmtx2v@senary> <20171129192407.vrkphuhttmzl2ii4@senary> <1512007657.9792.45.camel@impinj.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Trent Piepho , "linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" To: Geert Uytterhoeven Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: 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 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 " 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. > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- 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