Re: [PATCH v36 04/31] usb: host: xhci-plat: Set XHCI max interrupters if property is present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 28, 2025 at 03:44:00PM +0800, Puma Hsu wrote:
> On Wed, Mar 19, 2025 at 8:54 AM Wesley Cheng <quic_wcheng@xxxxxxxxxxx> wrote:
> >
> > Some platforms may want to limit the number of XHCI interrupters allocated.
> > This is passed to xhci-plat as a device property.  Ensure that this is read
> > and the max_interrupters field is set.
> >
> > Signed-off-by: Wesley Cheng <quic_wcheng@xxxxxxxxxxx>
> 
> Tested-by: Puma Hsu <pumahsu@xxxxxxxxxx>
> 

Tested-by: Daehwan Jung <dh10.jung@xxxxxxxxxxx>

> > ---
> >  drivers/usb/host/xhci-plat.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
> > index 3155e3a842da..6dab142e7278 100644
> > --- a/drivers/usb/host/xhci-plat.c
> > +++ b/drivers/usb/host/xhci-plat.c
> > @@ -267,6 +267,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
> >
> >                 device_property_read_u32(tmpdev, "imod-interval-ns",
> >                                          &xhci->imod_interval);
> > +               device_property_read_u16(tmpdev, "num-hc-interrupters",
> > +                                        &xhci->max_interrupters);
> >         }
> >
> >         /*
> >
> 
> 





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux