Re: [PATCH] usb: gadget: aspeed_udc: fix device address configuration

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

 



Hi Ryan,

> > /* Main config reg */
> > -#define UDC_CFG_SET_ADDR(x)            ((x) & 0x3f)
> > -#define UDC_CFG_ADDR_MASK              (0x3f)
> > +#define UDC_CFG_SET_ADDR(x)            ((x) & UDC_CFG_ADDR_MASK)
> > +#define UDC_CFG_ADDR_MASK              GENMASK(6, 0)
> > 
> 
> It should be GENMASK(5,0), not GENMASK(6, 0), am I  right?

No, that was the bug: we need bits 0:6 (== 0x7f) here.

With the mask of 0:5 (== 0x3f), we don't get the full USB address set.

Cheers,


Jeremy




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux