Thread (3 messages) flat view 3 messages, 3 authors, 2015-03-04

Re: [PATCH 07/10] usb: Make sure that DWC2 initializes after the power channel mailbox driver.

From: Stephen Warren <hidden>
Date: 2015-03-04 03:17:24

Possibly related (same subject, not in this thread)

On 03/03/2015 01:32 AM, Lee Jones wrote:
On Mon, 02 Mar 2015, Eric Anholt wrote:
quoted
This gets USB working on the Raspberry Pi without relying on U-Boot to
send the power message for us.  Without it, you would get warnings
about fifo sizes and "dwc2_core_reset() HANG! Soft Reset
GRSTCTL=80000001" leading to a failed probe.
quoted
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
quoted
+bool bcm2835_usb_power_enabled(void)
+{
+#ifdef CONFIG_BCM2835_MBOX
Please don't put #ifdeffery in *.c files.  If you have to match on
CONFIG_* options, please do so using inlines in a header file
somewhere.
I haven't heard of that restriction before. I'm sure there are many
ifdefs in C files in the kernel. What benefit does moving the ifdefs
into headers have?
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help