All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin Hundebøll" <martin.hundeboll-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org>
To: Chris Packham
	<Chris.Packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Andy Shevchenko
	<andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "Martin Hundebøll" <mnhu-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org>,
	"Mika Westerberg"
	<mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
	"Jarkko Nikula"
	<jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
	linux-spi <linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] spi: core: use gpio_request_one for configured gpio cs
Date: Mon, 24 Jul 2017 23:26:35 +0200	[thread overview]
Message-ID: <DBFEECA3-E21E-4DC5-B6B9-D1B12AD48E7A@prevas.dk> (raw)
In-Reply-To: <e668b7529837444085b9df3a563c3fe3-5g7mGxlPNYb6GjIOKuZY+ItlCAj8ZROq@public.gmane.org>



On July 24, 2017 11:16:17 PM GMT+02:00, Chris Packham <Chris.Packham@alliedtelesis.co.nz> wrote:
>On 25/07/17 00:42, Mark Brown wrote:
>> On Mon, Jul 24, 2017 at 01:49:14PM +0300, Andy Shevchenko wrote:
>>> On Mon, Jul 24, 2017 at 12:53 PM, Martin Hundebøll <mnhu@prevas.dk>
>wrote:
>>>> Some gpio controllers requires lines to be configured as outputs to
>make
>>>> subsequent calls to `gpio_set_value()` have any effect.
>> 
>>>> Add a call to `gpio_request_one()` for configured gpio chip-selects
>to
>>>> make it work on (at least) mvebu gpio controllers.
>> 
>>> More and more hacks around plain GPIO integers... :-(
>> 
>>> Perhaps we need to discuss how to convert SPI core to use GPIO
>>> descriptors everywhere.
>> 
>> The best way would be to test the work that Chris Packham submitted
>in
>> May to do this, it'll need a refresh now and it ought to get some
>> testing on ep93xx but sadly nobody working on ep93xx has responded -
>I
>> think at this point I'd probably just apply and let people test
>-next.
>> 
>
>My patchset kind of stalled. I can do a refresh if there's interest.
>But 
>I really do need some help from people with access to hardware (I can 
>cover spi-orion and spi-fsl-espi but that's about it). After the
>initial 
>RFC series I posted in May I found that iMX platforms use the integer 
>cs_gpio field for both native chipselects and gpio based ones (values <
>
>0 indicate native CS) so again I'd be coding blind trying to
>disentangle 
>that.

My submission was more or less a fly-by patch, but I'd be happy to test/debug patches on spi-imx if you CC me on the series.

Any other drivers with special gpio-cs handling?

// Martin

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
--
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

  parent reply	other threads:[~2017-07-24 21:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24  9:53 [PATCH] spi: core: use gpio_request_one for configured gpio cs Martin Hundebøll
     [not found] ` <20170724095327.18602-1-mnhu-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org>
2017-07-24 10:49   ` Andy Shevchenko
     [not found]     ` <CAHp75VdQbw9rkxq0tvYquacYViZqWKAqOTKHjLPtP=uZi8zzsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-24 12:01       ` Mark Brown
2017-07-24 21:16         ` Chris Packham
     [not found]           ` <e668b7529837444085b9df3a563c3fe3-5g7mGxlPNYb6GjIOKuZY+ItlCAj8ZROq@public.gmane.org>
2017-07-24 21:26             ` Martin Hundebøll [this message]
2017-07-24 21:44               ` Chris Packham
     [not found]                 ` <3027e39333a24fa7a4ce540d96b0e6f3-5g7mGxlPNYb6GjIOKuZY+ItlCAj8ZROq@public.gmane.org>
2017-07-27  9:47                   ` Andy Shevchenko
2017-07-27 21:01                     ` Chris Packham
2017-07-24 21:28             ` Mark Brown
2017-07-24 12:02       ` Mark Brown
     [not found]         ` <20170724120249.mpyv7f3t4q3eihrg-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2017-07-24 12:26           ` Andy Shevchenko

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=DBFEECA3-E21E-4DC5-B6B9-D1B12AD48E7A@prevas.dk \
    --to=martin.hundeboll-rjjw5hvvqkzaa/9udqfwiw@public.gmane.org \
    --cc=Chris.Packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org \
    --cc=andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=mnhu-rjjw5hvvQKZaa/9Udqfwiw@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.