No description
Find a file
Horatiu Vultur 529f340e11 net: micrel: Fix lan8841_config_intr after getting out of sleep mode
[ Upstream commit 4fb679040d ]

When the interrupt is enabled, the function lan8841_config_intr tries to
clear any pending interrupts by reading the interrupt status, then
checks the return value for errors and then continue to enable the
interrupt. It has been seen that once the system gets out of sleep mode,
the interrupt status has the value 0x400 meaning that the PHY detected
that the link was in low power. That is correct value but the problem is
that the check is wrong.  We try to check for errors but we return an
error also in this case which is not an error. Therefore fix this by
returning only when there is an error.

Fixes: a8f1a19d27 ("net: micrel: Add support for lan8841 PHY")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Suman Ghosh <sumang@marvell.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/20240524085350.359812-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:39:50 +02:00
arch
block
certs
crypto
Documentation
drivers net: micrel: Fix lan8841_config_intr after getting out of sleep mode 2024-06-12 11:39:50 +02:00
fs
include netkit: Fix pkt_type override upon netkit pass verdict 2024-06-12 11:39:48 +02:00
init
io_uring
ipc
kernel bpf: Allow delete from sockmap/sockhash only if update is allowed 2024-06-12 11:39:50 +02:00
lib
LICENSES
mm
net ipv4: Fix address dump when IPv4 is disabled on an interface 2024-06-12 11:39:50 +02:00
rust
samples
scripts
security
sound ASoC: cs42l43: Only restrict 44.1kHz for the ASP 2024-06-12 11:39:50 +02:00
tools bpf: Fix potential integer overflow in resolve_btfids 2024-06-12 11:39:48 +02:00
usr
virt
.clang-format
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

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 reStructuredText 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.