rtc: rtc-pm8xxx: Enable RTC write operation

Enable RTC write operation for the APQ based target where user-space
time-service is disabled.

CRs-Fixed: 467157
Change-Id: I20500866b56d7372feeb629cf9e4e360aa8d4bba
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-8064-pmic.c
USB: ci13xxx_udc: Don't free dTD immediately after active bit is cleared

USB controller may access the dTD one more time after clearing the active
bit in token field.  There is a possibility of software freeing it in this
window.  When this happens, USB controller may access incorrect memory and
leads to system level issues.

dTDs are freed when requests are freed by function drivers during
disconnect or unbind.  The above race condition will come into effect only
for zero length packets.  dTDs are dynamically created for sending zero
length packets on IN endpoints.  These dTDs are immediately freed after
active bit is cleared.  Defer this to next dTD completion.  It is safe to
assume that hardware will no longer access the previous dTD when the next
dTD is completed.

Don't allocate/free setup status phase and GET_STATUS data phase requests
dynamically.  Use  one request for both cases and allocate it during bind.

CRs-Fixed: 474557
Change-Id: I5d41c310e1bb35d93b5af7d90a24ce5aab24f5f9
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>

Conflicts:

	drivers/usb/gadget/ci13xxx_udc.c