From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 86AE6324B19; Mon, 27 Oct 2025 18:47:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761590848; cv=none; b=mTiQYHQiVkVo87l+U40g1nQE4sjtZg1qXXUKsH7Tc/wYf13SslniVcut/6GnX+iH6VN+8LBWnw0qHNk6CuP6MxVZ6VE2P9lWihPTon1K4h6OnXu9vs9mdqTZfep+WDPNtukNuAZ14QfYe/TNxGb53me8WBSaa1MobJohGNnBWTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761590848; c=relaxed/simple; bh=vjOQwrKXgX8cBGA7L3ZiGMT7NQpx0jAgw2Ofz6PgvoU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Nizcv2fPWp/va+SG6aqB3t5V1G2tOVckM06kfjHPPOj3WEGj933VD5p+EkPu8y56yfstQtRLXmTU8AV0+sMGcgbsNuJHuPnC2OzOZFglNn6ui4mGEstsGfh3mxnXtRqMUYm1W2/okZqy81M+aYjwaJWsRXqmHdd98f1a6qOS+XI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SVhN3AcX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="SVhN3AcX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16877C4CEF1; Mon, 27 Oct 2025 18:47:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761590848; bh=vjOQwrKXgX8cBGA7L3ZiGMT7NQpx0jAgw2Ofz6PgvoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SVhN3AcX5aCBtJMegaGk1apaQ+T00Hm4BdIvfPCgfC9lnHAaaunuspzs0x75wKRSv xC9J2o5Xln0E13c+ledHCHiqfVrcL5px1LwYqZu/LeCQnnwB7eXz0Ey7Q+wgr3ZsD4 4zbw4oK617OPK1iPcxFLaLp7npE823qcFEwGZwAE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Maciej W. Rozycki" , Bjorn Helgaas , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Thomas Bogendoerfer Subject: [PATCH 5.4 196/224] MIPS: Malta: Fix keyboard resource preventing i8042 driver from registering Date: Mon, 27 Oct 2025 19:35:42 +0100 Message-ID: <20251027183514.059403410@linuxfoundation.org> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251027183508.963233542@linuxfoundation.org> References: <20251027183508.963233542@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Maciej W. Rozycki commit bf5570590a981d0659d0808d2d4bcda21b27a2a5 upstream. MIPS Malta platform code registers the PCI southbridge legacy port I/O PS/2 keyboard range as a standard resource marked as busy. It prevents the i8042 driver from registering as it fails to claim the resource in a call to i8042_platform_init(). Consequently PS/2 keyboard and mouse devices cannot be used with this platform. Fix the issue by removing the busy marker from the standard reservation, making the driver register successfully: serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX port at 0x60,0x64 irq 12 and the resource show up as expected among the legacy devices: 00000000-00ffffff : MSC PCI I/O 00000000-0000001f : dma1 00000020-00000021 : pic1 00000040-0000005f : timer 00000060-0000006f : keyboard 00000060-0000006f : i8042 00000070-00000077 : rtc0 00000080-0000008f : dma page reg 000000a0-000000a1 : pic2 000000c0-000000df : dma2 [...] If the i8042 driver has not been configured, then the standard resource will remain there preventing any conflicting dynamic assignment of this PCI port I/O address range. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Maciej W. Rozycki Signed-off-by: Bjorn Helgaas Reviewed-by: Ilpo Järvinen Acked-by: Thomas Bogendoerfer Cc: stable@vger.kernel.org Link: https://patch.msgid.link/alpine.DEB.2.21.2510211919240.8377@angie.orcam.me.uk Signed-off-by: Greg Kroah-Hartman --- arch/mips/mti-malta/malta-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/mips/mti-malta/malta-setup.c +++ b/arch/mips/mti-malta/malta-setup.c @@ -48,7 +48,7 @@ static struct resource standard_io_resou .name = "keyboard", .start = 0x60, .end = 0x6f, - .flags = IORESOURCE_IO | IORESOURCE_BUSY + .flags = IORESOURCE_IO }, { .name = "dma page reg",