Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1451453 > unrolled thread

Re: [PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.

Started byMark Brown <broonie@kernel.org>
First post2016-07-27 20:30 +0200
Last post2016-07-27 20:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 1/3] spi: spidev: create spidev device for all spi  slaves. Mark Brown <broonie@kernel.org> - 2016-07-27 20:30 +0200

#1451453 — Re: [PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.

FromMark Brown <broonie@kernel.org>
Date2016-07-27 20:30 +0200
SubjectRe: [PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.
Message-ID<rZBKF-2Zd-11@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Tue, Jul 19, 2016 at 08:33:12PM +0200, Michal Suchanek wrote:
> On 19 July 2016 at 19:19, Mark Brown <broonie@kernel.org> wrote:

> > It's a string that's exposed to userspace (via /proc/devices if nothing
> > else).

> Yes, the change can be detected from userspace. The question is
> more like 'Is there any sane reason anyone would rely on seeing
> that exact string for something?'

People using it to create device files at runtime or detect board
variants would be the main ones.

> BTW the classes are also exported through /sys so the spidev devices
> would look differently there also.

Yup.

> That does not make device-specific hacks go away. Initially the user
> will do only as much as it takes to get the device working right now
> and that does not include writing devicetree description of the device
> when it is used with userspace driver.

Depends, especially if you see some long term use for your code it's
common to start with the enumeration part.  It's not there currently so
people can't do that but part of getting the good practice out there is
to make it the path of least resistance.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web