Thread (10 messages) flat view 10 messages, 5 authors, 2005-08-10

Re: [linuxppc] 2.6.12-3 header <asm/usb.h> missing ?

From: Kumar Gala <hidden>
Date: 2005-08-10 19:53:55

On Aug 10, 2005, at 2:44 PM, Thomas S. wrote:
Kumar,

thanks for the Info, that helps. Do you know if in this kernel Version
the MPC5200 USB Bug is already handled?
I really dont.  I done next to nothing with the 5200.
I refer to errata document MPC5200E.pdf (I think rev. 06/2005) in  
which
its stated that the frame_no and pad1 words are swapped in the
processors OHCI Area. I saw in some earlier 2.4 kernel that in
/drivers/usb/host/ohci.h the members frame_no and pad1 of struct
ohci_hcca were swapped. maybe thats not necessary anymore ?

Im using this driver to support our embedded system modules equipped
with the 5200 (see the EM1 board on www.men.de for specs).

regards,
Thomas


Kumar Gala wrote:
quoted
Well for the 5200 Thomas should be using include/linux/fsl_devices.h

If/when 4xx coverts over to platform devices we could have an
equivalent include file if truly needed.

- kumar

On Aug 9, 2005, at 11:58 AM, John Otken wrote:

quoted
My patch to add on-chip OHCI support to the 440EP adds
an asm/usb.h reference to 4xx/ibm440ep.c.  Thomas may
also require it for his MPC5200 mods.

I don't like small include files either.  Perhaps there
is an existing file where struct usb_hcd_platform_data
can live.  Any suggestions?

John


Kumar Gala wrote:

quoted
Why are we bothering with asm-ppc/usb.h anyways?

The structure defn only appears to be used once.  If this is  true,
why
quoted
quoted
quoted
not just define it in the .c file.

- kumar

On Aug 9, 2005, at 7:19 AM, John Otken wrote:


quoted
Google found it for me.  It is in my "Support 440EP
On-Chip OHCI USB Host Controller" patch:

http://patchwork.ozlabs.org/linuxppc/patch?id=1965


diff -uprN a/include/asm-ppc/usb.h b/include/asm-ppc/usb.h
--- a/include/asm-ppc/usb.h    1969-12-31 17:00:00.000000000 -0700
+++ b/include/asm-ppc/usb.h    2005-08-05 06:13:58.000000000 -0500
@@ -0,0 +1,13 @@
+/*
+ * ppc/usb.h:
+ *
+ */
+#ifndef _PPC_USB_H
+#define _PPC_USB_H
+
+struct usb_hcd_platform_data {
+    int (*start) (struct platform_device *pdev);
+    void (*stop) (struct platform_device *pdev);
+};
+
+#endif /* !(_PPC_USB_H) */

Kumar Gala wrote:


quoted

Begin forwarded message:



quoted
From: "Thomas S." <redacted>
Date: August 8, 2005 4:48:03 PM CDT
To: <redacted>
Subject: [linuxppc] 2.6.12-3 header <asm/usb.h> missing ?


Hello,

Im using Kernel PPC on a MPC5200 board and try to use the onChip
USB. In
file /drivers/usb/host/ohci-ppc-soc.c a file <asm/usb.h> is
included
quoted
quoted
quoted
quoted
quoted
quoted
which seems to be missing. I cant find it anywhere , any ideas ?

Thomas




-
To unsubscribe from this list: send the line "unsubscribe linux-
kernel"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
quoted
quoted
quoted
quoted
quoted
quoted
Please read the FAQ at  http://www.tux.org/lkml/


_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help