All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Perier <romain.perier@collabora.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: gmac_rockchip: Add support for pinctrl
Date: Tue, 11 Jul 2017 16:30:30 +0200	[thread overview]
Message-ID: <e8d4af6e-e911-e2e8-6378-9366541f4aca@collabora.com> (raw)
In-Reply-To: <F0E29F04-2D83-470B-BC87-B135EF0E2FA6@theobroma-systems.com>

Hello,


Le 11/07/2017 à 15:43, Dr. Philipp Tomsich a écrit :
>> On 10 Jul 2017, at 08:43, Romain Perier <romain.perier@collabora.com> wrote:
>>
>> Le 07/07/2017 à 05:58, Simon Glass a écrit :
>>> +Philipp
>>>
>>> Hi Romain,
>>>
>>> On 3 July 2017 at 01:13, Romain Perier <romain.perier@collabora.com> wrote:
>>>> Currently, selecting state simple is done by the device driver model,
>>>> prior probing the driver. The problem is that it's done and called on
>>>> the pinctrl node with "gmac" as the "periph" struct udevice *. So
>>>> pinctrl-rk3288 is looking for an interrupt property that is not found,
>>>> and then gmac_config is never called.
>>>>
>>>> This commits toggles the pinctrl on the right node from the probe
>>>> function of the driver.
>>> Is it possible to fix this while still using driver-model automatic pinctrl?
>> This is what I have tried to do, without success. The purpose of this
>> patch is also to discuss about the possible solutions we have.
> From looking at pinctrl_rk3288.c, I wonder if there’s a problem with
> pinctrl on the RK3288 outside of SPL: I see that the (full) set_state
> is also implemented outside of SPL (#ifndef CONFIG_SPL_BUILD)
> and not guarded by a CONFIG_IS_ENABLED(PINCTRL_FULL). So
> something might go down the wrong path.
>
> Could start narrowing this down by enabling DEBUG in pinctrl_rk3288
> to see whether this is even the simple pinctrl that gets called?

Yeah, the simple pinctrl is called at least for "hdmi" and the function
for configuring hdmi is called internally.

Romain

  reply	other threads:[~2017-07-11 14:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03  7:13 [U-Boot] [PATCH] net: gmac_rockchip: Add support for pinctrl Romain Perier
2017-07-07  3:58 ` Simon Glass
2017-07-10  6:43   ` Romain Perier
2017-07-11 13:43     ` Dr. Philipp Tomsich
2017-07-11 14:30       ` Romain Perier [this message]
2017-07-11 13:44   ` Dr. Philipp Tomsich

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=e8d4af6e-e911-e2e8-6378-9366541f4aca@collabora.com \
    --to=romain.perier@collabora.com \
    --cc=u-boot@lists.denx.de \
    /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.