diff options
author | Deepa Dinamani <deepad@codeaurora.org> | 2013-03-15 13:17:16 -0700 |
---|---|---|
committer | Deepa Dinamani <deepad@codeaurora.org> | 2013-03-18 17:48:49 -0700 |
commit | 4f9db03dfe086c89d8aaa5986e77b2f4d9e312c5 (patch) | |
tree | e365d0f36826721f8a05be52c9f2536ed487ea29 | |
parent | 73d7f4afb04b0191aa10877d0fc97e1a8a3cce27 (diff) | |
download | lk-4f9db03dfe086c89d8aaa5986e77b2f4d9e312c5.tar.gz |
platform: msm_shared: Modify the buffer used for endpoints to be cache line aligned.
CRs-Fixed: 459358
Change-Id: I8947bd0f1e3e4b0faca40cc20b0be0c464cfcdfe
-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 */ |