Skip to contentSkip to conversation

net: designware: Add SoCFPGA GMAC DT compatible string

PATCH New Marek Vasut 2 participants 7 messages Jul 27, 2015 – Aug 3, 2015 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 net: designware: Add SoCFPGA GMAC DT compatible string

Add the OF compatible property to match the SoCFPGA GMAC.

Cc Dinh Nguyen <[email protected]>
Cc Joe Hershberger <[email protected]>
---
 drivers/net/designware.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/designware.c +1 -0
index bcae842..cadf3c8 100644
@@ -608,6 +608,7 @@ static int designware_eth_ofdata_to_platdata(struct udevice *dev)
 
 static const struct udevice_id designware_eth_ids[] = {
 	{ .compatible = "allwinner,sun7i-a20-gmac" },
+	{ .compatible = "altr,socfpga-stmmac" },
 	{ }
 };
 
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 net: designware: Rename the driver var name to eth_designware

The driver variable name is eth_sandbox, which is probably a copy-paste mistake. Fix it.

Cc Dinh Nguyen <[email protected]>
Cc Joe Hershberger <[email protected]>
---
 drivers/net/designware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/designware.c +1 -1
index cadf3c8..d9cb507 100644
@@ -612,7 +612,7 @@ static const struct udevice_id designware_eth_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(eth_sandbox) = {
+U_BOOT_DRIVER(eth_designware) = {
 	.name	= "eth_designware",
 	.id	= UCLASS_ETH,
 	.of_match = designware_eth_ids,
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/2 net: designware: Rename the driver var name to eth_designware

Quoted 6 lines · Marek Vasut

The driver variable name is eth_sandbox, which is probably a copy-paste mistake. Fix it.

Cc Dinh Nguyen <[email protected]>
Cc Joe Hershberger <[email protected]>

Hi Joe, I can pick both of those through u-boot-socfpga if you don't mind, they're trivial and I sure can use them. Can you give me an ACK please ?

Best regards,
Marek Vasut

#4 lore raw

PATCH 2/2 net: designware: Rename the driver var name to eth_designware

Quoted 6 lines · Joe Hershberger

Hi Marek,

Quoted 3 lines · Marek Vasut

The driver variable name is eth_sandbox, which is probably a copy-paste mistake. Fix it.

Quoted 6 lines
Quoted 4 lines
Cc Dinh Nguyen <[email protected]>
Cc Joe Hershberger <[email protected]>

---

Applied to u-boot-socfpga/master , thanks, this really helped me a lot :)

Best regards,
Marek Vasut