From: "Sascha Hauer" <s.hauer@pengutronix.de>
To: "Ahmad Fatoum" <a.fatoum@barebox.org>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH v2 7/9] mci: add PCI SDHCI controller support
Date: Mon, 29 Jun 2026 09:04:20 +0000 [thread overview]
Message-ID: <E1we7ue-00000005edp-0RmS@pty.whiteo.stw.pengutronix.de> (raw)
In-Reply-To: <9f66c07d-b0f4-4a7c-bee3-3b3bf9caca17@barebox.org>
On 2026-06-29 10:51, Ahmad Fatoum wrote:
> Hello Sascha,
>
> On 6/29/26 10:47 AM, Sascha Hauer wrote:
> > On 2026-06-26 18:19, Ahmad Fatoum wrote:
> >> QEMU can expose eMMC through the class-compliant sdhci-pci device, but
> >> barebox only had platform SDHCI glue. Add a PCI host driver that maps BAR0,
> >> enables bus mastering, initializes the SDHCI core and registers an MCI host.
> >>
> >> This is intentionally small and PIO-based, which is enough for the QEMU RPMB
> >> test environment while reusing the common SDHCI helpers.
> >
> > Is this comment wrong? The driver depends on HAS_DMA and even calls
> > sdhci_setup_adma().
>
> Yes, I had problems getting RPMB access to work with PIO and ADMA fixed
> that and I had not dug deeper.
>
> Can you remove that paragraph when applying?
> >> index 4413fd1655aa..d6746fbec28f 100644
> >> --- a/drivers/mci/mci-core.c
> >> +++ b/drivers/mci/mci-core.c
> >> @@ -2942,7 +2942,7 @@ static struct device_node *mci_get_partition_node(struct device_node *hwnode,
> >> struct device_node *np;
> >> char partnodename[sizeof("bootx-partitions")];
> >>
> >> - if (index > 8)
> >> + if (!hwnode || index > 8)
> >> return NULL;
> >
> > Should this be an extra patch?
>
> This is the first non-DT instantiated device and thus there is no DT
> node. I can split this off if you like. The rest of the file seems to
> handle non-existence of a DT node just fine.
Back in the old days non-DT instantiated devices were the normal case,
so 15cc1fa00c ("mci: parse upstream boot/gp partition binding") might
have introduced a regression, so I would prefer to have this as a
separate patch.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2026-06-29 9:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-26 16:19 [PATCH v2 1/9] scripts: duplicate conftest.py as qemu_interactive.py Ahmad Fatoum
2026-06-26 16:19 ` [PATCH v2 2/9] test: move interactive QEMU launcher out of pytest Ahmad Fatoum
2026-06-26 16:19 ` [PATCH v2 3/9] usb: xhci-hcd: add XHCI over PCI driver Ahmad Fatoum
2026-06-26 16:19 ` [PATCH v2 4/9] scripts: qemu_interactive.py: add new --usbblk option Ahmad Fatoum
2026-06-26 16:19 ` [PATCH v2 5/9] scripts: qemu_interactive.py: add new --nvmeblk option Ahmad Fatoum
2026-06-26 16:19 ` [PATCH v2 6/9] mci: sdhci: define same SDHCI_INT_* constants as Linux Ahmad Fatoum
2026-06-26 16:19 ` [PATCH v2 7/9] mci: add PCI SDHCI controller support Ahmad Fatoum
2026-06-29 8:47 ` Sascha Hauer
2026-06-29 8:51 ` Ahmad Fatoum
2026-06-29 9:04 ` Sascha Hauer [this message]
2026-06-29 9:05 ` Ahmad Fatoum
2026-06-29 9:09 ` Sascha Hauer
2026-06-26 16:19 ` [PATCH v2 8/9] ARM: multi_v8_defconfig: enable OP-TEE and RPMB support Ahmad Fatoum
2026-06-26 16:19 ` [PATCH v2 9/9] scripts: qemu_interactive.py: add new --sdblk and --emmcblk options Ahmad Fatoum
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=E1we7ue-00000005edp-0RmS@pty.whiteo.stw.pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox