netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sedat Dilek <sedat.dilek@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Roosen Henri <Henri.Roosen@ginzinger.com>,
	David Daney <david.daney@cavium.com>,
	Florian Fainelli <f.fainelli@gmail.com>,
	"David S . Miller" <davem@davemloft.net>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH] [net] phy: micrel: Fix build failure in ksz9031_config_init()
Date: Sat, 9 Jan 2016 23:24:27 +0100	[thread overview]
Message-ID: <CA+icZUVVvHa+K_EBKsYcVdMLApLfnha13CCvbA58VZfjLYZy0A@mail.gmail.com> (raw)
In-Reply-To: <20160109155524.GB28813@lunn.ch>

On Sat, Jan 9, 2016 at 4:55 PM, Andrew Lunn <andrew@lunn.ch> wrote:
> On Sat, Jan 09, 2016 at 12:59:17PM +0100, Sedat Dilek wrote:
>> This fixes the following build failure seen in net.git#master on top of
>> Linux v4.4-rc8+:
>
> I'm pretty sure this is wrong. Here is why...
>
> net.git has the fix:
>
> commit b4c19f71252e3b6b8c6478fd712c592f00b11438
> Author: Roosen Henri <Henri.Roosen@ginzinger.com>
> Date:   Thu Jan 7 09:31:15 2016 +0100
>
>     phy: micrel: Fix finding PHY properties in MAC node for KSZ9031.
>
>     Commit 651df2183543 ("phy: micrel: Fix finding PHY properties in MAC
>      node.") only fixes finding PHY properties in MAC node for KSZ9021. This
>     commit applies the same fix for KSZ9031.
>
>     Fixes: 8b63ec1837fa ("phylib: Make PHYs children of their MDIO bus, not the bus' parent.")
>     Acked-by: Andrew Lunn <andrew@lunn.ch>
>     Signed-off-by: Henri Roosen <henri.roosen@ginzinger.com>
>     Signed-off-by: David S. Miller <davem@davemloft.net>
>
> diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
> index e13ad6cdcc22..7a5679982c03 100644
> --- a/drivers/net/phy/micrel.c
> +++ b/drivers/net/phy/micrel.c
> @@ -470,9 +470,17 @@ static int ksz9031_config_init(struct phy_device *phydev)
>                 "txd2-skew-ps", "txd3-skew-ps"
>         };
>         static const char *control_skews[2] = {"txen-skew-ps", "rxdv-skew-ps"};
> +       const struct device *dev_walker;
>
> -       if (!of_node && dev->parent->of_node)
> -               of_node = dev->parent->of_node;
> +       /* The Micrel driver has a deprecated option to place phy OF
> +        * properties in the MAC node. Walk up the tree of devices to
> +        * find a device with an OF node.
> +        */
> +       dev_walker = &phydev->dev;
> +       do {
> +               of_node = dev_walker->of_node;
> +               dev_walker = dev_walker->parent;
> +       } while (!of_node && dev_walker);
>
>
> This brings in the dev_walker, which uses phydev->dev. In net, that is
> correct. My patches introducing MDIO device are not in net. They are
> only in net-next.
>
> In net-next, this fix does not yet appear. Hence it does not yet have
> the change of ->dev to ->mdio.dev.
>
> Somehow, next.git has both net.git and net-next.git. Hence you get the
> build error.
>
> Unfortunately, we cannot fix this yet. Your fix needs to go to
> net-next. But first Dave needs to merge net.git into net-next.git, so
> bringing in Henri's fix. Only then can your fix be applied. My guess
> is, Dave will do that Sunday when Linus makes the release and opens
> the merge window.
>

Oops, you are right.
I have both recent net.git and net-next.git on top of Linux v4.4-rc8
and was unsure where to fix it.
So, let's wait till net-next.git has merged net.git.

- Sedat -

  reply	other threads:[~2016-01-09 22:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-09 11:59 [PATCH] [net] phy: micrel: Fix build failure in ksz9031_config_init() Sedat Dilek
2016-01-09 15:55 ` Andrew Lunn
2016-01-09 22:24   ` Sedat Dilek [this message]
2016-01-10 11:50 ` kbuild test robot
2016-01-11  9:23   ` Sedat Dilek

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=CA+icZUVVvHa+K_EBKsYcVdMLApLfnha13CCvbA58VZfjLYZy0A@mail.gmail.com \
    --to=sedat.dilek@gmail.com \
    --cc=Henri.Roosen@ginzinger.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=david.daney@cavium.com \
    --cc=f.fainelli@gmail.com \
    --cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).