PCI: dw-rockchip: Unable to boot Quartz64 Model B from NVMe since reset changes

Niklas Cassel cassel at kernel.org
Mon Nov 23 04:16:56 PST 2026


On Mon, Nov 23, 2026 at 10:47:03AM +0000, James Le Cuirot wrote:
> On Thu, 2026-11-19 at 11:55 +0100, Niklas Cassel wrote:
> 
> > I guess we could also try to clear the interrupt just before unmasking it,
> > to see if this is a spurious interrupt, something like:
> > 
> > --- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> > +++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> > @@ -692,7 +692,7 @@ static int rockchip_pcie_configure_rc(struct platform_device *pdev,
> >         struct device *dev = &pdev->dev;
> >         struct dw_pcie_rp *pp;
> >         int irq, ret;
> > -       u32 val;
> > +       u32 reg, val;
> > 
> >         if (!IS_ENABLED(CONFIG_PCIE_ROCKCHIP_DW_HOST))
> >                 return -ENODEV;
> > @@ -739,6 +739,9 @@ static int rockchip_pcie_configure_rc(struct platform_device *pdev,
> >                 return ret;
> >         }
> > 
> > +       reg = rockchip_pcie_readl_apb(rockchip, PCIE_CLIENT_INTR_STATUS_MISC);
> > +       rockchip_pcie_writel_apb(rockchip, reg, PCIE_CLIENT_INTR_STATUS_MISC);
> > +
> >         /* unmask hot reset/link-down reset */
> >         val = FIELD_PREP_WM16(PCIE_LINK_REQ_RST_NOT_INT, 0);
> >         rockchip_pcie_writel_apb(rockchip, val, PCIE_CLIENT_INTR_MASK_MISC);
> 
> The good news is that this worked! :) Please go ahead and commit it if you
> believe it makes sense.

I sent a patch here:
https://lore.kernel.org/linux-pci/20261123121217.1107902-2-cassel@kernel.org/

Sending your Tested-by: tag might improve the chances that the maintainers
pick up the patch.


Kind regards,
Niklas



More information about the Linux-rockchip mailing list