diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2013-03-19 23:09:48 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-03-19 23:09:48 -0700 |
commit | ea9dd7e722129ed7ec57e2df1a7e33fc81de3c3a (patch) | |
tree | 40e3dcfe5e1a650b23a32615ac43b015a0d1ba8f | |
parent | 1d9ce730cb708378c5f6f62f45099f25415ccc50 (diff) | |
parent | 4f9db03dfe086c89d8aaa5986e77b2f4d9e312c5 (diff) | |
download | lk-ea9dd7e722129ed7ec57e2df1a7e33fc81de3c3a.tar.gz |
Merge "platform: msm_shared: Modify the buffer used for endpoints to be cache line aligned."
-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 e44501f7..897c181f 100644 --- a/platform/msm_shared/hsusb.c +++ b/platform/msm_shared/hsusb.c @@ -688,7 +688,7 @@ int udc_init(struct udc_device *dev) /* Bus access related config. */ writel(0x08, USB_AHB_MODE); - epts = memalign(4096, 4096); + epts = memalign(lcm(4096, CACHE_LINE), ROUNDUP(4096, CACHE_LINE)); dprintf(INFO, "USB init ept @ %p\n", epts); memset(epts, 0, 32 * sizeof(struct ept_queue_head)); @@ -706,7 +706,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 = memalign(CACHE_LINE, 4096); + ep0req->buf = memalign(CACHE_LINE, ROUNDUP(4096, CACHE_LINE)); { /* create and register a language table descriptor */ |