diff options
author | Dima Zavin <dima@android.com> | 2010-02-02 17:49:23 -0800 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2010-02-02 17:49:23 -0800 |
commit | b0869f171e59f84d2addd9b74e6e01620f1b9773 (patch) | |
tree | 506752ab5d88772884e8c40d64f90e4b2b4e4a3f | |
parent | aecf30ba1f51f5ca80ef39d014916cb5b5a84c1d (diff) | |
download | lk-b0869f171e59f84d2addd9b74e6e01620f1b9773.tar.gz |
platform: msm: ensure the ep0 buf is page aligned
Signed-off-by: Dima Zavin <dima@android.com>
-rw-r--r-- | platform/msm_shared/hsusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/msm_shared/hsusb.c b/platform/msm_shared/hsusb.c index b0bf7a82..08f668d8 100644 --- a/platform/msm_shared/hsusb.c +++ b/platform/msm_shared/hsusb.c @@ -513,7 +513,7 @@ int udc_init(struct udc_device *dev) dprintf(INFO, "USB init ept @ %p\n", epts); memset(epts, 0, 32 * sizeof(struct ept_queue_head)); - //dprintf(INFO, "USB ID %08x\n", readl(USB_ID)); + dprintf(INFO, "USB ID %08x\n", readl(USB_ID)); // board_usb_init(); /* select ULPI phy */ @@ -538,7 +538,7 @@ int udc_init(struct udc_device *dev) ep0out = _udc_endpoint_alloc(0, 0, 64); ep0in = _udc_endpoint_alloc(0, 1, 64); ep0req = udc_request_alloc(); - ep0req->buf = malloc(4096); + ep0req->buf = memalign(4096, 4096); { /* create and register a language table descriptor */ |