From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796033306; b=h0w0eKnsGk7ElKxKzomrw4CXutktpe6tQuEUe1aMy55+gNotIE69X+8R190t9iCTwBon yAyJyMwLrLLkHrIt/IKASYm9oEo3fF2AG/6ue7gxG/ys5oZkrDdZXMv8ZIM4eXpSv75Ps cJVA/GxSYWOxsqf0VkakxpucPwhPMBvnOjPPHg+mrzNVF4OFzNW/fou2DjLaMx/GLm6Z+ skuxEI9IMxayQ6Af+8o9VbeAnbAf/1tG5JD2JnhbsYJO8DOumBEI2BuA9+V2PTeWyj5an xYhaEBM9yFcJ6n822IL7wBkLs8kqc97/CtMAhBFcT6MxNZNRZsZ63A730jiWi+VtDiw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796033306; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=tGFK1yT55tKgb2GU6zQYwYzSbmvXFii3KwbQGN1XFVw=; b=1aL0P0i3U+7k69VH4kpWLoYqZ8vadvX8ZMTN39pi4uVlog0oNBNyDBj5c3pXM2ar2C6p oEtdSlnF5tM2w5mCE77x29bKRHq1prxGGphPU7sqORATa44uJDGGaw0thFQviHtmqGSHb L756BZg9qI2NfKPFxSxVcte1cF1pbTFAM9bhlhtzi9lAk1WIfHDTDn5nFvsLujozYXSSF hqOPABgn+/iCqaDb8kt6P7lyfdQAt7LldQZHHUcDLc6bcJ0mU01ayygNhdx9TqSJ3ze/4 gtugpVJ63+lezUVxOpnlqKDNaTNd3s2tgi/I45J3fW/rFHLWVARYqsx2xwBZI4wvM0Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=mBulXh4S; arc=none smtp.remote-ip=185.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7ABC606A327 for ; Mon, 30 Nov 2026 10:08:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A7ABC606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=mBulXh4S Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 4C2FE4E41766; Mon, 30 Nov 2026 10:08:24 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 21F156007C; Mon, 30 Nov 2026 10:08:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0954E11EA00BD; Mon, 30 Nov 2026 11:08:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796033303; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=tGFK1yT55tKgb2GU6zQYwYzSbmvXFii3KwbQGN1XFVw=; b=mBulXh4S8U8dLGfip6yli54JzwigcmvbckUhDIEJ1hPiRkv3qgKHcGNoRl0h3tbBdBYrWM oQohzv61yZpHd0/1Y8gsMSeYG8oYuPYVH2QIdzW6Q0VdgBiXAxBpUjCwWE+tqGCvDtATY/ ET/l+E0SsgUuiIDHfkgr77Em++bQKQ4BDZIGRvEJwx1s2XTa6XUyyZJn0sxsJ5hc89muvC nZ0kYLgeoDr/B2cuBWadX21/hMkjALYqpESjqFWYuiaGnAamL8mcFSRlZcOtgFVnSkRV+W OeBn5GJOQpGUPGJhHB+L0N1EVoeN9YhW149htxRQYehw2VXqmDwnOigigGpArQ== Message-ID: <683a3f6f-2dbd-4e45-babf-2d852dab5f7b@bootlin.com> Date: Mon, 30 Nov 2026 11:08:19 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Betterbird (Linux) Subject: Re: [PATCH net] net: pse-pd: tps23881: fix the disconnect event decode To: Carlo Szelinsky , Oleksij Rempel Cc: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261128100648.3237097-1-github@szelinsky.de> From: Kory Maincent Content-Language: en-US In-Reply-To: <20261128100648.3237097-1-github@szelinsky.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 On 11/28/26 11:06, Carlo Szelinsky wrote: > tps23881_irq_event_handler() reads the fault register into ret, and > then overwrites ret with the return value of > tps23881_irq_event_over_current(). That value is 0 when > tps23881_irq_event_disconnection() runs, so the disconnect bits of the > fault register are never decoded, and no disconnect event is reported > from them. The read clears the register, so these bits are lost. > > Keep the register value in val, as the detection block below already > does. > > Fixes: 56cfc97635e9 ("net: pse-pd: tps23881: Add support for static port priority feature") > Signed-off-by: Carlo Szelinsky I have found and fixed the same issue on my current tree but you send it before me so: Reviewed-by: Kory Maincent Tested-by: Kory Maincent Thank you! -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com