From: sashiko-bot@kernel.org
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
linux-pci@vger.kernel.org
Subject: Re: [RFC PATCH 08/11] PCI: Move CardBus device setup to setup-cardbus.c
Date: Mon, 09 Nov 2026 21:17:06 +0000 [thread overview]
Message-ID: <sashiko-outbox-205657@kernel.org> (raw)
In-Reply-To: <20261109210714.3862-9-ilpo.jarvinen@linux.intel.com>
> CardBus support can be disabled with CONFIG_CARDBUS, but
> pci_setup_device() still sets up CardBus bridges regardless of it. This
> inconsistency leads to a few corner cases in the resource sizing and
> assignment algorithm where CardBus bridges are treated like normal PCI
> devices.
>
> Move the CardBus-specific part of pci_setup_device() into
> pci_setup_cardbus_device() in setup-cardbus.c and ignore CardBus bridges
> when CARDBUS is not set.
>
> If a CardBus bridge that is Function 0 of a Multi-Function Device is
> ignored, pci_scan_slot() does not enumerate the other Functions either.
> Without CARDBUS, this makes the other Functions of CardBus combo chips
> unusable, e.g., the SD controller of the Ricoh RL5C476 (sdhci-pci), and
> the FireWire (firewire-ohci), Flash Media (tifm_7xx1), and SD
> (sdhci-pci) controllers of the TI PCIxx21. Making those drivers depend
> on CARDBUS would force CardBus also on users of chips without CardBus,
> e.g., the SD controller of the Ricoh R5C832 family, where Function 0 is
> a FireWire controller.
>
> CARDBUS defaults to y if CONFIG_PCCARD is enabled and the yenta_socket
> driver (CONFIG_YENTA) selects it, so CARDBUS=n on hardware with a
> CardBus slot is most likely an intentional choice. It seems reasonable
> to require users with such an exceptional config to enable CARDBUS to
> keep using the drivers above with this legacy hardware.
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261109210714.3862-1-ilpo.jarvinen@linux.intel.com?part=8
next prev parent reply other threads:[~2026-11-09 21:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 21:07 [PATCH 00/11] PCI/CardBus: Disable properly when CARDBUS=n & fix some issues along the way Ilpo Järvinen
2026-11-09 21:07 ` [PATCH 01/11] PCI: Free device name when pci_setup_device() fails Ilpo Järvinen
2026-11-09 21:13 ` sashiko-bot
2026-11-09 21:07 ` [PATCH 02/11] PCI: Use Header Type in __pci_bridge_assign_resources() Ilpo Järvinen
2026-11-09 21:12 ` sashiko-bot
2026-11-09 21:07 ` [PATCH 03/11] PCI: Use Header Type to detect CardBus bridges in pci_resource_alignment() Ilpo Järvinen
2026-11-09 21:26 ` sashiko-bot
2026-11-09 21:07 ` [PATCH 04/11] PCI: Fix off-by-one in CardBus resource names Ilpo Järvinen
2026-11-09 21:12 ` sashiko-bot
2026-11-09 21:07 ` [PATCH 05/11] PCI: Move pci_read_bases() wrapper with BUILD_BUG_ON() to pci.h Ilpo Järvinen
2026-11-09 21:17 ` sashiko-bot
2026-11-09 21:07 ` [PATCH 06/11] mmc: sdricoh_cs: Depend on CARDBUS Ilpo Järvinen
2026-11-09 21:11 ` sashiko-bot
2026-11-09 21:07 ` [RFC PATCH 07/11] pcmcia: yenta_socket: Always select CARDBUS Ilpo Järvinen
2026-11-09 21:12 ` sashiko-bot
2026-11-09 21:07 ` [RFC PATCH 08/11] PCI: Move CardBus device setup to setup-cardbus.c Ilpo Järvinen
2026-11-09 21:17 ` sashiko-bot [this message]
2026-11-09 21:07 ` [PATCH 09/11] PCI: Move CardBus legacy mode quirk " Ilpo Järvinen
2026-11-09 21:14 ` sashiko-bot
2026-11-09 21:07 ` [RFC PATCH 10/11] PCI: Move Ricoh RL5C476 MMC " Ilpo Järvinen
2026-11-09 21:17 ` sashiko-bot
2026-11-09 21:07 ` [PATCH 11/11] PCI: Move CardBus resource names " Ilpo Järvinen
2026-11-09 21:14 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-205657@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-pci@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.