Revert "Android alarm: IOCTL command encoding fix"

commit 87dd2c484ae11e2e0a34996d96bfbfaf20f57b45 upstream.

Commit 8d60d6aaf085d1728a4fda1f59b47622fe2ab495. changed the
ANDROID_ALARM_GET_TIME ioctls from IOW to IOR.  While technically
correct, the _IOC_DIR bits are ignored by alarm_ioctl, so the
commit breaks a userspace ABI used by all existing Android devices
for a purely cosmetic reason.  Revert it.

Change-Id: Iee360bb07891e317c4172ef544fc77d99488e5e9
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
OMAP4: MUSB: peripheral isoch in transfer support

This patch fixes the following
1. The logic that determines a short packet endpoint sizes to be a power of
   2 number. This is typically not true for isochronous endpoints.
2. When a short/zero packet or DMA mode 0 is used, and TXPKTRDY is needed to
   be set by the CPU, the ISO bit should be set if its an isochronous transfer.
3. When a short/zero packet or DMA mode 0 is used, and TXPKTRDY is set by the
   CPU, g_giveback_request is deferred till the endpoint interrupt occurs.

Change-Id: I87873496b90755cf78fd283ca996f17f02408dcd
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
Merge remote-tracking branch 'omapzoom/p-android-omap-3.0' into cm-10.1-dev