From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 2A2F135EDB2 for ; Tue, 27 Jan 2026 19:42:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769542981; cv=none; b=fAOKcXZbo6E36UdH5+c6tWfTGppd0HHyNu5Z9sBkeWWSW/ezQOL5c4g/CeB/YlRnTliWRRz5ULpvJ/JN4BahNxMO1Tn3sKmzRbjutcZbEjFPNFMnb68gRVyioIoQpelUJ9w8eb5To5kzRlG3IdxV/HRQDvcRMyr1RJgqQxDubBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769542981; c=relaxed/simple; bh=QlhRnv6CvnlLIZN4fQ0n6DM2cafHm0mTorbkIfkFL6g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rm9rsgPLRZvRQM/5fhIMH1gKa4kQrP5aMNuL+aHns339ZwpZcn5rk5kS/2Hcr4QZSmskaVCRBS69I/chKNdTQoo7umiNA17gjXDLlATxyWv1yroGBmIR4k78bwRoZc8vqCuAVr1jERSjAKJWcxAAHRCq6yZtbc3P+/a+T6wH3pQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=N+Uzl4TN; arc=none smtp.client-ip=185.246.84.56 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.b="N+Uzl4TN" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 7B61A1A2A92; Tue, 27 Jan 2026 19:42:57 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3D558606F5; Tue, 27 Jan 2026 19:42:57 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 82722119A8805; Tue, 27 Jan 2026 20:42:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1769542976; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=LxODmhj+aDB7JQCnHOyVi0D4FK4/h5N30z7wT+UWL6M=; b=N+Uzl4TNibP5tniqoiBH0ceWqofhIdCIffbXamfIqUN7Znw7fPEZpa9YrswlVMrhTCVevV ATfnSAW727/axlGF0xacqo5ZjKFOcqYyBQnOFVGvtVC2XXZ/1tZAQIesiCVGPEv1pkWcXg usNgGFdjVcxacTeEtSKtEa2IJaFW6ut/1u5WryzKEIsddRt+nMT1OVU0gGyVRGKzOgrAdT xbmolJiFSd4kTBOWoV1PLYgbYaoG8C7XJ9F39komUK1Fj4IK/NlrwNxC0CucjN/PXOX14f DE6h/1Wjql0qbgJccq+/64JO0PjE50ENStLzMxJS7hwXUMX0m4TRmJE2afBdwg== Message-ID: <30d79989-749a-4d4b-993a-18f3e0bc786c@bootlin.com> Date: Tue, 27 Jan 2026 20:42:49 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v4 1/8] net: dsa: microchip: Add support for KSZ8463 global irq To: "Bastien Curutchet (Schneider Electric)" , Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Simon Horman Cc: Pascal Eberhard , =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260127-ksz8463-ptp-v4-0-652e021aae86@bootlin.com> <20260127-ksz8463-ptp-v4-1-652e021aae86@bootlin.com> From: Maxime Chevallier Content-Language: en-US In-Reply-To: <20260127-ksz8463-ptp-v4-1-652e021aae86@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 Hi, On 27/01/2026 10:06, Bastien Curutchet (Schneider Electric) wrote: > KSZ8463's interrupt scheme differs from the others KSZ swicthes. Its > global interrupt handling is done through an 'enable irq' register > instead of a 'mask irq' one, so the bit logic to enable/disable > interrupt is reversed. Also its interrupts registers are 16-bits > registers and don't have the same address. > > Add ksz8463-specific global interrupt setup function that still relies > on the ksz_irq_common_setup(). > Add a check on the device type in the irq_chip operations to adjust the > bit logic for KSZ8463 > > Signed-off-by: Bastien Curutchet (Schneider Electric) Reviewed-by: Maxime Chevallier Maxime