Alex Au wrote:
I downloaded (using bitkeeper) the gadget-2.4 source tree and I noticed that
the "arch\arm\mach-pxa" and "include\asm-arm\arch-pxa" folders are not in
the source tree.  These 2 folders are present in the gadget-2.6 tree.  I
have the Lubbock board running 2.4.19 kernel.  Does it mean I need to

So presumably you're using the 2.4.19-rmk7-pxa2 (or pxa1) patch -- that should behave nicely. Some of the PXA files are already in the 2.6 kernel, but 2.5.70-rmk1-pxa1 isn't quite ready yet. (I saw modprobe oopses when loading gadget drivers, though not when loading pxa2xx_udc.)

If you have the 2.6 kernel there's also a small patch to tell that kernel
about the Lubbock USB disconnect IRQ ... which works just fine on 2.4, but
the pxa patches don't know about it yet.  You might feel motivated to do
that backpatch (#define the IRQ and update the lubbock.c platform code
that knows about how many irqs the fpga gives you).


incorporate your gadget source into my source tree and modify the some
Makefile and Config.in files in order to try out the gadget API? The macro
"IRQ_USB" is not defined in gadget-2.4 tree without the those folders...

Exactly. You can do it with symlinks from your PXA tree into that BK clone, for these files:

  drivers/usb/gadget  ... whole directory
  include/linux/usb_{gadget,gadgetfs,ch9}.h

Plus the relevant changes in

  drivers/Makefile
  drivers/usb/Makefile
  drivers/usb/Config.in

Or if you like, generate a patch comparing your clone against the latest
Linux 2.4 tree, using BK 3.x and this command:

bk export -tpatch -r`bk repogca bk://linux.bkbits.net/linux-2.4`,+

Then apply that to your older 2.4 tree ... you'll notice everything except
the Makefile and Config.in changes apply cleanly.  Symlinking the source
has an advantage that you can more easily pull updates from BK, or send
patches against it.

- Dave




------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to