From: Russell King - ARM Linux admin <linux@armlinux•org.uk>
To: Christian Lamparter <chunkeey@gmail•com>
Cc: Ansuel Smith <ansuelsmth@gmail•com>,
Andy Gross <agross@kernel•org>,
Bjorn Andersson <bjorn.andersson@linaro•org>,
"David S. Miller" <davem@davemloft•net>,
Rob Herring <robh+dt@kernel•org>,
Mark Rutland <mark.rutland@arm•com>, Andrew Lunn <andrew@lunn•ch>,
Florian Fainelli <f.fainelli@gmail•com>,
Heiner Kallweit <hkallweit1@gmail•com>,
linux-arm-msm@vger•kernel.org, netdev@vger•kernel.org,
devicetree@vger•kernel.org, linux-kernel@vger•kernel.org
Subject: Re: [PATCH v6 1/2] net: mdio: add ipq8064 mdio driver
Date: Sun, 23 Feb 2020 20:19:16 +0000 [thread overview]
Message-ID: <20200223201916.GO25745@shell.armlinux.org.uk> (raw)
In-Reply-To: <4475595.vek7CkyBFf@debian64>
On Sun, Feb 23, 2020 at 12:47:40AM +0100, Christian Lamparter wrote:
> > +static int
> > +ipq8064_mdio_read(struct mii_bus *bus, int phy_addr, int reg_offset)
> > +{
> > + struct ipq8064_mdio *priv = bus->priv;
> > + u32 miiaddr = MII_BUSY | MII_CLKRANGE_250_300M;
> > + u32 ret_val;
> > + int err;
> > +
> > + /* Reject clause 45 */
> > + if (reg_offset & MII_ADDR_C45)
> > + return -EOPNOTSUPP;
> Heh, C45 on IPQ806X? Ok, anyone know the hardware or is this some fancy
> forward-thinking future-proofing?
Quite simply, the driver as written does not support C45, so it should
reject it, rather than truncating the "reg_offset" and issuing C22
cycles instead.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
prev parent reply other threads:[~2020-02-23 20:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-22 16:16 [PATCH v6 1/2] net: mdio: add ipq8064 mdio driver Ansuel Smith
2020-02-22 16:16 ` [PATCH v6 2/2] Documentation: devictree: Add ipq806x mdio bindings Ansuel Smith
2020-02-24 18:39 ` Rob Herring
2020-02-22 23:47 ` [PATCH v6 1/2] net: mdio: add ipq8064 mdio driver Christian Lamparter
2020-02-23 15:42 ` R: " ansuelsmth
2020-02-23 20:19 ` Russell King - ARM Linux admin [this message]
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=20200223201916.GO25745@shell.armlinux.org.uk \
--to=linux@armlinux$(echo .)org.uk \
--cc=agross@kernel$(echo .)org \
--cc=andrew@lunn$(echo .)ch \
--cc=ansuelsmth@gmail$(echo .)com \
--cc=bjorn.andersson@linaro$(echo .)org \
--cc=chunkeey@gmail$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=f.fainelli@gmail$(echo .)com \
--cc=hkallweit1@gmail$(echo .)com \
--cc=linux-arm-msm@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=mark.rutland@arm$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=robh+dt@kernel$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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