svn commit: r353642 - head/sys/dev/usb/controller
Hans Petter Selasky
hps at selasky.org
Wed Oct 16 13:58:22 UTC 2019
On 2019-10-16 15:53, Emmanuel Vadot wrote:
> Author: manu
> Date: Wed Oct 16 13:53:53 2019
> New Revision: 353642
> URL: https://svnweb.freebsd.org/changeset/base/353642
>
> Log:
> dwc3: Use a pair of ()'s around arguments for some macros
>
> Reported by: hselasky
> MFC after: 1 week
> X-MFC-With: r353533
>
> Modified:
> head/sys/dev/usb/controller/dwc3.h
>
> Modified: head/sys/dev/usb/controller/dwc3.h
> ==============================================================================
> --- head/sys/dev/usb/controller/dwc3.h Wed Oct 16 13:30:28 2019 (r353641)
> +++ head/sys/dev/usb/controller/dwc3.h Wed Oct 16 13:53:53 2019 (r353642)
> @@ -92,8 +92,8 @@
> #define DWC3_GUSB3PIPECTL0_PHYSOFTRST (1 << 31)
> #define DWC3_GUSB3PIPECTL0_DELAYP1TRANS (1 << 18)
>
> -#define DWC3_GTXFIFOSIZ(x) (0xc300 + 0x4 * x)
> -#define DWC3_GRXFIFOSIZ(x) (0xc380 + 0x4 * x)
> +#define DWC3_GTXFIFOSIZ(x) (0xc300 + 0x4 * (x))
> +#define DWC3_GRXFIFOSIZ(x) (0xc380 + 0x4 * (x))
> #define DWC3_GEVNTADRLO0 0xc400
> #define DWC3_GEVNTADRHI0 0xc404
> #define DWC3_GEVNTSIZ0 0xc408
>
One more:
86 #define DWC3_GUSB2PHYCFG0_PHYSEL(x) ((x >> 7) & 0x1)
/* 0 = USB2.0, 1 = USB1.1 */
--HPS
More information about the svn-src-all
mailing list