diff for duplicates of <20180114175203.191929089@cogentembedded.com> diff --git a/a/1.txt b/N1/1.txt index 2a0c1b0..ea03afb 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -10,8 +10,7 @@ Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> 1 file changed, 5 insertions(+), 8 deletions(-) Index: net-next/drivers/net/ethernet/renesas/sh_eth.c -=================================================================== ---- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +=================================--- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -3125,7 +3125,7 @@ static int sh_eth_drv_probe(struct platf const struct platform_device_id *id = platform_get_device_id(pdev); @@ -45,8 +44,8 @@ Index: net-next/drivers/net/ethernet/renesas/sh_eth.c /* We can only request the TSU region for the first port * of the two sharing this TSU for the probe to succeed... */ -- if (devno % 2 == 0 && -+ if (port == 0 && +- if (devno % 2 = 0 && ++ if (port = 0 && !devm_request_mem_region(&pdev->dev, rtsu->start, resource_size(rtsu), dev_name(&pdev->dev))) { @@ -59,7 +58,7 @@ Index: net-next/drivers/net/ethernet/renesas/sh_eth.c ndev->features = NETIF_F_HW_VLAN_CTAG_FILTER; /* Need to init only the first port of the two sharing a TSU */ -- if (devno % 2 == 0) { -+ if (port == 0) { +- if (devno % 2 = 0) { ++ if (port = 0) { if (mdp->cd->chip_reset) mdp->cd->chip_reset(ndev); diff --git a/a/content_digest b/N1/content_digest index 5316efd..eeeb98c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,12 +1,11 @@ "From\0Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>\0" "Subject\0[PATCH 2/2] sh_eth: get Ether port # only when needed\0" - "Date\0Sun, 14 Jan 2018 20:47:44 +0300\0" + "Date\0Sun, 14 Jan 2018 17:47:44 +0000\0" "To\0netdev@vger.kernel.org" " linux-renesas-soc@vger.kernel.org\0" "Cc\0linux-sh@vger.kernel.org" " Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>\0" "\00:1\0" - "fn\0sh_eth-get-Ether-port-#-only-when-needed.patch\0" "b\0" "The dual-port Ether configurations always have a shared TSU to e.g. pass\n" "the packets between those ports. With the TSU init. code gathered under\n" @@ -20,8 +19,7 @@ " 1 file changed, 5 insertions(+), 8 deletions(-)\n" "\n" "Index: net-next/drivers/net/ethernet/renesas/sh_eth.c\n" - "===================================================================\n" - "--- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c\n" + "=================================--- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c\n" "+++ net-next/drivers/net/ethernet/renesas/sh_eth.c\n" "@@ -3125,7 +3125,7 @@ static int sh_eth_drv_probe(struct platf\n" " \tconst struct platform_device_id *id = platform_get_device_id(pdev);\n" @@ -55,8 +53,8 @@ " \t\t/* We can only request the TSU region for the first port\n" " \t\t * of the two sharing this TSU for the probe to succeed...\n" " \t\t */\n" - "-\t\tif (devno % 2 == 0 &&\n" - "+\t\tif (port == 0 &&\n" + "-\t\tif (devno % 2 = 0 &&\n" + "+\t\tif (port = 0 &&\n" " \t\t !devm_request_mem_region(&pdev->dev, rtsu->start,\n" " \t\t\t\t\t resource_size(rtsu),\n" " \t\t\t\t\t dev_name(&pdev->dev))) {\n" @@ -69,9 +67,9 @@ " \t\tndev->features = NETIF_F_HW_VLAN_CTAG_FILTER;\n" " \n" " \t\t/* Need to init only the first port of the two sharing a TSU */\n" - "-\t\tif (devno % 2 == 0) {\n" - "+\t\tif (port == 0) {\n" + "-\t\tif (devno % 2 = 0) {\n" + "+\t\tif (port = 0) {\n" " \t\t\tif (mdp->cd->chip_reset)\n" " \t\t\t\tmdp->cd->chip_reset(ndev);" -e551a478a217357e4afa8b286e4dc8a65f2468621767a8400b713383e13e920b +cc5dd9a3b365b228cca7942bc63da486d9d41590e4c8f9b3669f15d4abe8c6e8
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.