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


Groups > linux.kernel > #1641374 > unrolled thread

[PATCH 1/2] spi: spidev: introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command

Started bySeraphime Kirkovski <kirkseraph@gmail.com>
First post2017-05-15 10:30 +0200
Last post2017-05-17 11:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/2] spi: spidev: introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ  command Seraphime Kirkovski <kirkseraph@gmail.com> - 2017-05-15 10:30 +0200
    Re: [PATCH 1/2] spi: spidev: introduce  SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command Mark Brown <broonie@kernel.org> - 2017-05-17 11:10 +0200

#1641374 — [PATCH 1/2] spi: spidev: introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command

FromSeraphime Kirkovski <kirkseraph@gmail.com>
Date2017-05-15 10:30 +0200
Subject[PATCH 1/2] spi: spidev: introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command
Message-ID<tHjy9-5Dw-7@gated-at.bofh.it>
christophe.blaess@gmail.com, fred@haapie.com
Bcc: Subject: Re: [PATCH 1/2] spi: spidev: introduce
 SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command
Reply-To: 
In-Reply-To: <20170514092716.kqx634djffgj32r6@sirena.org.uk>

On Sun, May 14, 2017 at 06:27:16PM +0900, Mark Brown wrote:
> On Tue, May 09, 2017 at 02:24:00PM +0200, Seraphime Kirkovski wrote:
> 
> > I think, this change is necessary, on the one hand, because there are still
> > a lot of longterm[2] supported kernels out there, whose users may be relying on
> > SPI_IOC_WR_MAX_SPEED being system-wide and, on the other hand, this
> > same command has been exhibiting a different behaviour for 3 years now,
> > so its users may break, if 9169051617df7 is reverted in one way or
> > another.
> 
> Do we have any evidence that such users exist?  

I can't guarantee for other such users, but this change did disturb our 
workflow. We were using this feature to prototype and test 
hardware/firmware at different speeds.

I was thinking this morning that maybe a sysfs interface will be better 
for setting global settings. Do you prefer ?

[toc] | [next] | [standalone]


#1643155 — Re: [PATCH 1/2] spi: spidev: introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command

FromMark Brown <broonie@kernel.org>
Date2017-05-17 11:10 +0200
SubjectRe: [PATCH 1/2] spi: spidev: introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command
Message-ID<tI37X-19V-5@gated-at.bofh.it>
In reply to#1641374

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

On Mon, May 15, 2017 at 10:17:11AM +0200, Seraphime Kirkovski wrote:
> On Sun, May 14, 2017 at 06:27:16PM +0900, Mark Brown wrote:

> > Do we have any evidence that such users exist?  

> I can't guarantee for other such users, but this change did disturb our 
> workflow. We were using this feature to prototype and test 
> hardware/firmware at different speeds.

> I was thinking this morning that maybe a sysfs interface will be better 
> for setting global settings. Do you prefer ?

I just don't see this as something that should be being varied at
runtime; it is supposed to be the maximum speed that the bus can be run
at, that's not something that should vary at runtime.  Possibly a sysfs
thing but honestly if you're prototyping via spidev I'd just set the
speed in your application each time it starts.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web