All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Rhyland Klein <rklein-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [pinmux scripts PATCH] soc: Add support for Parked bits for Tegra210
Date: Thu, 7 Apr 2016 14:49:23 -0600	[thread overview]
Message-ID: <5706C7D3.9030407@wwwdotorg.org> (raw)
In-Reply-To: <5706C634.80605-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

On 04/07/2016 02:42 PM, Rhyland Klein wrote:
> On 4/7/2016 4:35 PM, Stephen Warren wrote:
>> On 04/07/2016 02:15 PM, Rhyland Klein wrote:
>>> Tegra210 has a parked bit for each pin. Add code to express
>>> this by updating the kernel driver MACROs to add in parked_*
>>> fields so that the kernel can handle them as it sees fit.
>>
>> I'd expect that wrapped around 74 characters. Our internal git
>> auto-review thing's 50-character limit is a bit odd (I think it's only
>> meant to apply to the synopsis not the full description but is either
>> buggy or just doesn't make that clear).
>
> I'll fix the wrapping.
>
>>
>>> diff --git a/configs/tegra114.soc b/configs/tegra114.soc
>>
>>> +soc_pins_have_parked = False
>>>    soc_drv_reg_base = 0x868
>>>    soc_einput_b = 5
>>>    soc_odrain_b = 6
>>> +soc_parked_bank = 0
>>> +soc_parked_bit = 0
>>
>> For SoCs with soc_pins_have_parked == False, can we simply omit the
>> bank/bit values from the config file?
>
> I tried that originally, but I don't think I can. The reason is that
> tegra_pmx_soc_parser uses a predefined array of attributes (copy_attrs)
> and if the entry isn't in that, then it won't be populated and can't be
> accessed later to fill in the values for say T210. If the entry IS in
> the copy_attrs, then the script will fail if there isn't an entry in the
> config file. Its unfortunate, and maybe someone more familiar with the
> scripts might know of a way to get around this, something I haven't
> found yet.

Oh yes, you're right; the parsing is all in one pass so we can't check 
for the "have" attribute first and then conditionally act upon it to 
copy the _b attributes.

But now you made me look at the code, I noticed that I think the new 
Boolean value should be named soc_pins_all_have_parked, and the new 
entry in copy_attrs should be sorted next to the existing 
soc_pins_all_have_* entries:-) (That's because the _b value applies to 
all pins, and is defined once at the SoC level, rather than potentially 
having a different value per pin).

  parent reply	other threads:[~2016-04-07 20:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 20:15 [pinmux scripts PATCH] soc: Add support for Parked bits for Tegra210 Rhyland Klein
     [not found] ` <1460060143-25086-1-git-send-email-rklein-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-04-07 20:35   ` Stephen Warren
     [not found]     ` <5706C475.7010102-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-04-07 20:42       ` Rhyland Klein
     [not found]         ` <5706C634.80605-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-04-07 20:49           ` Stephen Warren [this message]
     [not found]             ` <5706C7D3.9030407-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-04-07 20:51               ` Rhyland Klein

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=5706C7D3.9030407@wwwdotorg.org \
    --to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=rklein-DDmLM1+adcrQT0dZR+AlfA@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.