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


Groups > linux.kernel > #1210565 > unrolled thread

Re: [PATCH 3/9] spi: sunxi: check that transfer speed is non-zero

Started byMaxime Ripard <maxime.ripard@free-electrons.com>
First post2015-08-20 16:50 +0200
Last post2015-08-20 23:30 +0200
Articles 3 — 2 participants

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 3/9] spi: sunxi: check that transfer speed is non-zero Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-08-20 16:50 +0200
    Re: [PATCH 3/9] spi: sunxi: check that transfer speed is non-zero Michal Suchanek <hramrach@gmail.com> - 2015-08-20 21:50 +0200
      Re: [PATCH 3/9] spi: sunxi: check that transfer speed is non-zero Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-08-20 23:30 +0200

#1210565 — Re: [PATCH 3/9] spi: sunxi: check that transfer speed is non-zero

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2015-08-20 16:50 +0200
SubjectRe: [PATCH 3/9] spi: sunxi: check that transfer speed is non-zero
Message-ID<pZzkh-7Tp-87@gated-at.bofh.it>

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

On Thu, Aug 20, 2015 at 02:19:46PM -0000, Michal Suchanek wrote:
> When the maximum transfer speed is not set for a SPI slave the value
> remains 0 and the code in sunxi SPI divides by it. Use an arbitrary
> speed instead in that case.
> 
> Signed-off-by: Michal Suchanek <hramrach@gmail.com>

spi->max_speed_hz is set using the spi-max-frequency property, and
spi->will error out if that property isn't set. What am I missing?

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

[toc] | [next] | [standalone]


#1210707

FromMichal Suchanek <hramrach@gmail.com>
Date2015-08-20 21:50 +0200
Message-ID<pZE0y-6as-25@gated-at.bofh.it>
In reply to#1210565
On 20 August 2015 at 16:48, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> On Thu, Aug 20, 2015 at 02:19:46PM -0000, Michal Suchanek wrote:
>> When the maximum transfer speed is not set for a SPI slave the value
>> remains 0 and the code in sunxi SPI divides by it. Use an arbitrary
>> speed instead in that case.
>>
>> Signed-off-by: Michal Suchanek <hramrach@gmail.com>
>
> spi->max_speed_hz is set using the spi-max-frequency property, and
> spi->will error out if that property isn't set. What am I missing?
>

Spidev I guess.

You can set the speed to arbitrary value from userspace at any time
using the spidev ioctls.

Thanks

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1210744

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2015-08-20 23:30 +0200
Message-ID<pZFzk-7l-23@gated-at.bofh.it>
In reply to#1210707

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

On Thu, Aug 20, 2015 at 09:45:07PM +0200, Michal Suchanek wrote:
> On 20 August 2015 at 16:48, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > On Thu, Aug 20, 2015 at 02:19:46PM -0000, Michal Suchanek wrote:
> >> When the maximum transfer speed is not set for a SPI slave the value
> >> remains 0 and the code in sunxi SPI divides by it. Use an arbitrary
> >> speed instead in that case.
> >>
> >> Signed-off-by: Michal Suchanek <hramrach@gmail.com>
> >
> > spi->max_speed_hz is set using the spi-max-frequency property, and
> > spi->will error out if that property isn't set. What am I missing?
> >
> 
> Spidev I guess.
> 
> You can set the speed to arbitrary value from userspace at any time
> using the spidev ioctls.

Then why should it be fixed at the controller driver level? It looks
more like an issue that impacts everyone and should be fixed either in
spidev directly or in the framework.

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web