From: Hans de Goede <hidden> Date: 2015-08-23 18:31:38
Claim the emac sram ourselves, rather then relying on the bootloader
having mapped the sram to the emac controller during boot.
Signed-off-by: Hans de Goede <redacted>
---
drivers/net/ethernet/allwinner/sun4i-emac.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
From: Maxime Ripard <hidden> Date: 2015-08-24 07:46:05
Hi Hans,
On Sun, Aug 23, 2015 at 08:31:38PM +0200, Hans de Goede wrote:
quoted hunk
Claim the emac sram ourselves, rather then relying on the bootloader
having mapped the sram to the emac controller during boot.
Signed-off-by: Hans de Goede <redacted>
---
drivers/net/ethernet/allwinner/sun4i-emac.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
@@ -857,11 +858,17 @@ static int emac_probe(struct platform_device *pdev)clk_prepare_enable(db->clk);+ret=sunxi_sram_claim(&pdev->dev);+if(ret){+dev_err(&pdev->dev,"Error couldn't map SRAM to device\n");+gotoout;
Shouldn't you disable you clock too?
Thanks,
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
From: Hans de Goede <hidden> Date: 2015-08-24 09:17:43
Hi,
On 24-08-15 09:46, Maxime Ripard wrote:
Hi Hans,
On Sun, Aug 23, 2015 at 08:31:38PM +0200, Hans de Goede wrote:
quoted
Claim the emac sram ourselves, rather then relying on the bootloader
having mapped the sram to the emac controller during boot.
Signed-off-by: Hans de Goede <redacted>
---
drivers/net/ethernet/allwinner/sun4i-emac.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
From: Maxime Ripard <hidden> Date: 2015-08-24 13:39:02
On Mon, Aug 24, 2015 at 11:17:43AM +0200, Hans de Goede wrote:
Hi,
On 24-08-15 09:46, Maxime Ripard wrote:
quoted
Hi Hans,
On Sun, Aug 23, 2015 at 08:31:38PM +0200, Hans de Goede wrote:
quoted
Claim the emac sram ourselves, rather then relying on the bootloader
having mapped the sram to the emac controller during boot.
Signed-off-by: Hans de Goede <redacted>
---
drivers/net/ethernet/allwinner/sun4i-emac.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
From: Hans de Goede <redacted>
Date: Sun, 23 Aug 2015 20:31:38 +0200
Claim the emac sram ourselves, rather then relying on the bootloader
having mapped the sram to the emac controller during boot.
Signed-off-by: Hans de Goede <redacted>