From patchwork Mon Dec 9 13:07:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 13899711 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E01441C5CB4 for ; Mon, 9 Dec 2024 13:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733749685; cv=none; b=IWgF1K063P7UAndXKrANoMqJ5jtbm8u5ClJIc4AMDrMog+sz/DUskgW3Ck8JU3MYh47TLPywYf1ifOb6s45zaRfFCws7Y0Px9jYfm6LEhYl80+ciEaS6ZxrT4V4Q5i5IFuK4jip4gVzsxoerHWwjaOOnDPN+kuiCbgBB3u27lME= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733749685; c=relaxed/simple; bh=T4r5FGidFDsRUMmlpRvTUjhC9fAyg9vx234rsbBtpLc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=roqz1axqBXLcwpWbFQWfLwBV5fogJkz6z5JdApAga9PNE1eUm3bure+oZ4Zm8eGb8XHOt0dBDIyB5DvfzM2uBFH+ZItcjk8xkgKFKwYQ64JPMC11StAtvkvKkK9dbBJ713JPmMLcrJ0KhOEOzo+mqzaKnwmHMDh8T09wIU9P80w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tKdUP-0004R8-PL; Mon, 09 Dec 2024 14:07:53 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tKdUN-002W7H-1Q; Mon, 09 Dec 2024 14:07:52 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tKdUO-002wwi-0S; Mon, 09 Dec 2024 14:07:52 +0100 From: Oleksij Rempel To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Woojung Huh , Andrew Lunn Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, Phil Elwell Subject: [PATCH net-next v1 00/11] lan78xx: Preparations for PHYlink Date: Mon, 9 Dec 2024 14:07:40 +0100 Message-Id: <20241209130751.703182-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This patch set is a second part of the preparatory work for migrating the lan78xx USB Ethernet driver to the PHYlink framework. During extensive testing, I observed that resetting the USB adapter can lead to various read/write errors. While the errors themselves are acceptable, they generate excessive log messages, resulting in significant log spam. This set improves error handling to reduce logging noise by addressing errors directly and returning early when necessary. Oleksij Rempel (11): net: usb: lan78xx: Add error handling to lan78xx_setup_irq_domain net: usb: lan78xx: Add error handling to lan78xx_init_mac_address net: usb: lan78xx: Add error handling to lan78xx_set_mac_addr net: usb: lan78xx: Add error handling to lan78xx_get_regs net: usb: lan78xx: Simplify lan78xx_update_reg net: usb: lan78xx: Fix return value handling in lan78xx_set_features net: usb: lan78xx: Use ETIMEDOUT instead of ETIME in lan78xx_stop_hw net: usb: lan78xx: Use function-specific label in lan78xx_mac_reset net: usb: lan78xx: Improve error handling in lan78xx_phy_wait_not_busy net: usb: lan78xx: Rename lan78xx_phy_wait_not_busy to lan78xx_mdiobus_wait_not_busy net: usb: lan78xx: Improve error handling in WoL operations drivers/net/usb/lan78xx.c | 137 +++++++++++++++++++++++++------------- 1 file changed, 89 insertions(+), 48 deletions(-) --- 2.39.5