[linux-sunxi] [PATCHv2 04/21] net: core: Add function to check/set MAC locality

2017-04-10 Thread Olliver Schinagl
to ensure they are locally administered. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/include/net.h b/include/net.h index b4af8eaae4..b1d6f05a76 100644 --- a/include/net.h +++ b/i

[linux-sunxi] [PATCHv2 17/21] net: dw: Expose designware_eth_start

2017-04-10 Thread Olliver Schinagl
Commit e72ced234045f ("net: designware: Export the operation functions") started to expose some of the net_ops. The sunxi_gmac glue driver also needs the start function, so let us expose that as well. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/

[linux-sunxi] [PATCHv2 08/21] fdt: fixup_eth: Remove code duplication with a function

2017-04-10 Thread Olliver Schinagl
In fdt_support.c we use a loop to parse the mac address string from the fdt blob, net.h has a function for this however, so lets use it. Also, rename the variable from tmp to something more descriptive. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_support.

[linux-sunxi] [PATCHv2 20/21] net: sun8i: fix whitespace

2017-04-10 Thread Olliver Schinagl
Fix a few whitespaces errors in the sun8i driver. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Kconfig | 8 drivers/net/sun8i_emac.c | 12 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/Kconfig b/drive

[linux-sunxi] [PATCHv2 19/21] net: sun8i_gmac: Add read_rom_hwaddr hook

2017-04-10 Thread Olliver Schinagl
With this patch sun8i_emac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/sun8i_emac.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

[linux-sunxi] [PATCHv2 18/21] net: sunxi_gmac: Add read_rom_hwaddr hook

2017-04-10 Thread Olliver Schinagl
With this patch sunxi_gmac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/sunxi_gmac.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff

[linux-sunxi] [PATCHv2 21/21] net: core: Check return value of read_rom_hwaddr

2017-04-10 Thread Olliver Schinagl
Currently, we silently ignore the return value of netops->read_rom_hwaddr(). This naturally is bad and we should check if the code ran successfully. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[linux-sunxi] [PATCHv2 16/21] net: sunxi_gmac: Make the sunxi variant of dw driver a subclass

2017-04-10 Thread Olliver Schinagl
This patch removes the old sunxi_gmac glue layer and turns it into a proper sub-class driver. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/include/asm/arch-sunxi/sys_proto.h| 7 arch/arm/mach-sunxi/board.c| 1 - board/sunxi/Ma

[linux-sunxi] [PATCHv2 06/21] net: core: print the source of the MAC address

2017-04-10 Thread Olliver Schinagl
With many potential places where a MAC address can be read from, the user may not know where the MAC address originated from. Print the MAC source after initializing the Ethernet device. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h| 14 ++ n

[linux-sunxi] [PATCHv2 14/21] net: sunxi: Have sunxi common functions together

2017-04-10 Thread Olliver Schinagl
The sun[8x]i network drivers have some common functions. Let's introduce a common file with the reading of the MAC address as a start. In the future, we can move more sunxi shared/common code into this file. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/sunxi_co

[linux-sunxi] [PATCHv2 09/21] fdt: fixup_eth: improve error catching/reduce identation

2017-04-10 Thread Olliver Schinagl
Currently when checking for an error in ethernet aliases in the fdt, we only check for the error case -1. It is safer to ignore anything < 0. By rearranging logic a bit we can now also reduce identation. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_suppo

[linux-sunxi] [PATCHv5 00/21] Retrieve MAC address from EEPROM

2017-04-10 Thread Olliver Schinagl
First off: P.S. Joe, for some reason my previous patches where added with me as: "oli...@schinagl.nl <oli...@schinagl.nl>" I see that it comes from patchwork as such. Is there some way to fix this to "Olliver Schinagl <oli...@schinagl.nl>"? Below the updated summar

[linux-sunxi] [PATCHv2 12/21] arm: sunxi: Expose function to generate sunxi-specific a MAC address

2017-04-10 Thread Olliver Schinagl
in the FDT. Once that is changed, we can clean up some more. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 + board/sunxi/board.c | 145 ++-- 2 files changed, 94 insertions(+), 53 del

[linux-sunxi] [PATCHv2 15/21] net: sunxi_emac: Add read_rom_hwaddr hook

2017-04-10 Thread Olliver Schinagl
With this patch sunxi_emac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/sunxi_emac.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

[linux-sunxi] [PATCHv2 13/21] net: sunxi_emac: Write HW address via net_ops hook

2017-04-10 Thread Olliver Schinagl
Expose the write_hwaddr net_ops hook to write the Ethernet address. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/sunxi_emac.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index 99339db4bf..0dc3

[linux-sunxi] Re: [PATCHv5 00/21] Retrieve MAC address from EEPROM

2017-04-10 Thread Olliver Schinagl
Hey York, On 10-04-17 17:52, York Sun wrote: On 04/10/2017 08:34 AM, Olliver Schinagl wrote: First off: P.S. Joe, for some reason my previous patches where added with me as: "oli...@schinagl.nl <oli...@schinagl.nl>" I see that it comes from patchwork as such. Is there

[linux-sunxi] Re: [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2017-04-10 Thread Olliver Schinagl
Resend with maxime's correct e-mail address and Jagain added to CC On 10-04-17 17:46, Olliver Schinagl wrote: Hey Simon, On 01-12-16 03:20, Simon Glass wrote: Hi, On 25 November 2016 at 08:30, Olliver Schinagl <oli...@schinagl.nl> wrote: This patch adds a method for the board

[linux-sunxi] [PATCHv2 05/21] net: Add ability to set MAC address via EEPROM

2017-04-10 Thread Olliver Schinagl
. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- doc/README.enetaddr | 99 + include/net.h | 14 net/Kconfig | 59 +++ net/eth-uclass.c| 42 +++ net/eth_co

[linux-sunxi] [PATCHv2 03/21] net: core: Inform the user of the device MAC address

2017-04-10 Thread Olliver Schinagl
print the final MAC address of the device with which it has been setup. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth-uclass.c | 9 ++--- net/eth_legacy.c | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c

[linux-sunxi] [PATCHv2 02/21] net: core: Sanitize get/set operations for enetaddr

2017-04-10 Thread Olliver Schinagl
ength. Additionally use the define in fdt parser where the ethaddr variables are also used. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_support.c | 2 +- include/net.h| 1 + net/eth_common.c | 14 +- 3 files changed, 11 insertions(+), 6 deletio

[linux-sunxi] Re: [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2017-04-10 Thread Olliver Schinagl
Hey Simon, On 01-12-16 03:20, Simon Glass wrote: Hi, On 25 November 2016 at 08:30, Olliver Schinagl <oli...@schinagl.nl> wrote: This patch adds a method for the board to set the MAC address if the environment is not yet set. The environment based MAC addresses are not touched, but if t

[linux-sunxi] Re: [PATCHv2 04/21] net: core: Add function to check/set MAC locality

2017-04-11 Thread Olliver Schinagl
A first comment I have myself, which will go in a v3 (or as a separate patch after this has been merged): On 10-04-17 17:33, Olliver Schinagl wrote: Universally administered and locally administered addresses are distinguished by setting the second-least-significant bit of the first octet

[linux-sunxi] Re: [U-Boot] [PATCH 5/6] arm: sunxi: Use board hooks to obtain MAC address

2017-04-11 Thread Olliver Schinagl
Hey Joe, On 11-04-17 00:56, Joe Hershberger wrote: On Fri, Apr 7, 2017 at 8:57 AM, <o.schin...@ultimaker.com> wrote: On Fri, 2017-04-07 at 15:45 +0200, Olliver Schinagl wrote: Hey Joe, On 30-11-16 22:36, Joe Hershberger wrote: On Fri, Nov 25, 2016 at 9:38 AM, Olliver Schinagl &

[linux-sunxi] Re: [U-Boot] [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2017-04-03 Thread Olliver Schinagl
Hey Joe, On 26-03-17 16:10, Joe Hershberger wrote: Hi Oliver, On Sun, Dec 11, 2016 at 3:27 PM, Simon Glass <s...@chromium.org> wrote: Hi Oliver, On 9 December 2016 at 02:25, Olliver Schinagl <oli...@schinagl.nl> wrote: Hey simon On December 8, 2016 11:21:32 PM CET, Si

[linux-sunxi] Re: [U-Boot] [PATCH 5/6] arm: sunxi: Use board hooks to obtain MAC address

2017-04-07 Thread Olliver Schinagl
Hey Joe, On 30-11-16 22:36, Joe Hershberger wrote: On Fri, Nov 25, 2016 at 9:38 AM, Olliver Schinagl <oli...@schinagl.nl> wrote: Add board hooks allowing to get ethernet addresses in a board specific manner. Currently this is done by generating a MAC address from the SID and inj

[linux-sunxi] Re: How to handle quirky behavior with boards.

2017-03-03 Thread Olliver Schinagl
properly according to its parameters? Olliver On 01-03-17 14:58, Olliver Schinagl wrote: Hey all, We found a bug in the design of a board that we use. This board (Olimex OLinuXino Lime2) features a PMIC (AXP209) and has an LDO, LDO3, that needs special treatment. The bug

[linux-sunxi] Re: [PATCH] serial: Do not treat the IIR register as a bitfield

2017-03-31 Thread Olliver Schinagl
Hey Andy, On 30-03-17 11:56, Andy Shevchenko wrote: On Wed, 2017-03-29 at 20:44 +0200, Olliver Schinagl wrote: It seems that at some point, someone made the assumption that the UART Interrupt ID Register was a bitfield and started to check if certain bits where set. Actually however

Re: [linux-sunxi] [PATCH v5 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-07-13 Thread Olliver Schinagl
Hey Priit, On 07/13/17 21:23, Priit Laes wrote: > On Mon, Jul 10, 2017 at 11:45:32AM +0200, Olliver Schinagl wrote: >> Hi Pleas, >> >> again, but this time with content :) >> >> On 04-07-17 22:04, Priit Laes wrote: >>> Introduce a clock controller dri

Re: [linux-sunxi] [PATCH v5 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-07-10 Thread Olliver Schinagl
Hi Pleas, again, but this time with content :) On 04-07-17 22:04, Priit Laes wrote: Introduce a clock controller driver for sun4i A10 and sun7i A20 series SoCs. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/Kconfig | 14 +- drivers/clk/sunxi-ng/Makefile

Re: [linux-sunxi] [PATCH v5 6/6] ARM: sun4i: Convert to CCU

2017-07-10 Thread Olliver Schinagl
Hi Pritt, On 04-07-17 22:05, Priit Laes wrote: Convert sun4i-a10.dtsi to new CCU driver. Tested on Gemei G9 tablet. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun4i-a10.dtsi | 646 +++- 1 file changed, 73 insertions(+), 573 deletions(-)

Re: [linux-sunxi] [PATCH v5 5/6] ARM: sun7i: Convert to CCU

2017-07-10 Thread Olliver Schinagl
Hi Pleas, On 04-07-17 22:05, Priit Laes wrote: Convert sun7i-a20.dtsi to new CCU driver. Tested on Cubietruck. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20.dtsi | 719 +++- 1 file changed, 84 insertions(+), 635 deletions(-) diff

Re: [linux-sunxi] [PATCH v5 5/6] ARM: sun7i: Convert to CCU

2017-07-10 Thread Olliver Schinagl
Hi Maxime, On 10-07-17 13:55, Maxime Ripard wrote: On Mon, Jul 10, 2017 at 01:23:51PM +0200, Olliver Schinagl wrote: Hi Pleas, On 04-07-17 22:05, Priit Laes wrote: Convert sun7i-a20.dtsi to new CCU driver. Tested on Cubietruck. Signed-off-by: Priit Laes <pl...@plaes.org> --- arch/ar

Re: [linux-sunxi] [PATCH v5 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-07-10 Thread Olliver Schinagl
Hey Plaes, On 04-07-17 22:04, Priit Laes wrote: SATA clock on sun4i/sun7i is of type (parent) / M / 6 where 6 is fixed post-divider. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu_div.c | 18 -- drivers/clk/sunxi-ng/ccu_div.h | 3 ++- 2 files

Re: [linux-sunxi] [PATCH v3] drm/sun4i: Implement drm_driver lastclose to restore fbdev console

2017-07-10 Thread Olliver Schinagl
Hey Jonathan, since I reported this to you on IRC, it's only fair that you can have my: Tested-by: Olliver Schinagl <oli...@schinagl.nl> For those interessted, I've tested it on an Olimex OLinuXino Lime2 with their 4.3 LCD. Olliver On 10-07-17 08:55, Jonathan Liu wrote: The drm_

[linux-sunxi] Re: [PATCHv4 0/2] ARM: sunxi: Add support for OLinuXino Lime2 eMMC

2017-07-10 Thread Olliver Schinagl
Ping, any reason this hasn't been merged yet? :) Olliver On 12-05-17 18:52, Maxime Ripard wrote: On Fri, May 12, 2017 at 11:38:52AM +0200, Olliver Schinagl wrote: This patch series adds support for the Olimex OLinuXino Lime2 eMMC. This assembly variant uses eMMC flash instead of NAND

Re: [linux-sunxi] [PATCH v3 00/12] ASoC: Add I2S support for Allwinner H3 SoCs

2017-07-31 Thread Olliver Schinagl
Hey Marcus, On 29-07-17 16:17, codekip...@gmail.com wrote: From: Marcus Cooper Hi All, please find attached a series of patches to bring i2s support to the Allwinner H3 SoC. This has been tested with the following setups: A20 Olimex EVB connected to a pcm5102 But

Re: [linux-sunxi] Designware UART bug

2017-05-03 Thread Olliver Schinagl
Hey Tim, On 03-05-17 16:22, Tim Kryger wrote: On Wed, May 3, 2017 at 4:26 AM, Olliver Schinagl <oli...@schinagl.nl> wrote: Hey Chen-Yu On 03-05-17 12:40, Chen-Yu Tsai wrote: On Wed, May 3, 2017 at 6:17 PM, Olliver Schinagl <oli...@schinagl.nl> wrote: Hey Jamie, Several y

[linux-sunxi] [PATCH] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> ---

[linux-sunxi] [PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- Jag

[linux-sunxi] [PATCHv6 00/28] Retrieve MAC address from EEPROM

2017-05-15 Thread Olliver Schinagl
: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc Olliver Schinagl (27): sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC net: core: Add PHY_GIGE as a Kconfig symbol net: sunxi simplify defconfig net: sunxi: Re-add RTL8211X_PHY_FORCE_MASTER net: sunxi: Restore sunxi_

[linux-sunxi] [PATCHv6 03/28] net: core: Add PHY_GIGE as a Kconfig symbol

2017-05-15 Thread Olliver Schinagl
Add the CONFIG_PHY_GIGE option as a hidden Kconfig symbol so that we can select it from the menu as a dependency. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Kconfig| 4 include/configs/sunxi-common.h | 1 - 2 files changed, 4 insertions(+), 1 de

[linux-sunxi] [PATCHv6 13/28] net: core: print the source of the MAC address

2017-05-15 Thread Olliver Schinagl
With many potential places where a MAC address can be read from, the user may not know where the MAC address originated from. Print the MAC source after initializing the Ethernet device. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h| 14 ++ n

[linux-sunxi] [PATCHv6 01/28] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-05-15 Thread Olliver Schinagl
ed-off-by: Emmanuel Vadot <m...@bidouilliste.com> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCHv6 05/28] net: sunxi: Re-add RTL8211X_PHY_FORCE_MASTER

2017-05-15 Thread Olliver Schinagl
Commit 8728c97eff5bd9 (" configs: Re-sync") potentially broke the lime2 as it removed the RTL8211X_PHY_FORCE_MASTER flag. Re-add this flag. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- configs/A20-OLinuXino-Lime2_defconfig | 1 + configs/A20-Olimex-SOM-EVB_defconfig

[linux-sunxi] [PATCHv6 15/28] net: core: Check return value of read_rom_hwaddr

2017-05-15 Thread Olliver Schinagl
Currently, we silently ignore the return value of netops->read_rom_hwaddr(). This naturally is bad and we should check if the code ran successfully. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[linux-sunxi] Re: [PATCHv6 00/28] Retrieve MAC address from EEPROM

2017-05-15 Thread Olliver Schinagl
Hey all, On 15-05-17 10:02, Olliver Schinagl wrote: This patch-series introduces methods to retrieve the MAC address from an onboard EEPROM. The series does a few small cleanups at the start, as either I ran into them while doing this series and fixed them along the way or actually depended

[linux-sunxi] [PATCHv6 09/28] net: core: Sanitize get/set operations for enetaddr

2017-05-15 Thread Olliver Schinagl
ength. Additionally use the define in fdt parser where the ethaddr variables are also used. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_support.c | 2 +- include/net.h| 1 + net/eth_common.c | 14 +- 3 files changed, 11 insertions(+), 6 deletio

[linux-sunxi] [PATCHv6 12/28] net: Add ability to set MAC address via EEPROM

2017-05-15 Thread Olliver Schinagl
. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/mach-sunxi/Kconfig| 8 +-- configs/A10-OLinuXino-Lime_defconfig | 1 - configs/A20-OLinuXino-Lime2-eMMC_defconfig | 1 - configs/A20-OLinuXino-Lime2_defconfig | 1 - configs/A20-OLinuXino-Lime_def

[linux-sunxi] [PATCHv6 24/28] net: dw: Expose designware_eth_start

2017-05-15 Thread Olliver Schinagl
Commit e72ced234045f ("net: designware: Export the operation functions") started to expose some of the net_ops. The sunxi_gmac glue driver also needs the start function, so let us expose that as well. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/

[linux-sunxi] [PATCHv6 04/28] net: sunxi simplify defconfig

2017-05-15 Thread Olliver Schinagl
the CONFIG_SUNXI_GMAC symbol into the SUN7I_GMAC and the SUN7I_EMAC symbol, where the SUN7I_EMAC indicates a MII connected designware IP. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- configs/A20-OLinuXino-Lime2-eMMC_defconfig | 2 -- configs/A20-OLinuXino-Lime2_defconfig | 2 -- c

[linux-sunxi] [PATCHv6 08/28] net: cosmetic: Do not use magic values for ARP_HLEN

2017-05-15 Thread Olliver Schinagl
Previously overlooked magic value in commit a40db6d51171 ("net: cosmetic: Do not use magic values for ARP_HLEN") Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h| 4 ++-- net/eth_common.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff

[linux-sunxi] [PATCHv6 26/28] net: sun8i_gmac: Add read_rom_hwaddr hook

2017-05-15 Thread Olliver Schinagl
With this patch sun8i_emac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/sun8i_emac.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

[linux-sunxi] [PATCHv6 22/28] net: sun4i_mac: Add read_rom_hwaddr hook

2017-05-15 Thread Olliver Schinagl
With this patch sun4i_mac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile| 2 +- drivers/net/sun4i_mac.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

[linux-sunxi] [PATCHv6 17/28] fdt: fixup_eth: improve error catching/reduce identation

2017-05-15 Thread Olliver Schinagl
Currently when checking for an error in ethernet aliases in the fdt, we only check for the error case -1. It is safer to ignore anything < 0. By rearranging logic a bit we can now also reduce identation. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_suppo

[linux-sunxi] [PATCHv6 16/28] fdt: fixup_eth: Remove code duplication with a function

2017-05-15 Thread Olliver Schinagl
In fdt_support.c we use a loop to parse the mac address string from the fdt blob, net.h has a function for this however, so lets use it. Also, rename the variable from tmp to something more descriptive. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_support.

[linux-sunxi] [PATCHv6 27/28] net: sun8i: fix whitespace

2017-05-15 Thread Olliver Schinagl
Fix a few whitespaces errors in the sun8i driver. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Kconfig | 8 drivers/net/sun8i_emac.c | 12 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/Kconfig b/drive

[linux-sunxi] [PATCHv6 23/28] net: sun7i_mac: Make the sun7i a dw driver subclass

2017-05-15 Thread Olliver Schinagl
This patch removes the old sunxi_gmac glue layer and turns it into a proper sub-class driver. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/mach-sunxi/board.c | 1 - board/sunxi/Makefile | 1 - drivers/net/Ma

[linux-sunxi] [PATCHv6 28/28] net: sunxi: Enable eeprom on OLinuXino Lime boards (again)

2017-05-15 Thread Olliver Schinagl
With commit 2681e78a5ee ("configs: Re-sync") we lost the EEPROM settings from the defconfig files. Let us re-add them. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- configs/A10-OLinuXino-Lime_defconfig | 3 +++ configs/A20-OLinuXino-Lime2-eMMC_defconfig | 3

[linux-sunxi] [PATCHv6 11/28] net: core: Add MAC address helper functions

2017-05-15 Thread Olliver Schinagl
both these helper functions Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h | 43 --- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/include/net.h b/include/net.h index ad2a8a3678..00677a0a89 100644 --- a/include

[linux-sunxi] [PATCHv6 14/28] net: cosmetic: A MAC address is not limited to SROM

2017-05-15 Thread Olliver Schinagl
Currently, we print that the MAC from the SROM does not match. It can be many forms of ROM, so lets drop the S. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth_legacy.c b/net/eth_legacy.c

[linux-sunxi] [PATCHv6 20/28] net: sunxi: Rename sunxi_emac to a more specific sun4i_mac

2017-05-15 Thread Olliver Schinagl
for bitfields as well. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/{sunxi_emac.c => sun4i_mac.c} | 260 +++--- 2 files changed, 133 insertions(+), 129 deletions(-) rename dr

[linux-sunxi] [PATCHv6 02/28] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-15 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> ---

[linux-sunxi] [PATCHv6 21/28] net: sunxi: Have sunxi common functions together

2017-05-15 Thread Olliver Schinagl
The sun[8x]i network drivers have some common functions. Let's introduce a common file with the reading of the MAC address as a start. In the future, we can move more sunxi shared/common code into this file. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/sunxi_co

[linux-sunxi] [PATCHv6 18/28] arm: sunxi: Expose function to generate sunxi-specific a MAC address

2017-05-15 Thread Olliver Schinagl
in the FDT. Once that is changed, we can clean up some more. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 + board/sunxi/board.c | 146 ++-- 2 files changed, 95 insertions(+), 53 del

[linux-sunxi] [PATCHv6 07/28] net: sunxi: Move GMAC_TX_DELAY to the driver

2017-05-15 Thread Olliver Schinagl
The GMAC_TX_DELAY symbol sets and is dependent on the SUN7I_GMAC driver. Move it from the generic ARCH section to the driver specific section. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/mach-sunxi/Kconfig | 6 -- drivers/net/Kconfig | 7 +++ 2 files c

[linux-sunxi] [PATCHv6 19/28] net: sunxi_emac: Write HW address via net_ops hook

2017-05-15 Thread Olliver Schinagl
Expose the write_hwaddr net_ops hook to write the Ethernet address. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/sunxi_emac.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index 99339db4bf..0dc3

[linux-sunxi] [PATCHv4 0/2] ARM: sunxi: Add support for OLinuXino Lime2 eMMC

2017-05-12 Thread Olliver Schinagl
-by to Emanuel's upstream kernel pach Changes since v2: * Converted these two patches into a patch-series Changes since v1: * Rebased with master Emmanuel Vadot (1): ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc Olliver Schinagl (1): sun7i: Add support for Olimex

[linux-sunxi] [PATCHv4 2/2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-12 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> ---

[linux-sunxi] [PATCHv4 1/2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-05-12 Thread Olliver Schinagl
ed-off-by: Emmanuel Vadot <m...@bidouilliste.com> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[linux-sunxi] Re: [PATCHv6 25/28] net: sun7i_mac: Add read_rom_hwaddr hook

2017-05-15 Thread Olliver Schinagl
Hey Maxime, On 15-05-17 10:22, Maxime Ripard wrote: On Mon, May 15, 2017 at 10:02:41AM +0200, Olliver Schinagl wrote: With this patch sun7i_mac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl

[linux-sunxi] Re: [U-Boot] [PATCHv6 14/28] net: cosmetic: A MAC address is not limited to SROM

2017-05-15 Thread Olliver Schinagl
Hey Tom, On 15-05-17 14:53, Tom Rini wrote: On Mon, May 15, 2017 at 10:02:30AM +0200, Olliver Schinagl wrote: Currently, we print that the MAC from the SROM does not match. It can be many forms of ROM, so lets drop the S. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --

Re: [linux-sunxi] Designware UART bug

2017-05-04 Thread Olliver Schinagl
Hey Tim, On 04-05-17 05:51, Tim Kryger wrote: On Wed, May 3, 2017 at 8:40 AM, Olliver Schinagl <oli...@schinagl.nl> wrote: Hey Tim, Ok, so as far as I understand (from the datasheet) the intended way to do this would be to check for the BUSY IRQ & USR[0] IRQ and if it is busy,

[linux-sunxi] Re: [PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-04 Thread Olliver Schinagl
Hey Maxime, On 04-05-17 10:43, Maxime Ripard wrote: On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote: This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly

[linux-sunxi] [PATCH] ARM: dts: OLinuXino Lime2 eMMC dts sync

2017-05-04 Thread Olliver Schinagl
Sync the sun7i-a20-olinuxino-lime2-emmc.dts with the upstream kernel, which fixes the power-sequencing pin being wrongfully set up. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 8 +++- 1 file changed, 3 insertions(+), 5 del

Re: [linux-sunxi] Re: [PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-04 Thread Olliver Schinagl
Hey ChenYu On 04-05-17 10:48, Chen-Yu Tsai wrote: On Thu, May 4, 2017 at 4:44 PM, Olliver Schinagl <oli...@schinagl.nl> wrote: Hey Maxime, On 04-05-17 10:43, Maxime Ripard wrote: On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote: This patch adds support for the

[linux-sunxi] [PATCHv3 1/2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-05-04 Thread Olliver Schinagl
From: Emmanuel Vadot The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. This makes the original node (mmc2_pins_a) scrapped out of the dtb and result in a unusable eMMC if U-Boot didn't configured the pins to the correct functions. Signed-off-by:

[linux-sunxi] [PATCHv3 2/2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-04 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> ---

[linux-sunxi] [PATCHv3 0/2] ARM: sunxi: Add support for OLinuXino Lime2 eMMC

2017-05-04 Thread Olliver Schinagl
node name for pwrseq pin on Olinuxino-lime2-emmc Olliver Schinagl (1): sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC arch/arm/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 2 +- board/sunxi/MAINTAINERS | 5 configs/A20-OLinuXino-Lime2-eMMC_defconfig

[linux-sunxi] Designware UART bug

2017-05-03 Thread Olliver Schinagl
Hey Jamie, Several years ago you wrote the glue-code [0] for the DW 8250 IP. Over the years various 'fixes' have been applied to resolve certain 'weird' problems that Tim tried to fix with [1]. After going over the datasheets and code with a comb several times now, I think I may have found

Re: [linux-sunxi] Designware UART bug

2017-05-03 Thread Olliver Schinagl
Hey Chen-Yu On 03-05-17 12:40, Chen-Yu Tsai wrote: On Wed, May 3, 2017 at 6:17 PM, Olliver Schinagl <oli...@schinagl.nl> wrote: Hey Jamie, Several years ago you wrote the glue-code [0] for the DW 8250 IP. Over the years various 'fixes' have been applied to resolve certain 'weird' pr

[linux-sunxi] Re: [PATCHv3 1/2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-05-05 Thread Olliver Schinagl
I can resend it if everything else is okay On 05-05-17 10:02, Maxime Ripard wrote: On Thu, May 04, 2017 at 11:57:06AM +0200, Olliver Schinagl wrote: From: Emmanuel Vadot <m...@bidouilliste.com> The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. This makes the or

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-31 Thread Olliver Schinagl
Hey André, On 31-12-2018 14:10, André Przywara wrote: On 31/12/2018 11:27, Michael Trimarchi wrote: Hi On Mon, Dec 31, 2018 at 11:34:51AM +0100, Olliver Schinagl wrote: Hey André, On 31-12-2018 00:23, André Przywara wrote: On 29/12/2018 22:10, Olliver Schinagl wrote: Hi Olliver, Luckily

Re: [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-29 Thread Olliver Schinagl
Luckily we have had no problem with this on our boards, but its sad to see this patch reverted due to the buggy ddr implementation ... Curiosity is getting the better of me and I cant seem to be able to reproduce the problem. So could you be a little bit more specific on the bug please? On

[linux-sunxi] Re: [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-11-22 Thread Olliver Schinagl
On 21-11-18 19:13, Priit Laes wrote: > On Wed, Nov 21, 2018 at 08:05:24PM +0200, Priit Laes wrote: >> This is a resend/v2 of a "Stop AXP from crashing when enabling LDO3" series, >> posted by Olliver Schinagl in March 2017. Unfortunately it never got past >> initial

<    1   2   3   4