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 1E4E234DB6D; Wed, 3 Dec 2025 16:03:19 +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=1764777799; cv=none; b=nooPXpzOL2jGJulB946zvB6Wvi24d1w84xj3QmeNMTzvGAh/P+r8ucmQAFdBmEz5orcJA5UebSQ7XPCnqAdRf69FHCNFrUO1i+tBFEWg+XIMRfqg66LLE8wN573lFS6SoZwWR79bouYcVz8Cjnl69GPCSKKoTmVN1O9cWAl4vg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777799; c=relaxed/simple; bh=zsNya3/5YHwK6CiakfImrZzY+cRwMD3M5pPmvtuwSRI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BiBiK47ZnNRqBXxFoRK/bnFZFxl4P+MCbRNeHrigfyoNunjj9m+XY6cA0JmU09ST4p/QtusOieopydx2pYHktBGhFsRvh99VggGzQVlGOhgzGZ4su3MBcTEnL4zFSttKc3XNqx9rphrYjR6ANmlRJtZzqaLu/x3LzbzfljBTLPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hEQEi6yb; 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="hEQEi6yb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A1FFC4CEF5; Wed, 3 Dec 2025 16:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764777799; bh=zsNya3/5YHwK6CiakfImrZzY+cRwMD3M5pPmvtuwSRI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hEQEi6yb6eIdP+XLnIxsPL4TD53GPn8mdQus9Sfuk8Rs2c+9VYHT4sX6ZHpedHBi9 alSQ+SPVbP/1zjnx3nYUYZG6+yjNB0FIXFs5imCTpC+toemHs6Ja58iSuWGYCvLDGR +JwNBhj4090EWmWZGt7hXAIDIJkftuT2oiE3kyug= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Daniel Palmer , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.15 150/392] eth: 8139too: Make 8139TOO_PIO depend on !NO_IOPORT_MAP Date: Wed, 3 Dec 2025 16:25:00 +0100 Message-ID: <20251203152419.603804708@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251203152414.082328008@linuxfoundation.org> References: <20251203152414.082328008@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-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Daniel Palmer [ Upstream commit 43adad382e1fdecabd2c4cd2bea777ef4ce4109e ] When 8139too is probing and 8139TOO_PIO=y it will call pci_iomap_range() and from there __pci_ioport_map() for the PCI IO space. If HAS_IOPORT_MAP=n and NO_GENERIC_PCI_IOPORT_MAP=n, like it is on my m68k config, __pci_ioport_map() becomes NULL, pci_iomap_range() will always fail and the driver will complain it couldn't map the PIO space and return an error. NO_IOPORT_MAP seems to cover the case where what 8139too is trying to do cannot ever work so make 8139TOO_PIO depend on being it false and avoid creating an unusable driver. Signed-off-by: Daniel Palmer Link: https://patch.msgid.link/20250907064349.3427600-1-daniel@thingy.jp Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/realtek/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/realtek/Kconfig b/drivers/net/ethernet/realtek/Kconfig index 93d9df55b361a..01811924c4db4 100644 --- a/drivers/net/ethernet/realtek/Kconfig +++ b/drivers/net/ethernet/realtek/Kconfig @@ -58,7 +58,7 @@ config 8139TOO config 8139TOO_PIO bool "Use PIO instead of MMIO" default y - depends on 8139TOO + depends on 8139TOO && !NO_IOPORT_MAP help This instructs the driver to use programmed I/O ports (PIO) instead of PCI shared memory (MMIO). This can possibly solve some problems -- 2.51.0