From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796033306; b=kVLBZT34lw6pXWzEK9JOcs9vZJxSeFMyYW0vCm+zJOXAF8BwDuCMr1WgJXUqgFCd8Eeb rJPivMhquqGwBs2q+d1B1WFCZX1N+V3pgPHNJZZoFEd5obrPRwnYc+crTsCJc5YW8oUoh 3NIoCxjt+CiHNo9areQnehZrkgc/Z9ipYfgyzfk+SatqsjlXP5CBT4oc2CMPtQo2mmlmG fruLOx9jBcbqmu/lWfHvh5Wnxyo2VqDov3Gv3Jv+XNN6mXTUfNI3xjYk2NF8lLGQj5ik4 xUnLneMGjDugmuS75ASKMOuiHHe1AIvklIjSY8A4SZ6dxlIIfVqGjNcfkcoY5NUebYA== 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=LRjgOQDIz+OTLVYCqm35hgRpFPfSdSUETwwxF4fz+dKmTXQhmje8PpRR4AnWOj6hcL20 9Iqqm1VAbUa6hcVquY5aEq3bQRd9j3vnfGQGJGtJcU3OGYe5AteQX2wZTM73ZJLrcV9eR EOF/r30Bj1KJgIGo9IczQFkOZ3+PLmtWKALYGRT/4g/bGKfSLfmWjdUFVtOrsvZQJeVAE 7F3LfOjwBvWn11JWBwH2y5dsvzbo1W4Vh/0K/IsGF4braLgBOMiAwQbxfQ9iMschMSTCR zqFloi2/zhytOxTaxAUydmx2z/FW5pk9aRM/7sS4K1i8vNEBVlz5VwAV3WEQ6xO0LCg== 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.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 8E704606A32C for ; Mon, 30 Nov 2026 10:08:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8E704606A32C 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-02.galae.net (Postfix) with ESMTPS id 4DB5E1A1889 for ; 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: linux-kernel@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