net: bcmgenet: ensure EXT_ENERGY_DET_MASK is clear
Doug Berger authored
commit 5a3c680a upstream.

Setting the EXT_ENERGY_DET_MASK bit allows the port energy detection
logic of the internal PHY to prevent the system from sleeping. Some
internal PHYs will report that energy is detected when the network
interface is closed which can prevent the system from going to sleep
if WoL is enabled when the interface is brought down.

Since the driver does not support waking the system on this logic,
this commit clears the bit whenever the internal PHY is powered up
and the other logic for manipulating the bit is removed since it
serves no useful function.

Fixes: 1c1008c7

 ("net: bcmgenet: add main driver file")
Signed-off-by: default avatarDoug Berger <opendmb@gmail.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
c74ded51
Name Last commit Last update
Documentation dt-bindings: i2c: at91: fix example for scl-gpios
LICENSES LICENSES: Add the CC-BY-4.0 license
arch arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file
block block: grab a device refcount in disk_uevent
certs Merge tag 'kbuild-v5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
crypto crypto: sm2 - fix a memory leak in sm2
drivers net: bcmgenet: ensure EXT_ENERGY_DET_MASK is clear
fs f2fs: Show casefolding support only when supported
include mm/userfaultfd: fix uffd-wp special cases for fork()
init sched/core: Initialize the idle task with preemption disabled
ipc ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry
kernel sched/fair: Fix CFS bandwidth hrtimer expiry type
lib lib/decompress_unlz4.c: correctly handle zero-padding around initrds.
mm mm/userfaultfd: fix uffd-wp special cases for fork()
net SUNRPC: prevent port reuse on transports which don't request it.
samples samples/bpf: Fix the error return code of xdp_redirect's main()
scripts kbuild: mkcompile_h: consider timestamp if KBUILD_BUILD_TIMESTAMP is set
security smackfs: restrict bytes count in smk_set_cipso()
sound ALSA: isa: Fix error return code in snd_cmi8330_probe()
tools perf tools: Fix pattern matching for same substring in different PMU type
usr .gitignore: prefix local generated files with a slash
virt KVM: mmio: Fix use-after-free Read in kvm_vm_ioctl_unregister_coalesced_mmio
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: use 'dts' diff driver for dts files
.gitignore .gitignore: ignore only top-level modules.builtin
.mailmap mailmap: add Marek's other e-mail address and identity without diacritics
COPYING COPYING: state that all contributions really are covered by this file
CREDITS MAINTAINERS: move Murali Karicheri to credits
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y
Kconfig kbuild: ensure full rebuild when the compiler is updated
MAINTAINERS Merge branch 'akpm' (patches from Andrew)
Makefile Linux 5.13.4
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.