diff options
| author | Linus Torvalds <[email protected]> | 2018-02-19 11:58:19 -0800 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-02-19 11:58:19 -0800 | 
| commit | 79c0ef3e85c015b0921a8fd5dd539d1480e9cd6c (patch) | |
| tree | 84c85e3aa7ff0d25ab62af3d3bfb896888d5219e /drivers/net/ethernet/renesas/sh_eth.c | |
| parent | 91ab883eb21325ad80f3473633f794c78ac87f51 (diff) | |
| parent | 506b0a395f26e52b3f18827e0de1be051acb77ab (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller:
 1) Prevent index integer overflow in ptr_ring, from Jason Wang.
 2) Program mvpp2 multicast filter properly, from Mikulas Patocka.
 3) The bridge brport attribute file is write only and doesn't have a
    ->show() method, don't blindly invoke it. From Xin Long.
 4) Inverted mask used in genphy_setup_forced(), from Ingo van Lil.
 5) Fix multiple definition issue with if_ether.h UAPI header, from
    Hauke Mehrtens.
 6) Fix GFP_KERNEL usage in atomic in RDS protocol code, from Sowmini
    Varadhan.
 7) Revert XDP redirect support from thunderx driver, it is not
    implemented properly. From Jesper Dangaard Brouer.
 8) Fix missing RTNL protection across some tipc operations, from Ying
    Xue.
 9) Return the correct IV bytes in the TLS getsockopt code, from Boris
    Pismenny.
10) Take tclassid into consideration properly when doing FIB rule
    matching. From Stefano Brivio.
11) cxgb4 device needs more PCI VPD quirks, from Casey Leedom.
12) TUN driver doesn't align frags properly, and we can end up doing
    unaligned atomics on misaligned metadata. From Eric Dumazet.
13) Fix various crashes found using DEBUG_PREEMPT in rmnet driver, from
    Subash Abhinov Kasiviswanathan.
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (56 commits)
  tg3: APE heartbeat changes
  mlxsw: spectrum_router: Do not unconditionally clear route offload indication
  net: qualcomm: rmnet: Fix possible null dereference in command processing
  net: qualcomm: rmnet: Fix warning seen with 64 bit stats
  net: qualcomm: rmnet: Fix crash on real dev unregistration
  sctp: remove the left unnecessary check for chunk in sctp_renege_events
  rxrpc: Work around usercopy check
  tun: fix tun_napi_alloc_frags() frag allocator
  udplite: fix partial checksum initialization
  skbuff: Fix comment mis-spelling.
  dn_getsockoptdecnet: move nf_{get/set}sockopt outside sock lock
  PCI/cxgb4: Extend T3 PCI quirk to T4+ devices
  cxgb4: fix trailing zero in CIM LA dump
  cxgb4: free up resources of pf 0-3
  fib_semantics: Don't match route with mismatching tclassid
  NFC: llcp: Limit size of SDP URI
  tls: getsockopt return record sequence number
  tls: reset the crypto info if copy_from_user fails
  tls: retrun the correct IV in getsockopt
  docs: segmentation-offloads.txt: add SCTP info
  ...
Diffstat (limited to 'drivers/net/ethernet/renesas/sh_eth.c')
| -rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 18 | 
1 files changed, 3 insertions, 15 deletions
| diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index a197e11f3a56..92dcf8717fc6 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -40,7 +40,6 @@  #include <linux/slab.h>  #include <linux/ethtool.h>  #include <linux/if_vlan.h> -#include <linux/clk.h>  #include <linux/sh_eth.h>  #include <linux/of_mdio.h> @@ -2304,7 +2303,7 @@ static void sh_eth_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol)  	wol->supported = 0;  	wol->wolopts = 0; -	if (mdp->cd->magic && mdp->clk) { +	if (mdp->cd->magic) {  		wol->supported = WAKE_MAGIC;  		wol->wolopts = mdp->wol_enabled ? WAKE_MAGIC : 0;  	} @@ -2314,7 +2313,7 @@ static int sh_eth_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol)  {  	struct sh_eth_private *mdp = netdev_priv(ndev); -	if (!mdp->cd->magic || !mdp->clk || wol->wolopts & ~WAKE_MAGIC) +	if (!mdp->cd->magic || wol->wolopts & ~WAKE_MAGIC)  		return -EOPNOTSUPP;  	mdp->wol_enabled = !!(wol->wolopts & WAKE_MAGIC); @@ -3153,11 +3152,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)  		goto out_release;  	} -	/* Get clock, if not found that's OK but Wake-On-Lan is unavailable */ -	mdp->clk = devm_clk_get(&pdev->dev, NULL); -	if (IS_ERR(mdp->clk)) -		mdp->clk = NULL; -  	ndev->base_addr = res->start;  	spin_lock_init(&mdp->lock); @@ -3278,7 +3272,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev)  	if (ret)  		goto out_napi_del; -	if (mdp->cd->magic && mdp->clk) +	if (mdp->cd->magic)  		device_set_wakeup_capable(&pdev->dev, 1);  	/* print device information */ @@ -3331,9 +3325,6 @@ static int sh_eth_wol_setup(struct net_device *ndev)  	/* Enable MagicPacket */  	sh_eth_modify(ndev, ECMR, ECMR_MPDE, ECMR_MPDE); -	/* Increased clock usage so device won't be suspended */ -	clk_enable(mdp->clk); -  	return enable_irq_wake(ndev->irq);  } @@ -3359,9 +3350,6 @@ static int sh_eth_wol_restore(struct net_device *ndev)  	if (ret < 0)  		return ret; -	/* Restore clock usage count */ -	clk_disable(mdp->clk); -  	return disable_irq_wake(ndev->irq);  } |