From: Yendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com> To: Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Russell King <linux@armlinux.org.uk>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Jon Mason <jonmason@broadcom.com>, Florian Fainelli <f.fainelli@gmail.com>, Kishon Vijay Abraham I <kishon@ti.com> Cc: bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Yendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com> Subject: [PATCH v2 2/4] net: phy: Initialize mdio clock at probe function Date: Tue, 17 Jan 2017 11:14:28 -0500 [thread overview] Message-ID: <1484669670-4201-3-git-send-email-yendapally.reddy@broadcom.com> (raw) In-Reply-To: <1484669670-4201-1-git-send-email-yendapally.reddy@broadcom.com> Initialize mdio clock divisor in probe function. The ext bus bit available in the same register will be used by mdio mux to enable external mdio. Signed-off-by: Yendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com> --- drivers/net/phy/mdio-bcm-iproc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/mdio-bcm-iproc.c b/drivers/net/phy/mdio-bcm-iproc.c index c0b4e65..46fe1ae 100644 --- a/drivers/net/phy/mdio-bcm-iproc.c +++ b/drivers/net/phy/mdio-bcm-iproc.c @@ -81,8 +81,6 @@ static int iproc_mdio_read(struct mii_bus *bus, int phy_id, int reg) if (rc) return rc; - iproc_mdio_config_clk(priv->base); - /* Prepare the read operation */ cmd = (MII_DATA_TA_VAL << MII_DATA_TA_SHIFT) | (reg << MII_DATA_RA_SHIFT) | @@ -112,8 +110,6 @@ static int iproc_mdio_write(struct mii_bus *bus, int phy_id, if (rc) return rc; - iproc_mdio_config_clk(priv->base); - /* Prepare the write operation */ cmd = (MII_DATA_TA_VAL << MII_DATA_TA_SHIFT) | (reg << MII_DATA_RA_SHIFT) | @@ -163,6 +159,8 @@ static int iproc_mdio_probe(struct platform_device *pdev) bus->read = iproc_mdio_read; bus->write = iproc_mdio_write; + iproc_mdio_config_clk(priv->base); + rc = of_mdiobus_register(bus, pdev->dev.of_node); if (rc) { dev_err(&pdev->dev, "MDIO bus registration failed\n"); -- 2.1.0
WARNING: multiple messages have this Message-ID (diff)
From: yendapally.reddy@broadcom.com (Yendapally Reddy Dhananjaya Reddy) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/4] net: phy: Initialize mdio clock at probe function Date: Tue, 17 Jan 2017 11:14:28 -0500 [thread overview] Message-ID: <1484669670-4201-3-git-send-email-yendapally.reddy@broadcom.com> (raw) In-Reply-To: <1484669670-4201-1-git-send-email-yendapally.reddy@broadcom.com> Initialize mdio clock divisor in probe function. The ext bus bit available in the same register will be used by mdio mux to enable external mdio. Signed-off-by: Yendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com> --- drivers/net/phy/mdio-bcm-iproc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/mdio-bcm-iproc.c b/drivers/net/phy/mdio-bcm-iproc.c index c0b4e65..46fe1ae 100644 --- a/drivers/net/phy/mdio-bcm-iproc.c +++ b/drivers/net/phy/mdio-bcm-iproc.c @@ -81,8 +81,6 @@ static int iproc_mdio_read(struct mii_bus *bus, int phy_id, int reg) if (rc) return rc; - iproc_mdio_config_clk(priv->base); - /* Prepare the read operation */ cmd = (MII_DATA_TA_VAL << MII_DATA_TA_SHIFT) | (reg << MII_DATA_RA_SHIFT) | @@ -112,8 +110,6 @@ static int iproc_mdio_write(struct mii_bus *bus, int phy_id, if (rc) return rc; - iproc_mdio_config_clk(priv->base); - /* Prepare the write operation */ cmd = (MII_DATA_TA_VAL << MII_DATA_TA_SHIFT) | (reg << MII_DATA_RA_SHIFT) | @@ -163,6 +159,8 @@ static int iproc_mdio_probe(struct platform_device *pdev) bus->read = iproc_mdio_read; bus->write = iproc_mdio_write; + iproc_mdio_config_clk(priv->base); + rc = of_mdiobus_register(bus, pdev->dev.of_node); if (rc) { dev_err(&pdev->dev, "MDIO bus registration failed\n"); -- 2.1.0
next prev parent reply other threads:[~2017-01-17 16:15 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-01-17 16:14 [PATCH v2 0/4] USB support for Broadcom NSP SoC Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` [PATCH v2 1/4] dt-bindings: phy: Add documentation for NSP USB3 PHY Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-01-19 19:26 ` Rob Herring 2017-01-19 19:26 ` Rob Herring 2017-01-19 19:26 ` Rob Herring 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy [this message] 2017-01-17 16:14 ` [PATCH v2 2/4] net: phy: Initialize mdio clock at probe function Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-01-19 19:26 ` Florian Fainelli 2017-01-19 19:26 ` Florian Fainelli 2017-01-19 19:26 ` Florian Fainelli 2017-02-01 22:08 ` Florian Fainelli 2017-02-01 22:08 ` Florian Fainelli 2017-02-01 22:08 ` Florian Fainelli 2017-01-17 16:14 ` [PATCH v2 3/4] phy: Add USB3 PHY support for Broadcom NSP SoC Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-02-02 6:48 ` Rafał Miłecki 2017-02-02 6:48 ` Rafał Miłecki 2017-02-02 6:48 ` Rafał Miłecki 2017-02-03 16:05 ` Jon Mason 2017-02-03 16:05 ` Jon Mason 2017-02-03 16:05 ` Jon Mason 2017-01-17 16:14 ` [PATCH v2 4/4] arm: dts: nsp: Add USB nodes to device tree Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-01-17 16:14 ` Yendapally Reddy Dhananjaya Reddy 2017-01-26 15:34 ` [PATCH v2 0/4] USB support for Broadcom NSP SoC Kishon Vijay Abraham I 2017-01-26 15:34 ` Kishon Vijay Abraham I 2017-01-26 15:34 ` Kishon Vijay Abraham I 2017-01-26 17:27 ` Florian Fainelli 2017-01-26 17:27 ` Florian Fainelli 2017-01-26 17:27 ` Florian Fainelli 2017-01-27 7:39 ` Kishon Vijay Abraham I 2017-01-27 7:39 ` Kishon Vijay Abraham I 2017-01-27 7:39 ` Kishon Vijay Abraham I
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=1484669670-4201-3-git-send-email-yendapally.reddy@broadcom.com \ --to=yendapally.reddy@broadcom.com \ --cc=bcm-kernel-feedback-list@broadcom.com \ --cc=devicetree@vger.kernel.org \ --cc=f.fainelli@gmail.com \ --cc=jonmason@broadcom.com \ --cc=kishon@ti.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@armlinux.org.uk \ --cc=mark.rutland@arm.com \ --cc=netdev@vger.kernel.org \ --cc=rjui@broadcom.com \ --cc=robh+dt@kernel.org \ --cc=sbranden@broadcom.com \ /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: linkBe 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.