Re: [PATCH v2 0/7] remove different PHY fixups

2021-03-30 Thread Fabio Estevam
Hi Andrew, On Tue, Mar 30, 2021 at 11:30 AM Andrew Lunn wrote: > Hi Fabio > > I think it should be merged, and we fixup anything which does break. > We are probably at the point where more is broken by not merging it > than merging it. Thanks for your feedback. I agree. Shawn wants to collect

Re: [PATCH v2 0/7] remove different PHY fixups

2021-03-30 Thread Fabio Estevam
ity to break old dtb's. Reviewed-by: Fabio Estevam Andrew, what do you think? Thanks

Re: [PATCH AUTOSEL 5.11 05/67] can: flexcan: add CAN wakeup function for i.MX8QM

2021-02-24 Thread Fabio Estevam
Hi Sasha, On Wed, Feb 24, 2021 at 10:35 PM Sasha Levin wrote: > > From: Joakim Zhang > > [ Upstream commit 812f0116c66a3ebaf0b6062226aa85574dd79f67 ] > > The System Controller Firmware (SCFW) is a low-level system function > which runs on a dedicated Cortex-M core to provide power, clock, and >

Re: [PATCH v1] ARM: imx: mach-imx6ul: remove 14x14 EVK specific PHY fixup

2020-12-09 Thread Fabio Estevam
i-ref"; > ... > }; > > The board which was referred in the initial patch is already fixed. > See: arch/arm/boot/dts/imx6ul-14x14-evk.dtsi > > Signed-off-by: Oleksij Rempel Reviewed-by: Fabio Estevam

Re: net: fec: rx descriptor ring out of order

2020-11-12 Thread Fabio Estevam
On Thu, Nov 12, 2020 at 8:56 AM Kegl Rohit wrote: > Not so easily possible because there are custom drivers and some > kernel modifications in the mix. imx6 is a well supported SoC in mainline. You should try a mainline kernel, otherwise we cannot help you.

Re: net: fec: rx descriptor ring out of order

2020-11-11 Thread Fabio Estevam
On Wed, Nov 11, 2020 at 11:27 AM Kegl Rohit wrote: > > Hello! > > We are using a imx6q platform. > The fec interface is used to receive a continuous stream of custom / > raw ethernet packets. The packet size is fixed ~132 bytes and they get > sent every 250µs. > > While testing I observed spontane

Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-11 Thread Fabio Estevam
Hi David, On Wed, Nov 11, 2020 at 2:52 PM David Laight wrote: > I've seen a 'fec' ethernet block in a freescale DSP. > IIRC it is a fairly simple block - won't be doing out-of-order writes. > > The imx6q seems to be arm based. This is correct. > I'm guessing that means it doesn't do cache cohe

Re: PHY reset question

2020-10-07 Thread Fabio Estevam
Hi Oleksij, On Tue, Oct 6, 2020 at 5:05 AM Oleksij Rempel wrote: > > Hello PHY experts, > > Short version: > what is the proper way to handle the PHY reset before identifying PHY? > > Long version: > I stumbled over following issue: > If PHY reset is registered within PHY node. Then, sometimes,

Re: [PATCH 1/2] net: mdiobus: reset deassert delay

2020-07-28 Thread Fabio Estevam
Hi Bruno, On Tue, Jul 28, 2020 at 6:02 AM Bruno Thomsen wrote: > > The current reset logic only has a delay during assert. > This reuses the delay value as deassert delay to ensure > PHYs are ready for commands. Delays are typically needed > when external hardware slows down reset release with a

Re: fec: micrel: Ethernet PHY type ID auto-detection issue

2020-07-17 Thread Fabio Estevam
Hi Bruno, Adding netdev and the Ethernet PHY folks. On Fri, Jul 17, 2020 at 12:48 PM Bruno Thomsen wrote: > > Hi > > I have been having issues with Ethernet PHY type ID > auto-detection when changing from the deprecated fec > phy-reset-{gpios,duration,post-delay} properties to the > modern mdio

[PATCH net-next 2/2] dt-bindings: dp83869: Fix the type of device

2020-07-08 Thread Fabio Estevam
DP83869 is an Ethernet PHY, not a charger, so fix the documentation accordingly. Fixes: 4d66c56f7efe ("dt-bindings: net: dp83869: Add TI dp83869 phy") Signed-off-by: Fabio Estevam --- Documentation/devicetree/bindings/net/ti,dp83869.yaml | 2 +- 1 file changed, 1 insertion(+),

[PATCH net-next 1/2] dt-bindings: dp83867: Fix the type of device

2020-07-08 Thread Fabio Estevam
DP83867 is an Ethernet PHY, not a charger, so fix the documentation accordingly. Fixes: 74ac28f16486 ("dt-bindings: dp83867: Convert DP83867 to yaml") Signed-off-by: Fabio Estevam --- Documentation/devicetree/bindings/net/ti,dp83867.yaml | 2 +- 1 file changed, 1 insertion(+),

Re: [EXT] Re: [PATCH v5 3/3] ARM: imx6plus: optionally enable internal routing of clk_enet_ref

2020-07-06 Thread Fabio Estevam
On Mon, Jul 6, 2020 at 2:30 AM Andy Duan wrote: > > From: Sven Van Asbroeck Sent: Sunday, July 5, 2020 > 11:34 PM > > > > ext phy-| \ > > | | > > enet_ref-o--|M |pad--| \ > >| |_/ | | > >|

Re: [PATCH v5 3/3] ARM: imx6plus: optionally enable internal routing of clk_enet_ref

2020-07-02 Thread Fabio Estevam
Hi Sven, On Thu, Jul 2, 2020 at 2:53 PM Sven Van Asbroeck wrote: > + /* > +* On imx6 plus, enet_ref from ANATOP/CCM can be internally routed to > +* be the PTP clock source, instead of having to be routed through > +* pads. > +*/ > + if (of_machine_is_

Re: [BUG] fec mdio times out under system stress

2019-08-12 Thread Fabio Estevam
Hi Russell, On Sun, Aug 11, 2019 at 10:37 AM Russell King - ARM Linux admin wrote: > > Hi Fabio, > > When I woke up this morning, I found that one of the Hummingboards > had gone offline (as in, lost network link) during the night. > Investigating, I find that the system had gone into OOM, and at

Re: [PATCH] net: fec: generate warning when using deprecated phy reset

2019-07-18 Thread Fabio Estevam
On Thu, Jul 18, 2019 at 1:49 PM Lucas Stach wrote: > > Am Donnerstag, den 18.07.2019, 10:34 -0400 schrieb Sven Van Asbroeck: > > Allowing the fec to reset its PHY via the phy-reset-gpios > > devicetree property is deprecated. To improve developer > > awareness, generate a warning whenever the depr

[PATCH v3 net-next] net: fec_main: Use dev_err() instead of pr_err()

2019-06-07 Thread Fabio Estevam
dev_err() is more appropriate for printing error messages inside drivers, so switch to dev_err(). Signed-off-by: Fabio Estevam --- Changes since v2: - Use dev_err() instead of netdev_err() - Andy drivers/net/ethernet/freescale/fec_main.c | 9 + 1 file changed, 5 insertions(+), 4

[PATCH net-next] net: fec: Do not use netdev messages too early

2019-06-06 Thread Fabio Estevam
board. Signed-off-by: Fabio Estevam --- drivers/net/ethernet/freescale/fec_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 848defa33d3a..2ee72452ca76 100644 --- a/drivers

[PATCH v3 net-next] net: fec_ptp: Use dev_err() instead of pr_err()

2019-06-05 Thread Fabio Estevam
dev_err() is more appropriate for printing error messages inside drivers, so switch to dev_err(). Signed-off-by: Fabio Estevam Acked-by: Fugang Duan --- Changes since v2: - Made it a standalone patch - Collected Andy's Ack drivers/net/ethernet/freescale/fec_ptp.c | 2 +- 1 file chang

[PATCH net-next v2 1/2] net: fec_main: Use netdev_err() instead of pr_err()

2019-06-03 Thread Fabio Estevam
netdev_err() is more appropriate for printing error messages inside network drivers, so switch to netdev_err(). Signed-off-by: Fabio Estevam --- Changes since v1: - Split the changes from fec_main and fec_ptp in two different patches drivers/net/ethernet/freescale/fec_main.c | 8 1

[PATCH net-next v2 2/2] net: fec_ptp: Use dev_err() instead of pr_err()

2019-06-03 Thread Fabio Estevam
dev_err() is more appropriate for printing error messages inside drivers, so switch to dev_err(). Signed-off-by: Fabio Estevam --- Changes since v1: - Use dev_err() instead of netdev_err() - Andy drivers/net/ethernet/freescale/fec_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH net-next] net: fec: Use netdev_err() instead of pr_err()

2019-06-03 Thread Fabio Estevam
netdev_err() is more appropriate for printing error messages inside network drivers, so switch to netdev_err(). Signed-off-by: Fabio Estevam --- drivers/net/ethernet/freescale/fec_main.c | 8 drivers/net/ethernet/freescale/fec_ptp.c | 2 +- 2 files changed, 5 insertions(+), 5

Re: [PATCH 01/11] net: phy: Add phy_sysfs_create_links helper function

2019-05-27 Thread Fabio Estevam
Hi Ioana, On Mon, May 27, 2019 at 6:47 PM Ioana Ciornei wrote: > > From: Vladimir Oltean > > This is a cosmetic patch that wraps the operation of creating sysfs > links between the netdev->phydev and the phydev->attached_dev. > > This is needed to keep the indentation level in check in a follow-

[PATCH] dt-bindings: dsa: Fix typo in "probed"

2018-11-23 Thread Fabio Estevam
The correct form is "can be probed", so fix the typo. Signed-off-by: Fabio Estevam --- Documentation/devicetree/bindings/net/dsa/dsa.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.txt b/Documentation/devicetree/bi

[PATCH net-next] net: phy: fixed-phy: Make the error path simpler

2018-06-23 Thread Fabio Estevam
From: Fabio Estevam When platform_device_register_simple() fails we can return the error immediately instead of jumping to the 'err_pdev' label. This makes the error path a bit simpler. Signed-off-by: Fabio Estevam --- drivers/net/phy/fixed_phy.c | 7 ++- 1 file changed, 2

[PATCH 2/2] net: fec: Add a SPDX identifier

2018-05-20 Thread Fabio Estevam
From: Fabio Estevam Currently there is no license information in the header of this file. The MODULE_LICENSE field contains ("GPL"), which means GNU Public License v2 or later, so add a corresponding SPDX license identifier. Signed-off-by: Fabio Estevam --- drivers/net/ethernet

[PATCH 1/2] net: fec: ptp: Switch to SPDX identifier

2018-05-20 Thread Fabio Estevam
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam --- drivers/net/ethernet/freescale/fec_ptp.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/ethernet/freescale

[PATCH net-next] dt-bindings: dsa: Remove unnecessary #address/#size-cells

2018-05-07 Thread Fabio Estevam
From: Fabio Estevam If the example binding is used on a real dts file, the following DTC warning is seen with W=1: arch/arm/boot/dts/imx6q-b450v3.dtb: Warning (avoid_unnecessary_addr_size): /mdio-gpio/switch@0: unnecessary #address-cells/#size-cells without "ranges" or

Re: [PATCH v2 net-next 1/2] net: dsa: mv88e6xxx: Use the DT IRQ trigger mode

2018-03-25 Thread Fabio Estevam
Hi Andrew, On Sun, Mar 25, 2018 at 5:56 PM, Andrew Lunn wrote: > By calling request_threaded_irq() with the flag IRQF_TRIGGER_FALLING > we override the trigger mode provided in device tree. And the > interrupt is actually active low, which is what all the current device > tree descriptions use. >

Re: [v2] net: gianfar_ptp: move set_fipers() to spinlock protecting area

2018-01-09 Thread Fabio Estevam
. > > Signed-off-by: Yangbo Lu > --- > Changes for v2: > - explained why spinlock was needed in commit message. Thanks for improving the commit log: Reviewed-by: Fabio Estevam

Re: [PATCH] net: gianfar_ptp: move set_fipers() to spinlock protecting area

2018-01-08 Thread Fabio Estevam
On Mon, Jan 8, 2018 at 8:13 AM, Yangbo Lu wrote: > set_fipers() calling should be protected by spinlock. > This patch is to move set_fipers() to spinlock protecting > area in ptp_gianfar_adjtime() function. It would be nice to explay why. Thanks

Re: [PATCH net,stable 1/1] net: fec: defer probe if regulator is not ready

2018-01-02 Thread Fabio Estevam
Hi Andy, On Tue, Jan 2, 2018 at 7:57 AM, Fugang Duan wrote: > @@ -3576,6 +3580,7 @@ static int fec_enet_get_irq_cnt(struct platform_device > *pdev) > of_node_put(phy_node); > failed_ioremap: > free_netdev(ndev); > + dev_id--; This seems to be a different fix and should b

[PATCH] dt-bindings: fec: Make the phy-reset-gpio polarity explicit

2017-12-08 Thread Fabio Estevam
From: Fabio Estevam The GPIO polarity passed to phy-reset-gpio is ignored by the FEC driver and it is assumed to be active low. It can be active high only when the 'phy-reset-active-high' property is present. The current examples pass active high polarity and work fine, but in order

Re: [PATCH net-next] mdio_bus: Remove unneeded gpiod NULL check

2017-07-19 Thread Fabio Estevam
Hi Andrew, On Tue, Jul 18, 2017 at 10:32 AM, Andrew Lunn wrote: > http://elixir.free-electrons.com/linux/latest/source/include/linux/gpio/consumer.h#L345 > static inline void gpiod_set_value_cansleep(struct gpio_desc *desc, int value) > { > /* GPIO can never have been requested */ >

Re: [PATCH net-next] mdio_bus: Remove unneeded gpiod NULL check

2017-07-18 Thread Fabio Estevam
On Tue, Jul 18, 2017 at 10:02 AM, Sergei Shtylyov wrote: >No, it does -- devm_gpiod_get_optinal() will return NULL in that case, > bus->reset_gpio will remanin NULL, and you're removing the NULL checks > around the gpiod_set_value_cansleep() calls. Perhaps it's the problem in the > GPIO suppo

Re: [PATCH net-next] mdio_bus: Remove unneeded gpiod NULL check

2017-07-18 Thread Fabio Estevam
On Tue, Jul 18, 2017 at 9:48 AM, Sergei Shtylyov wrote: > On 07/18/2017 03:39 PM, Fabio Estevam wrote: > >>>Won't this result in kernel WARNING when GPIO is disabled? > > >GPIO support, I was going to type... > >> Not sure if I understood your point,

Re: [PATCH net-next] mdio_bus: Remove unneeded gpiod NULL check

2017-07-18 Thread Fabio Estevam
On Tue, Jul 18, 2017 at 6:56 AM, Sergei Shtylyov wrote: >Won't this result in kernel WARNING when GPIO is disabled? Not sure if I understood your point, but gpiod_set_value_cansleep() is a no-op when the gpiod is NULL.

[PATCH net-next] mdio_bus: Remove unneeded gpiod NULL check

2017-07-17 Thread Fabio Estevam
From: Fabio Estevam The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver. Signed-off-by: Fabio Estevam --- drivers/net/phy/mdio_bus.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/mdio_bus.c b/drivers

Re: [PATCH] igb: fix unused igb_deliver_wake_packet() warning when CONFIG_PM=n

2017-07-12 Thread Fabio Estevam
On Wed, Jul 12, 2017 at 6:09 PM, Dave Hansen wrote: > > From: Dave Hansen > > I'm seeing warnings on kernel configurations where CONFIG_PM is > disabled. It happens in 4.12, at least: > > drivers/ethernet/intel/igb/igb_main.c:7988:13: warning: > 'igb_deliver_wake_packet' defined but not used [-

Re: [PATCH] fsl/fman: add dependency on HAS_DMA

2017-06-26 Thread Fabio Estevam
On Mon, Jun 26, 2017 at 12:12 PM, Madalin Bucur wrote: > A previous commit inserted a dependency on DMA API that requires > HAS_DMA to be added in Kconfig. It would be nice to specify the commit that caused this.

Re: [PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272

2017-06-10 Thread Fabio Estevam
On Sat, Jun 10, 2017 at 5:16 PM, David Miller wrote: > From: Fabio Estevam > Date: Fri, 9 Jun 2017 22:37:22 -0300 > >> From: Fabio Estevam >> >> Commit 2b30842b23b9 ("net: fec: Clear and enable MIB counters on imx51") >> introduced fec_enet_clea

[PATCH v2] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272

2017-06-10 Thread Fabio Estevam
From: Fabio Estevam Commit 2b30842b23b9 ("net: fec: Clear and enable MIB counters on imx51") introduced fec_enet_clear_ethtool_stats(), but missed to add a stub for the CONFIG_M5272=y case, causing build failure for the m5272c3_defconfig. Add the missing empty stub to fix the bui

[PATCH] net: fec: Add a fec_enet_clear_ethtool_stats() stub for CONFIG_M5272

2017-06-09 Thread Fabio Estevam
From: Fabio Estevam Commit 2b30842b23b9 ("net: fec: Clear and enable MIB counters on imx51") introduced fec_enet_clear_ethtool_stats(), but missed to add a stub for the CONFIG_M5272=y case, causing build failure for the m5272c3_defconfig. Add the missing empty stub to fix the bui

Re: [PATCH net-next] net: fec: Clear and enable MIB counters on imx51

2017-06-09 Thread Fabio Estevam
Hi Paul, On Fri, Jun 9, 2017 at 10:01 PM, Paul Gortmaker wrote: > Seems to break one of the automated linux-next builds: > > http://kisskb.ellerman.id.au/kisskb/buildresult/13057702/ > > A mindless automated bisect reports: > > 2b30842b23b9e6796c7bd5f0916fd2ebf6b7d633 is the first bad commit > c

Re: [PATCH net-next] net: fec: Clear and enable MIB counters on imx51

2017-06-07 Thread Fabio Estevam
t; > Signed-off-by: Andrew Lunn Thanks for the fix: Reviewed-by: Fabio Estevam

Re: [PATCH 1/2] ARM: dts: imx6ul-14x14-evk: Add ksz8081 phy properties

2017-05-30 Thread Fabio Estevam
> > Signed-off-by: Leonard Crestez Reviewed-by: Fabio Estevam

Re: [PATCH 2/2] net: phy: micrel: Restore led_mode and clk_sel on resume

2017-05-30 Thread Fabio Estevam
Hi Leonard, On Tue, May 30, 2017 at 2:34 PM, Leonard Crestez wrote: > These bits seem to be lost after a suspend/resume cycle so just set them > again. > > This patch fixes ethernet suspend/resume on imx6ul-14x14-evk boards. > > Signed-off-by: Leonard Crestez When you send a v2 addressing Flori

Re: [PATCH] net: can: usb: gs_usb: Fix buffer on stack

2017-04-22 Thread Fabio Estevam
On Sat, Apr 22, 2017 at 1:56 PM, Maksim Salau wrote: > Allocate buffer on HEAP instead of STACK for a local structure > that is to be sent using usb_control_msg(). > > Signed-off-by: Maksim Salau > --- > drivers/net/can/usb/gs_usb.c | 17 - > 1 file changed, 12 insertions(+), 5 d

Re: IMX6 FEC connection drops occasionally with 'MDIO read timeout'

2017-04-12 Thread Fabio Estevam
Hi Tim, On Wed, Apr 12, 2017 at 1:15 PM, Tim Harvey wrote: > > Andrew, > > Thanks for the reply. Your talking about suspend/resume power > management right? The users reporting this were not using > suspend/resume. > > With regards to clock are you talking about the IPG clock? Is there > any othe

Re: [PATCH net 1/1] net: fec: fix multicast filtering hardware setup

2017-02-10 Thread Fabio Estevam
On Fri, Feb 10, 2017 at 3:54 AM, Andy Duan wrote: > Fix hardware setup of multicast address hash: > - Never clear the hardware hash (to avoid packet loss) > - Construct the hash register values in software and then write once > to hardware > > Signed-off-by: Fugang Duan > Signed-off-by: Rui Sousa

Re: [PATCH net v2 1/3] net: phy: Fix PHY module checks

2017-02-08 Thread Fabio Estevam
: phy: Fix lack of reference count on PHY driver") > Signed-off-by: Florian Fainelli This fixes the kernel crash: Tested-by: Fabio Estevam

Re: Kernel crashes in phy_attach_direct()

2017-02-08 Thread Fabio Estevam
On Wed, Feb 8, 2017 at 12:40 PM, Andrew Lunn wrote: > And i guess you don't have a specific PHY driver for you PHYs. You are > using the generic PHY driver? Yes, I am: Generic PHY 63fec000.ethernet-1:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=63fec000.ethernet-1:00, irq=-1) > > Cou

Re: Kernel crashes in phy_attach_direct()

2017-02-08 Thread Fabio Estevam
Hi Andrew, On Wed, Feb 8, 2017 at 12:28 PM, Andrew Lunn wrote: > Hi Fabio > > Could you try reverting: > > commit cafe8df8b9bc9aa3dffa827c1a6757c6cd36f657 > Author: Mao Wenan > Date: Tue Jan 31 18:46:43 2017 -0800 > > net: phy: Fix lack of reference count on PHY driver > > There is cu

Kernel crashes in phy_attach_direct()

2017-02-08 Thread Fabio Estevam
Hi, I am getting the following kernel crash with linux-next 20170208 running on a imx53-qsb board. Any ideas? Thanks Unable to handle kernel NULL pointer dereference at virtual address 0008 pgd = c0004000 [0008] *pgd= Internal error: Oops: 5 [#1] SMP ARM Modules linked in:

Re: [patch net v2] net: fec: fix compile with CONFIG_M5272

2016-12-05 Thread Fabio Estevam
tions do not exist, which results into build errors. > > Fix that by adding explicit handling of !defined(CONFIG_M5272) case. > > Fixes: 4dfb80d18d05 ("net: fec: cache statistics while device is down") > Signed-off-by: Nikita Yushchenko Looks better now: Reviewed-by: Fabio Estevam

[PATCH net-next] net: phy: at803x: Add a definition for PHY ID mask

2016-10-26 Thread Fabio Estevam
Add a definition for PHY ID mask for improving code readability. Signed-off-by: Fabio Estevam --- drivers/net/phy/at803x.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index f279a89..dd47b69 100644 --- a

Re: commit-3ac72b7b63d5 breaks networking on iMX28

2016-10-21 Thread Fabio Estevam
Hi Eric, On Fri, Oct 21, 2016 at 11:39 AM, Eric Nelson wrote: > Reading the i.MX28 reference manual, it appears that this SoC doesn't > have the RACC bit, and I missed removal of the FEC_QUIRK_HAS_RACC flag. On MX28 the register is called HW_ENET_MAC_IPACCRXCONF. I sent a patch that fixes the

[PATCH net] net: fec: Call swap_buffer() prior to IP header alignment

2016-10-21 Thread Fabio Estevam
From: Fabio Estevam Commit 3ac72b7b63d5 ("net: fec: align IP header in hardware") breaks networking on mx28. There is an erratum on mx28 (ENGR121613 - ENET big endian mode not compatible with ARM little endian) that requires an additional byte-swap operation to workaround this problem

Re: commit-3ac72b7b63d5 breaks networking on iMX28

2016-10-21 Thread Fabio Estevam
Hi Henri, 2016-10-21 7:19 GMT-02:00 Henri Roosen : > Hi, > > Unfortunately commit-3ac72b7b63d5 "net: fec: align IP header in > hardware" breaks networking on an iMX28 system. > > The commit seems valid for iMX6, where it is tested okay and solves the > unaligned accesses. > > On iMX28 I still see

Re: [PATCH] net: trivial: fix fsl fec_main mdio write return value

2016-09-26 Thread Fabio Estevam
Hi Albert, On Mon, Sep 26, 2016 at 4:11 PM, Albert ARIBAUD (3ADEV) wrote: > If the MDIO enf-of-transfer wait loop does not time out, > 0 should be returned to the caller through ret, but ret > was not reset to 0 after receiving the return value of > pm_runtime_get_sync(). Reset ret when no time o

[PATCH v3] net: lpc_eth: Check clk_prepare_enable() error

2016-08-23 Thread Fabio Estevam
clk_prepare_enable() may fail, so we should better check its return value and propagate it in the case of failure While at it, replace __lpc_eth_clock_enable() with a plain clk_prepare_enable/clk_disable_unprepare() call in order to simplify the code. Signed-off-by: Fabio Estevam Acked-by

[PATCH v2] net: lpc_eth: Check clk_prepare_enable() error

2016-08-23 Thread Fabio Estevam
From: Fabio Estevam clk_prepare_enable() may fail, so we should better check its return value and propagate it in the case of failure While at it, replace __lpc_eth_clock_enable() with a plain clk_prepare_enable/clk_disable_unprepare() call in order to simplify the code. Signed-off-by: Fabio

[PATCH] net: lpc_eth: Check clk_prepare_enable() error

2016-08-22 Thread Fabio Estevam
From: Fabio Estevam clk_prepare_enable() may fail, so we should better check its return value and propagate it in the case of failure. Signed-off-by: Fabio Estevam --- drivers/net/ethernet/nxp/lpc_eth.c | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions(-) diff

[PATCH] net: lpc_eth: Remove unused 'pldat' variable

2016-07-04 Thread Fabio Estevam
Since commit f786f3564c4f02d5026 ("net: ethernet: lpc_eth: use phydev from struct net_device") the 'pldat' variable became unused, so just remove it. Reported-by: Olof's autobuilder Signed-off-by: Fabio Estevam --- drivers/net/ethernet/nxp/lpc_eth.c | 1 - 1 file cha

Re: [PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API

2016-05-31 Thread Fabio Estevam
On Tue, May 31, 2016 at 2:17 PM, George G. Davis wrote: > Convert the i.MX FEC driver and DT files to use the GPIOD API > which automatically handles GPIO polarity. > > Signed-off-by: George G. Davis In order to avoid breaking old dtb's a property called 'phy-reset-active-high' has been introduc

[PATCH] Revert "phy: add support for a reset-gpio specification"

2016-05-18 Thread Fabio Estevam
9.371540] Unable to handle kernel paging request at virtual address 001c [9.371540] pc = d0320926, ra = 903209d1 [9.375358] Oops: sig: 11 [#1] This reverts commit da47b4572056487fd7941c26f73b3e8815ff712a. Reported-by: Guenter Roeck Signed-off-by: Fabio Estevam --- Documentation/

[PATCH net-next] phy: micrel: Use MICREL_PHY_ID_MASK definition

2016-05-11 Thread Fabio Estevam
From: Fabio Estevam Replace the hardcoded mask 0x00f0 with MICREL_PHY_ID_MASK for better readability. Suggested-by: Andrew Lunn Signed-off-by: Fabio Estevam --- drivers/net/phy/micrel.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git

Re: [PATCH net-next] tcp: fix lockdep splat in tcp_snd_una_update()

2016-05-03 Thread Fabio Estevam
and new u64_stats_update_begin_raw() > and u64_stats_update_end_raw methods. > > Fixes: c10d9310edf5 ("tcp: do not assume TCP code is non preemptible") > Reported-by: Fabio Estevam > Diagnosed-by: Francois Romieu > Signed-off-by: Eric Dumazet Thanks for the fix, Eric and Francois! This allows me to do NFS boot again: Tested-by: Fabio Estevam

Re: Cannot use NFS with linux-next 20160429

2016-05-03 Thread Fabio Estevam
Hi Chuck, On Sun, May 1, 2016 at 4:52 PM, Chuck Lever wrote: > Hi Fabio- > >> On Apr 29, 2016, at 7:18 PM, Fabio Estevam wrote: >> >> Hi, >> >> NFS is not working on a imx6q-sabresd board running linux-next 20160429: >> >> [ 15.753317] #0:

Cannot use NFS with linux-next 20160429

2016-04-29 Thread Fabio Estevam
Hi, NFS is not working on a imx6q-sabresd board running linux-next 20160429: [ 15.753317] #0: wm8962-audio [ 15.759437] Root-NFS: no NFS server address [ 15.763649] VFS: Unable to mount root fs via NFS, trying floppy. [ 15.774223] VFS: Cannot open root device "nfs" or unknown-block(2,0)

[PATCH] fec: Do not access unexisting register in Coldfire

2016-03-31 Thread Fabio Estevam
From: Fabio Estevam Commit 55cd48c821de ("net: fec: stop the "rcv is not +last, " error messages") introduces a write to a register that does not exist in Coldfire. Move the FEC_FTRL register access inside the FEC_QUIRK_HAS_RACC 'if' block, so that we guarantee i

Re: [PATCH] net: fec: stop the "rcv is not +last, " error messages

2016-03-31 Thread Fabio Estevam
Hi Greg, On Wed, Mar 30, 2016 at 10:17 PM, Greg Ungerer wrote: > Yes, that fixes it. Will you carry this change? Thanks for confirming. Yes, I will submit it later today;

Re: [PATCH] net: fec: stop the "rcv is not +last, " error messages

2016-03-31 Thread Fabio Estevam
Hi Andy, On Wed, Mar 30, 2016 at 10:41 PM, Fugang Duan wrote: > > Fabio, we cannot do it like this that may cause confused for the quirk flag > "FEC_QUIRK_HAS_RACC". We can treat FEC_QUIRK_HAS_RACC flag as "this is a non-Coldfire SoC". > > > Hi, Greg, > > The header file fec.h define the FEC_F

Re: [PATCH] net: fec: stop the "rcv is not +last, " error messages

2016-03-30 Thread Fabio Estevam
Hi Greg, On Wed, Mar 30, 2016 at 12:24 AM, Greg Ungerer wrote: > Hi Troy, > > Commit 55cd48c8 ('net: fec: stop the "rcv is not +last, " error > messages') adds a write to a register that is not present in all > implementations of the FEC hardware module. None of the ColdFire > SoC parts with the

Re: NFS mount crashes on linux-next 20160307

2016-03-07 Thread Fabio Estevam
On Mon, Mar 7, 2016 at 3:23 PM, Fabio Estevam wrote: > Hi, > > Not able to NFS mount on a mx6sx-sdb board running linux-next 20160307: Ops, I was using the wrong device tree. Sorry for the noise.

NFS mount crashes on linux-next 20160307

2016-03-07 Thread Fabio Estevam
Hi, Not able to NFS mount on a mx6sx-sdb board running linux-next 20160307: [6.618638] devtmpfs: mounted [6.623340] Freeing unused kernel memory: 1024K (c0c0 - c0d0) [6.899625] Unable to handle kernel NULL pointer dereference at virtual address 0001 [6.907828] Unable t

Re: [PATCH] net: fec: Add "phy-reset-active-low" property to DT

2016-03-02 Thread Fabio Estevam
On Wed, Mar 2, 2016 at 5:05 PM, Bernhard Walle wrote: > Indeed, you're correct. > > Should I send a new patch or a patch that corrects my first patch? > Because it already is in linux-next. As your patch is already in linux-next you should send an incremental patch then. Thanks

Re: [PATCH] net: smc911x: convert pxa dma to dmaengine

2016-02-23 Thread Fabio Estevam
t a try it would be great. > > For reference, the patch is here : https://lkml.org/lkml/2015/11/30/768 I finally got access to a mx53ard board, applied your patch and managed to NFS boot without issues: [1.739281] smsc911x f400.lan9220 eth0: SMSC911x/921x identified at 0xe0a8, IRQ: 207 Tested-by: Fabio Estevam

Re: [PATCH] net: jme: fix suspend/resume on JMC260

2016-02-22 Thread Fabio Estevam
On Mon, Feb 22, 2016 at 9:32 PM, Diego Viola wrote: > Signed-off-by: Diego Viola You should write a commit log.

Re: [PATCH v2] phy: marvell: Fix and unify reg-init behavior

2016-02-15 Thread Fabio Estevam
On Mon, Feb 15, 2016 at 6:01 PM, Clemens Gruber wrote: > +static int marvell_config_init(struct phy_device *phydev) > +{ > + int err; > + > + /* Set registers from marvell,reg-init DT property */ > + err = marvell_of_reg_init(phydev); > + if (err < 0) > + ret

Re: [PATCH v2] net: fec: Add "phy-reset-active-low" property to DT

2016-02-12 Thread Fabio Estevam
On Fri, Feb 12, 2016 at 1:20 PM, Rob Herring wrote: > This is what the gpio flags are for. Why can't you use that? This has already been discussed in v1: https://lkml.org/lkml/2016/2/8/867

Re: [PATCH v2] net: fec: Add "phy-reset-active-low" property to DT

2016-02-09 Thread Fabio Estevam
Hi Bernhard, On Tue, Feb 9, 2016 at 6:01 PM, Bernhard Walle wrote: > We need that for a custom hardware that needs the reverse reset > sequence. > > Signed-off-by: Bernhard Walle Looks good: Reviewed-by: Fabio Estevam

Re: [PATCH] net: emac: emac gigabit ethernet controller driver

2015-12-09 Thread Fabio Estevam
On Wed, Dec 9, 2015 at 6:09 PM, Timur Tabi wrote: >> +/* set MAC address */ >> +void emac_mac_addr_clear(struct emac_adapter *adpt, u8 *addr) >> +{ >> + u32 sta; >> + >> + /* for example: 00-A0-C6-11-22-33 >> +* 0<-->C6112233, 1<-->00A0. >> +*/ > > /* > * Multi-line c

Re: [PATCH] I.MX6: Fix Ethernet PHY mode on Ventana boards

2015-12-07 Thread Fabio Estevam
On Mon, Dec 7, 2015 at 10:56 AM, Krzysztof Hałasa wrote: > Gateworks Ventana boards seem to need "RGMII-ID" (internal delay) > PHY mode, instead of simple "RGMII", for their Marvell 88E1510 > transceiver. Otherwise, the Ethernet MAC doesn't work with Marvell PHY > driver (TX doesn't seem to work c

Re: [PATCH 2/3] net: fec: convert to using gpiod framework

2015-11-30 Thread Fabio Estevam
On Mon, Nov 30, 2015 at 9:32 AM, Lothar Waßmann wrote: > - gpio_set_value_cansleep(phy_reset, 1); > + gpiod_set_value_cansleep(phy_reset, 1); This will break some existing DTBs. Currently the fec driver does not care whether 'phy-reset-gpios' is active low or active high. (Yes, it

Re: BUG: fsl FEC ethernet tx checksum offloading doesn't work with RMII interface

2015-10-29 Thread Fabio Estevam
On Wed, Oct 28, 2015 at 10:36 AM, David Jander wrote: > I can search further down, but 4.1 is also broken. > Are there specific changes or versions you are suspicious of? I was just trying to understand if this was a regression or if it has always been broken. -- To unsubscribe from this list: s

Re: BUG: fsl FEC ethernet tx checksum offloading doesn't work with RMII interface

2015-10-28 Thread Fabio Estevam
On Wed, Oct 28, 2015 at 9:19 AM, David Jander wrote: > Sorry, I somehow assumed it was obvious I'd report against latest mainline... > I'm on 4.3-rc7. Are you able to find out a previous kernel version that does not exhibit this failure? -- To unsubscribe from this list: send the line "unsubscri

[PATCH] fec: Use gpio_set_value_cansleep()

2015-10-28 Thread Fabio Estevam
From: Fabio Estevam We are in a context where we can sleep, and the FEC PHY reset gpio may be on an I2C expander. Use the cansleep() variant when setting the GPIO value. Based on a patch from Russell King for pci-mvebu.c. Signed-off-by: Fabio Estevam --- drivers/net/ethernet/freescale

Re: [RFC PATCH 1/3] net: dsa: Use devm_ prefixed allocations

2015-09-30 Thread Fabio Estevam
On Wed, Sep 30, 2015 at 5:21 AM, Neil Armstrong wrote: > To simplify and prevent memory leakage when unbinding, use > the devm_ memory allocation calls. > > Signed-off-by: Neil Armstrong > --- > net/dsa/dsa.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/net/dsa/

Re: Poor IPv6 TCP performance in 4.3-rc3

2015-09-29 Thread Fabio Estevam
ta. Does this patch help? https://patchwork.ozlabs.org/patch/523632/ It was suggested in the following thread: https://lkml.org/lkml/2015/9/29/258 and it seems to have fixed the performance issue. Regards, Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe netdev"

[PATCH] net: fec: Remove unneeded FEATURES_NEED_QUIESCE definition

2015-09-25 Thread Fabio Estevam
From: Fabio Estevam There is no need to have FEATURES_NEED_QUIESCE defined as we can simply use NETIF_F_RXCSUM instead as done in other parts of the driver. Signed-off-by: Fabio Estevam --- drivers/net/ethernet/freescale/fec_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

Re: [PATCH net-next] net: Initialize table in fib result

2015-09-16 Thread Fabio Estevam
Sergey Senozhatsky > Reported-by: Richard Alpe > Reported-by: Fabio Estevam > Signed-off-by: David Ahern Thanks, David. I am able to NFS boot again: Tested-by: Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message t

Re: [linux-next] oops in ip_route_input_noref

2015-09-16 Thread Fabio Estevam
On Wed, Sep 16, 2015 at 6:24 AM, Sergey Senozhatsky wrote: > added by b7503e0cdb5dbec5d201aa69dc14679b5ae8 > > net: Add FIB table id to rtable > > Add the FIB table id to rtable to make the information available for > IPv4 as it is for IPv6. I see the same issue here when booting

[PATCH] bgmac: Update fixed_phy_register()

2015-09-02 Thread Fabio Estevam
From: Fabio Estevam Commit a5597008dbc2 ("phy: fixed_phy: Add gpio to determine link up/down.") added a new argument to fixed_phy_register(), but missed to update bgmac driver, causing the following build failure: drivers/net/ethernet/broadcom/bgmac.c:1450:2: error: too few ar

[PATCH net-next] net: fec: Remove unneeded use of IS_ERR_VALUE() macro

2015-08-12 Thread Fabio Estevam
From: Fabio Estevam There is no need to use the IS_ERR_VALUE() macro for checking the return value from pm_runtime_* functions. Just do a simple negative test instead. The semantic patch that makes this change is available in scripts/coccinelle/api/pm_runtime.cocci. Signed-off-by: Fabio

Re: [patch] hamradio/kiss: missing error code in mkiss_open()

2015-08-10 Thread Fabio Estevam
On Mon, Aug 10, 2015 at 6:39 PM, Dan Carpenter wrote: > If register_netdev() fails we return success but we should return an > error code instead. > > Reported-by: RUC_Soft_Sec > Signed-off-by: Dan Carpenter I have also sent a similar one: https://patchwork.ozlabs.org/patch/505758/ -- To unsubs

[PATCH] mkiss: Fix error handling in mkiss_open()

2015-08-10 Thread Fabio Estevam
If register_netdev() fails we are not propagating the error and we return success because ax_open() succeeded previously. Fix this by checking the return value of ax_open() and register_netdev() and propagate the error in case of failure. Reported-by: RUC_Soft_Sec Signed-off-by: Fabio Estevam

[PATCH net-next] mellanox: mlxsw: Use '%zx' to print size_t format

2015-08-10 Thread Fabio Estevam
Use '%zx' to print size_t format in order to fix the following build warning: drivers/net/ethernet/mellanox/mlxsw/item.h:65:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=] Signed

Re: Buggy cable detection on i.MX51, fec driver and LAN8700 PHY

2015-07-27 Thread Fabio Estevam
fa6cd672011c755c3cd85c9ffd4e2d10a6f. > > Same tests was made with different versions of the Barebox bootloader and > cable detection works flawless. > > Please, help to resolve issue with Linux drivers. I tried linux-next on a imx51-babbage and could not reproduce the problem here.

Re: [PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-07-25 Thread Fabio Estevam
st time, please do > test and send a Tested-by: With this version I can boot via NFS on a mx6 board: Tested-by: Fabio Estevam Thanks -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

  1   2   >