adq


Andrew de Quincey's livejournal



  • 1

How do you use this?

(Anonymous)
Hi Andrew,
I would love to try this but I don't know how to go about building your patch into a kernel. In fact I have no idea how to build a kernel. Can you please point me in the right direction?

(I am semi technical in the sense I have basic coding knowledge)

Thanks.

Lim

How to build

(Anonymous)
Any chance you would be interested in writing up a step-by-step about how to build this with the patch for us noobs? Or maybe you have a link to a good tutorial?

I'm confused by following code lines in your patch:
================
/* select DEVICE mode */
writel(0x12, USB_USBMODE);
================

The purpose of driver ehci-hcd.ko is to enable HOST mode as default during init.
But above code lines is to enable DEVICE mode. Why?

I tried to Google "USB_USBMODE writel", and found different versions of this piece of code lines, examples:
================
/* Disable streaming mode and select host mode */
writel(0x13, USB_USBMODE);
================

or:
================
/* select HOST mode */
writel(0x10|USBMODE_HOST, USB_USBMODE); /* TODO CIAN - No idea what the 0x10 is for... */
================

or:
================
/* set USBMODE to host mode */
temp = readl(hcd->regs + USBMODE_OFFSET);
writel(temp | USBMODE_CM_HOST, hcd->regs + USBMODE_OFFSET);
================

Which one is correct?
Or all of them are workable for enabling HOST mode?

The patch also contains /many/ changes for the device mode code, so I think you're seeing those mixed in with the host mode stuff.

The host mode stuff is exclusively in ehci-msm7201.c

  • 1
?

Log in