All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Schmidt <stefan@osg.samsung.com>
To: h.morris@cascoda.com, linux-wpan@vger.kernel.org
Cc: alex.aring@gmail.com
Subject: Re: [PATCH 2/3] ieee802154: Add device tree documentation for CA8210
Date: Thu, 27 Oct 2016 00:51:20 +0200	[thread overview]
Message-ID: <b0ded04e-c2d8-e0a6-b735-57f56a821b9c@osg.samsung.com> (raw)
In-Reply-To: <4a3b56c9-7b90-fb55-4cf5-f77ca51a6f21@osg.samsung.com>

Hello.

On 27/10/16 00:33, Stefan Schmidt wrote:
> Hello.
>
> On 25/10/16 18:36, Harry Morris wrote:
>> Hi Stefan,
>>
>> On 25/10/2016 16:54, Stefan Schmidt wrote:
>>> Start should with a capital S here as you do on all other lines. Total
>>> nitpick. :)
>> Perfect, I'm sure there's a few more elsewhere I've missed
>>>> +    - reg:                  Controlling chip select
>>>> +    - spi-max-frequency:    Maximum clock speed, should be *less than*
>>>> +                            4000000
>>>> +    - spi-cpol:             Invert clock polarity
>>>
>>> Is this a mandatory field for the bindings? I would expect one being
>>> the default and used while the other one being an optional property
>>> and only used when the hardware setup needs this. Does this make sense?
>> I'm afraid not, my understanding is that the spi-cpol property is used
>> by the spi master driver rather than the device driver, so if I need
>> CPOL=1 (which the CA8210 always does) then the user doesn't have a
>> choice but to specify spi-cpol here? As omitting would cause the spi
>> master to use CPOL=0 for the attached slave.
>
> I would expect there is a way to set this in the driver itself as it is
> the default and the only working mode. Having to set it in the device
> tree bindings seems odd as this is really no option or parameter that
> can be changed.
>
> Did you look around in other SPI driver so see how they handle such a
> situation?

I did look around myself quickly and it seems indeed the way to set the 
clock polarity. Just keep it. Maybe adjust the description to "Requires 
invert clock polarity".

regards
Stefan Schmidt

  reply	other threads:[~2016-10-26 22:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-24 15:04 [PATCH 0/3] ieee802154: add support for Cascoda CA8210 harrymorris12
2016-10-24 15:04 ` [PATCH 2/3] ieee802154: Add device tree documentation for CA8210 harrymorris12
2016-10-25 15:54   ` Stefan Schmidt
2016-10-25 16:36     ` Harry Morris
2016-10-26 22:33       ` Stefan Schmidt
2016-10-26 22:51         ` Stefan Schmidt [this message]
2016-10-27  9:52           ` Harry Morris
2016-10-27 10:12             ` Stefan Schmidt
2016-10-24 15:04 ` [PATCH 3/3] ieee802154: Add entry in MAINTAINTERS for CA8210 driver harrymorris12
2016-10-25 15:54   ` Stefan Schmidt
2016-10-25 15:16 ` [PATCH 0/3] ieee802154: add support for Cascoda CA8210 Stefan Schmidt
     [not found] ` <20161024150449.11132-2-h.morris@cascoda.com>
2016-10-25 15:54   ` [PATCH 1/3] ieee802154: Add CA8210 IEEE 802.15.4 device driver Stefan Schmidt
2016-10-26  9:59     ` Harry Morris

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=b0ded04e-c2d8-e0a6-b735-57f56a821b9c@osg.samsung.com \
    --to=stefan@osg.samsung.com \
    --cc=alex.aring@gmail.com \
    --cc=h.morris@cascoda.com \
    --cc=linux-wpan@vger.kernel.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.