[PATCH] net: phy: dp83867: Fix device tree entries

2015-06-08 Thread Dan Murphy
Fix the device tree entries to modify the '_' to '-'. Also changes the names of the internal delay properties from -int- to -internal- as the -int- appeared as a keyword. Signed-off-by: Dan Murphy dmur...@ti.com --- v1 - Fixed device tree entries and added data sheet reference per http

Re: [PATCH v2] net: phy: dp83867: Add TI dp83867 phy

2015-06-08 Thread Dan Murphy
Florian Thanks for the re-review On 06/03/2015 09:47 PM, Florian Fainelli wrote: Le 06/02/15 07:34, Dan Murphy a écrit : Add support for the TI dp83867 Gigabit ethernet phy device. The DP83867 is a robust, low power, fully featured Physical Layer transceiver with integrated PMD sublayers

[PATCH v2] net: phy: dp83867: Add TI dp83867 phy

2015-06-02 Thread Dan Murphy
Add support for the TI dp83867 Gigabit ethernet phy device. The DP83867 is a robust, low power, fully featured Physical Layer transceiver with integrated PMD sublayers to support 10BASE-T, 100BASE-TX and 1000BASE-T Ethernet protocols. Signed-off-by: Dan Murphy dmur...@ti.com --- v2 - Add device

[PATCH] net: phy: dp83867: Add TI dp83867 phy

2015-05-26 Thread Dan Murphy
Add support for the TI dp83867 Gigabit ethernet phy device. The DP83867 is a robust, low power, fully featured Physical Layer transceiver with integrated PMD sublayers to support 10BASE-T, 100BASE-TX and 1000BASE-T Ethernet protocols. Signed-off-by: Dan Murphy dmur...@ti.com --- drivers/net/phy

Re: [PATCH] net: phy: dp83867: Add TI dp83867 phy

2015-05-26 Thread Dan Murphy
Florian Thanks for the review! On 05/26/2015 01:04 PM, Florian Fainelli wrote: On 26/05/15 06:07, Dan Murphy wrote: Add support for the TI dp83867 Gigabit ethernet phy device. The DP83867 is a robust, low power, fully featured Physical Layer transceiver with integrated PMD sublayers

[PATCH] net: phy: dp83867: Fix warning check for setting the internal delay

2015-07-21 Thread Dan Murphy
Fix warning: logical ‘or’ of collectively exhaustive tests is always true Change the internal delay check from an 'or' condition to an 'and' condition. Reported-by: David Binderman dcb...@hotmail.com Signed-off-by: Dan Murphy dmur...@ti.com --- drivers/net/phy/dp83867.c | 2 +- 1 file changed

Re: drivers/net/phy/dp83867.c:167: possible bad if ?

2015-07-20 Thread Dan Murphy
(RGMII_TX_ID). This internal delay is only applicable for RGMII and can be made specific to the board. The driver only needs to set the delay per the declaration in the DT. Dan -- -- Dan Murphy -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: drivers/net/phy/dp83867.c:167: possible bad if ?

2015-07-20 Thread Dan Murphy
On 07/20/2015 12:40 PM, Florian Fainelli wrote: On 20/07/15 10:37, Dan Murphy wrote: Florian On 07/20/2015 12:28 PM, Florian Fainelli wrote: Adding Dan, On 20/07/15 05:37, David Binderman wrote: Hello there, drivers/net/phy/dp83867.c:167:57: warning: logical ‘or’ of collectively

Re: [PATCH] net: phy: dp83848: Add TI DP83848 Ethernet PHY

2015-10-20 Thread Dan Murphy
> > Signed-off-by: Andrew F. Davis <a...@ti.com> > Signed-off-by: Dan Murphy <dmur...@ti.com> > --- > drivers/net/phy/Kconfig | 5 +++ > drivers/net/phy/Makefile | 1 + > drivers/net/phy/dp83848.c | 99 > +++ > 3

Re: [PATCH v2 2/2] phy dp83867: Make rgmii parameters optional

2016-05-17 Thread Dan Murphy
se.de> > Applied. This patch should not have been applied. I did not believe the implementation was proper for that driver. It seems my objection to the code was not seen. Nor was Andrew's point about the DT bindings document https://patchwork.kernel.org/patch/9105371/ Dan -- -- Dan Murphy

Re: [PATCH v2 2/2] phy dp83867: Make rgmii parameters optional

2016-05-17 Thread Dan Murphy
On 05/17/2016 03:37 PM, Alexander Graf wrote: > Hi David, > >> Am 17.05.2016 um 20:48 schrieb David Miller <da...@davemloft.net>: >> >> From: Dan Murphy <dmur...@ti.com> >> Date: Tue, 17 May 2016 13:34:34 -0500 >> >>> David >>> >

Re: [PATCH] phy dp83867: depend on CONFIG_OF_MDIO

2016-05-16 Thread Dan Murphy
on't think we want this to depend solely on OF_MDIO. The #else case should probably be coded to look at platform data, if it exists. I don't have any boards that still used platform data to test this out so I did not feel comfortable adding code I could not test. The platform data should contain the RGMII tx/rx delay and FIFO control. Dan -- -- Dan Murphy

Re: [PATCH] phy dp83867: depend on CONFIG_OF_MDIO

2016-05-16 Thread Dan Murphy
Alex On 05/16/2016 12:57 PM, Alexander Graf wrote: > Hi Dan, > > On 16.05.16 15:38, Dan Murphy wrote: >> Alexander >> >> On 05/16/2016 06:28 AM, Alexander Graf wrote: >>> The DP83867 phy driver doesn't actually work when CONFIG_OF_MDIO isn't >>> enabl

Re: [PATCH v2 2/2] phy dp83867: Make rgmii parameters optional

2016-05-16 Thread Dan Murphy
. In that case, cross our fingers and > + * assume that firmware did everything correctly for us or that we don't > + * need them. > + */ > + if (!dp83867->values_are_sane) > + return 0; > + > if (phy_interface_is_rgmii(phydev)) { > ret = phy_write(phydev, MII_DP83867_PHYCTRL, > (dp83867->fifo_depth << > DP83867_PHYCR_FIFO_DEPTH_SHIFT)); -- -- Dan Murphy

Re: [PATCH] net: phy: DP83822 initial driver submission

2017-10-04 Thread Dan Murphy
Florian On 10/03/2017 01:31 PM, Florian Fainelli wrote: > On 10/03/2017 11:03 AM, Dan Murphy wrote: >> Florian >> >> Thanks for the review >> >> On 10/03/2017 12:15 PM, Florian Fainelli wrote: >>>> + } else { >>&g

Re: [PATCH] net: phy: DP83822 initial driver submission

2017-10-03 Thread Dan Murphy
Florian Thanks for the review On 10/03/2017 12:15 PM, Florian Fainelli wrote: > On 10/03/2017 08:53 AM, Dan Murphy wrote: >> Add support for the TI DP83822 10/100Mbit ethernet phy. >> >> The DP83822 provides flexibility to connect to a MAC through a >> standard M

Re: [PATCH] net: phy: DP83822 initial driver submission

2017-10-04 Thread Dan Murphy
Florian On 10/04/2017 11:18 AM, Florian Fainelli wrote: > On 10/04/2017 08:41 AM, Dan Murphy wrote: >> Florian >> >> On 10/03/2017 01:31 PM, Florian Fainelli wrote: >>> On 10/03/2017 11:03 AM, Dan Murphy wrote: >>>> Florian >>>> >>>&g

[PATCH v4 1/2] net: phy: DP83822 initial driver submission

2017-10-09 Thread Dan Murphy
://www.ti.com/product/DP83822I/datasheet Signed-off-by: Dan Murphy <dmur...@ti.com> --- v4 - Squash DP83822 removal patch into this patch - https://www.mail-archive.com/netdev@vger.kernel.org/msg192424.html v3 - Fixed WoL indication bit and removed mutex for suspend/resume - https://ww

Re: [PATCH v3 1/3] net: phy: Remove TI DP83822 from DP83848 driver

2017-10-09 Thread Dan Murphy
Florian On 10/09/2017 11:44 AM, Florian Fainelli wrote: > On 10/09/2017 05:03 AM, Dan Murphy wrote: >> Removing the DP83822 device from the DP83848 to >> support the TI DP83822 dedicated driver that will >> initially support WoL settings. > Hi Dan, > > The orde

[PATCH v4 2/2] net: phy: at803x: Change error to EINVAL for invalid MAC

2017-10-09 Thread Dan Murphy
Change the return error code to EINVAL if the MAC address is not valid in the set_wol function. Signed-off-by: Dan Murphy <dmur...@ti.com> --- v4 - Updated $subject to include the part number - https://www.mail-archive.com/netdev@vger.kernel.org/msg192424.html v3 - No changes m

[PATCH v5 1/2] net: phy: DP83822 initial driver submission

2017-10-10 Thread Dan Murphy
://www.ti.com/product/DP83822I/datasheet Signed-off-by: Dan Murphy <dmur...@ti.com> --- v5 - Fixed bit mask, added config_init to set WOL register bits, fixed spacing issues, moved password storage under secure on if statement, and added INT_EN bit setting for interrupt enable. https://ww

[PATCH v5 2/2] net: phy: at803x: Change error to EINVAL for invalid MAC

2017-10-10 Thread Dan Murphy
Change the return error code to EINVAL if the MAC address is not valid in the set_wol function. Signed-off-by: Dan Murphy <dmur...@ti.com> --- v5 - No changes made v4 - Updated $subject to include the part number - https://www.mail-archive.com/netdev@vger.kernel.org/msg192424.h

Re: [PATCH v4 1/2] net: phy: DP83822 initial driver submission

2017-10-10 Thread Dan Murphy
Andrew Thanks for the review On 10/09/2017 02:12 PM, Andrew F. Davis wrote: > On 10/09/2017 11:59 AM, Dan Murphy wrote: >> Add support for the TI DP83822 10/100Mbit ethernet phy. >> >> The DP83822 provides flexibility to connect to a MAC through a >> standard M

Re: [PATCH v5 1/2] net: phy: DP83822 initial driver submission

2017-10-10 Thread Dan Murphy
+ >> +physcr_status = phy_read(phydev, MII_DP83822_PHYSCR); >> +if (physcr_status < 0) >> +return physcr_status; >> + >> +physcr_status |= DP83822_PHYSCR_INT_OE | >> DP83822_PHYSCR_INTEN; >> + > Don't want to be picky, but seeing extra blank line here. > Let me know if you want me to fix this up. Or if you will when you apply it. Dan -- -- Dan Murphy

Re: [PATCH] net: phy: DP83822 initial driver submission (fwd)

2017-10-05 Thread Dan Murphy
t; In-Reply-To: <20171003155316.12312-1-dmur...@ti.com> > TO: Dan Murphy <dmur...@ti.com> > CC: and...@lunn.ch, f.faine...@gmail.com, netdev@vger.kernel.org, Dan Murphy > <dmur...@ti.com> > CC: netdev@vger.kernel.org, Dan Murphy <dmur...@ti.com> > > Hi Dan

Re: [PATCH 2/3 v2] net: phy: DP83822 initial driver submission

2017-10-06 Thread Dan Murphy
ke a lock. The at803x needs to take the lock because it does not call into the genphy functions. I will submit a new version with the lock removed. Dan > Andrew > -- -- Dan Murphy

Re: [PATCH] net: phy: DP83822 initial driver submission

2017-10-03 Thread Dan Murphy
All On 10/03/2017 10:53 AM, Dan Murphy wrote: > Add support for the TI DP83822 10/100Mbit ethernet phy. > > The DP83822 provides flexibility to connect to a MAC through a > standard MII, RMII or RGMII interface. > I need to submit an additional patch to remove DP83822 f

[PATCH] net: phy: DP83822 initial driver submission

2017-10-03 Thread Dan Murphy
Add support for the TI DP83822 10/100Mbit ethernet phy. The DP83822 provides flexibility to connect to a MAC through a standard MII, RMII or RGMII interface. Datasheet: http://www.ti.com/product/DP83822I/datasheet Signed-off-by: Dan Murphy <dmur...@ti.com> --- drivers/net/phy/Kconfig

Re: [PATCH 2/3 v2] net: phy: DP83822 initial driver submission

2017-10-05 Thread Dan Murphy
pend(phydev); > > Releasing the lock before calling genphy_suspend() is not so nice. > Maybe add a version which assumes the lock has already been taken? > The marvell driver does not take a lock and calls genphy_suspend/resume so I am wondering if this driver needs to take a lock. The at803x needs to take the lock because it does not call into the genphy functions. Dan > Andrew > -- -- Dan Murphy

[PATCH 3/3 v2] net: phy: Change error to EINVAL for invalid MAC

2017-10-04 Thread Dan Murphy
Change the return error code to EINVAL if the MAC address is not valid in the set_wol function. Signed-off-by: Dan Murphy <dmur...@ti.com> --- v2 - There was no v1 on this patch this is new. drivers/net/phy/at803x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH 1/3 v2] net: phy: Remove TI DP83822 from DP83848 driver

2017-10-04 Thread Dan Murphy
Removing the DP83822 device from the DP83848 to support the TI DP83822 dedicated driver that will initially support WoL settings. Signed-off-by: Dan Murphy <dmur...@ti.com> --- v2 - There was no v1 on this patch this is new. drivers/net/phy/dp83848.c | 3 --- 1 file changed, 3 del

[PATCH 2/3 v2] net: phy: DP83822 initial driver submission

2017-10-04 Thread Dan Murphy
Add support for the TI DP83822 10/100Mbit ethernet phy. The DP83822 provides flexibility to connect to a MAC through a standard MII, RMII or RGMII interface. Datasheet: http://www.ti.com/product/DP83822I/datasheet Signed-off-by: Dan Murphy <dmur...@ti.com> --- v2 - Updated per co

[PATCH v3 3/3] net: phy: Change error to EINVAL for invalid MAC

2017-10-09 Thread Dan Murphy
Change the return error code to EINVAL if the MAC address is not valid in the set_wol function. Signed-off-by: Dan Murphy <dmur...@ti.com> --- v3 - No changes made v2 - There was no v1 on this patch this is new. drivers/net/phy/at803x.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH v3 2/3] net: phy: DP83822 initial driver submission

2017-10-09 Thread Dan Murphy
Add support for the TI DP83822 10/100Mbit ethernet phy. The DP83822 provides flexibility to connect to a MAC through a standard MII, RMII or RGMII interface. Datasheet: http://www.ti.com/product/DP83822I/datasheet Signed-off-by: Dan Murphy <dmur...@ti.com> --- v3 - Fixed WoL indicati

[PATCH v3 1/3] net: phy: Remove TI DP83822 from DP83848 driver

2017-10-09 Thread Dan Murphy
Removing the DP83822 device from the DP83848 to support the TI DP83822 dedicated driver that will initially support WoL settings. Signed-off-by: Dan Murphy <dmur...@ti.com> --- v3 - No changes made v2 - There was no v1 on this patch this is new. drivers/net/phy/dp83848.c | 3 ---

[PATCH] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-09 Thread Dan Murphy
this is controlled via the DT to indicate which phy mode is required. Or the part can be strapped to a certain interface. Data sheet can be found here: http://www.ti.com/product/DP83TC811S-Q1/description http://www.ti.com/product/DP83TC811R-Q1/description Signed-off-by: Dan Murphy <dmur...@ti.

Re: [PATCH] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-09 Thread Dan Murphy
t; soon after the reset. OK I will remove it. > >> + >> +return 0; >> +} >> + > >> +static struct phy_driver dp83811_driver[] = { >> +{ >> +.phy_id = DP83TC811_PHY_ID, >> +.phy_id_mask = 0xfff0, >> +.name = "TI DP83TC811", >> +.features = PHY_BASIC_FEATURES, >> +.flags = PHY_HAS_INTERRUPT, >> +.config_init = genphy_config_init, > > > I missed that I must have had the config init being called in my testing through the reset function. I will update. > Andrew > -- -- Dan Murphy

Re: [PATCH] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-09 Thread Dan Murphy
Andrew On 05/09/2018 08:58 AM, Andrew Lunn wrote: > On Wed, May 09, 2018 at 08:50:58AM -0500, Dan Murphy wrote: >> Andrew >> >> Thanks for the review >> >> On 05/09/2018 08:43 AM, Andrew Lunn wrote: >>>> +static int dp83811_config_aneg(struc

[PATCH v2] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-09 Thread Dan Murphy
this is controlled via the DT to indicate which phy mode is required. Or the part can be strapped to a certain interface. Data sheet can be found here: http://www.ti.com/product/DP83TC811S-Q1/description http://www.ti.com/product/DP83TC811R-Q1/description Signed-off-by: Dan Murphy <dmur...@ti.

[PATCH v3] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-11 Thread Dan Murphy
this is controlled via the DT to indicate which phy mode is required. Or the part can be strapped to a certain interface. Data sheet can be found here: http://www.ti.com/product/DP83TC811S-Q1/description http://www.ti.com/product/DP83TC811R-Q1/description Signed-off-by: Dan Murphy <dmur...@ti.

Re: [PATCH v3] net: phy: DP83TC811: Introduce support for the DP83TC811 phy

2018-05-11 Thread Dan Murphy
Andrew On 05/11/2018 01:30 PM, Andrew Lunn wrote: > On Fri, May 11, 2018 at 01:08:19PM -0500, Dan Murphy wrote: >> Add support for the DP83811 phy. >> >> The DP83811 supports both rgmii and sgmii interfaces. >> There are 2 part numbers for this the DP83TC811R d

[PATCH] net: phy: DP83811: Add support for the phy

2018-05-08 Thread Dan Murphy
/description Signed-off-by: Dan Murphy <dmur...@ti.com> --- drivers/net/phy/dp83822.c | 42 --- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c index 6e8a2a4f3a6e..5c379ff25dac 100644 --- a/d

Re: [PATCH] net: phy: DP83811: Add support for the phy

2018-05-08 Thread Dan Murphy
All On 05/08/2018 09:11 AM, Dan Murphy wrote: > Add support for the DP83811 phy by extending > the DP83822 driver to recognize the PHY IDs. > > The DP83811 supports both rgmii and sgmii interfaces. > There are 2 part numbers for this the DP83811R does not > reliably support t

Re: [PATCH] net: phy: DP83811: Add support for the phy

2018-05-08 Thread Dan Murphy
Andrew On 05/08/2018 11:49 AM, Andrew Lunn wrote: > On Tue, May 08, 2018 at 10:56:55AM -0500, Dan Murphy wrote: >> All >> >> On 05/08/2018 09:11 AM, Dan Murphy wrote: >>> Add support for the DP83811 phy by extending >>> the DP83822 driver to recognize th

Re: [PATCH] net: phy: DP83811: Add support for the phy

2018-05-08 Thread Dan Murphy
Florian On 05/08/2018 12:14 PM, Florian Fainelli wrote: > On 05/08/2018 10:13 AM, Dan Murphy wrote: >> Andrew >> >> On 05/08/2018 11:49 AM, Andrew Lunn wrote: >>> On Tue, May 08, 2018 at 10:56:55AM -0500, Dan Murphy wrote: >>>> All >>>> &g

[PATCH 2/2] net: phy: DP83TC811: Fix SGMII enable/disable

2018-06-27 Thread Dan Murphy
If SGMII was selected in the DT then the device should write the SGMII enable bit. If SGMII is not selected in the DT then the SGMII bit should be disabled. Signed-off-by: Dan Murphy --- arch/arm/configs/omap2plus_defconfig | 1 + drivers/net/phy/dp83tc811.c | 20

[PATCH 1/2] net: phy: DP83TC811: Add INT_STAT3

2018-06-27 Thread Dan Murphy
Add INT_STAT3 interrupt setting and clearing. Also fixed writing to INT_STAT2 when disabling the interrupts as there was a double write to INT_STAT1. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83tc811.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion

Re: [PATCH 2/2] net: phy: DP83TC811: Fix SGMII enable/disable

2018-06-28 Thread Dan Murphy
Andrew On 06/28/2018 03:20 AM, Andrew Lunn wrote: > On Wed, Jun 27, 2018 at 01:16:18PM -0500, Dan Murphy wrote: >> If SGMII was selected in the DT then the device should >> write the SGMII enable bit. >> >> If SGMII is not selected in the DT then the SGMII bit >>

Re: [PATCH 1/2] net: phy: DP83TC811: Add INT_STAT3

2018-06-28 Thread Dan Murphy
like a bug fix, and so should be in a patch of its own, for > net, not net-next. > Yes I was debating whether to include this change in the patch or have it stand alone for stable back port. I will pull it out and cc stable > Andrew > -- -- Dan Murphy

[PATCH] net: phy: DP83TC811: Fix diabling interrupts

2018-06-28 Thread Dan Murphy
Fix a bug where INT_STAT1 was written twice and INT_STAT2 was ignored when disabling interrupts. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83tc811.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/dp83tc811.c b/drivers/net/phy/dp83tc811.c index