[Media:Radio] wl12xx: Fix for overflow while getting irq status

->dlen is 8 bit long and so while memcpy there is a chance
that fmdev->irq_info.flag will overflow.

So this patch removes memcpy and instead copies the 16bit flag
register value from skb->data to fmdev->irq_info.flag directly.

Change-Id: I37604b91b2777ed9e56a7e1c1ecefe32e9024170
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Add support for Russian Band

This patch adds support for russian band (frequency range
65.8 MHz to 74 MHz).

This frequency range comes under OIRT FM broadcast band which is
currently used by Russia,Belarus,Moldova and Ukraine.

User app has to write "2" to "/sys/class/video4linux/radio0/fmrx_band"
to switch to Russian/OIRT band.

Change-Id: I26ea5b54afab10eb1769e0b07421d0b98ca24eee
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Miscellaneous fixes for FM Receiver

This patch fixes below small issues with FM RX,
	1) Enables the support for FM Alternate Frequency
	2) Modifies Wrap_Seek such that seek will try for one time
	   and if it didn't get a good station within, then returns
	   the default frequency according to band.

Change-Id: Id9ca57451847617fade8959154f205cfff06faee
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
[Media:Radio] WiLink: Add support for complete scan

This patch adds support for complete scan feature.

To start/stop/read complete scan user has to write to
'/sys/class/video4linux/radio0/fmrx_comp_scan'

After complete scan read on /dev/radio will give the
scanned results

Change-Id: Ic02408cfbfcea3c10623da8f377a0224ce7b4c31
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
Revert "Revert "MFD: twl6040-codec: Add uEvent based event notification""

This reverts commit e620621db9df512101087a0db1e2ccf5a90b14eb.
Revert "Revert "MFD: twl6040-codec: Add register cache""

This reverts commit 378578e80deba05758df0253b7817859805bbdee.
Revert "Revert "MFD: twl6040-codec: Add register supply query APIs""

This reverts commit 0b9a0b75b649d74ad7ab60f014d7ddb1759fb9e0.
Revert "Revert "MFD: twl6040-codec: Add register context restore""

This reverts commit 496184b5ceb42ff6bcf7136cd9bab21ef35c97cd.
Revert "Revert "MFD: twl6040-codec: Handle thermal interrupt""

This reverts commit 4ec2cd121d16cb6900fa49e4f8288209d15ae901.
Revert "Revert "MFD: twl6040-codec: Refactor power-on verification""

This reverts commit a8a09682532b71dca4b3fbdd20b19b6ddc8689bd.
Revert "Revert "MFD: twl6040-codec: Change power-up verification policy""

This reverts commit 00ae647905a17ec7c44cbbc850f41629d9b27725.
MFD: twl6040-codec: cancel synch all active works on suspend

The TWL6040 vib_update work has to be canceled synchronously
before continue suspending, because of:
- it may sleep while accessing to I2C bus and, as result, WFI may be
reached in the middle of its execution and that may prevent system
from entering to OFF state.
- the device suspend handler may switch TWL6040 device to sleep
state while vib_update work is still active.

Change-Id: I77b681188976378eec9242ea64dc5f001960d279
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
bma180: cancel synch active accel work on suspend

The bma180_accel_device_worklogic has to be canceled synchronously
before continue suspending, because of:
- it may sleep while accessing to I2C bus and, as result, WFI may be
reached in the middle of its execution and that may prevent system
from entering to OFF state.
- the accel device suspend handler may switch bm180 to sleep state while
bma180_accel_device_worklogic is still active.

Change-Id: I66d56c895a37cc9391cfbb095f6e9ee45be86e49
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
UVC: Enable CONFIG_USB_VIDEO_CLASS to default.

Enables the USB camera support in V4L driver.

Change-Id: Ief86b72fb4216adcf1c4fb11cff0f4f5c61998f9
Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
OMAP4: ST: Disabling UART if ldisc not installed.

In cases when there is no line discipline to be installed UART chip must be
disabled.

Rationale: if ldisc is not installed so it can't be uninstalled.
Thus UART chip still enabled and we have wakelock for it
(see plat_uart_enable() function in both blaze and 44xx-tablet board files).
In that case we can't go in suspend mode.

Motivation: when using busybox ramdisk (e.g. for testing kernel w/o AFS) we
have no ldisc that causes impossibility to go to suspend mode.

Change-Id: I6fac0b9411ed765e8e598328b89a41a50b5fbfea
Signed-off-by: Semen Protsenko <semen.protsenko@ti.com>
omap: mailbox: process all messages before suspend

The mailbox for remote processors must wait for all messages
from remote processors to be processed before unregistering
block notifiers.

Change-Id: I75ae76dacdb95582b5f075690c2c3ecaf99e5f65
Signed-off-by: Shahid Akhtar <sakhtar@ti.com>
cache-2dmanager: force compile fail if cache sizes not specified.

Change-Id: Iad49ef78552994e4611c1c7b79af2d38b2fb141c
Signed-off-by: Craig Stout <craig.stout@ti.com>
net: ks8851: report link state change

ks8851 is used in blaze/tablet but its driver doesn't report
the change of link state. Now this event is handled properly

Change-Id: I052673b51ef2be854439b41b2f323888df674d09
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
OMAP: mcbsp: Fix error checks of rx_irq.

rx_irq is intialized via a call to platform_get_irq_byname(), which can
return a negative error value.  Also, zero is a valid irq.  Fix checks
that assumed non-zero values were the only valid rx_irq values.

Change-Id: I6be171eefa5923021e4adccf71f21baad3383554
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
I2C: omap: Fix error condition when slave sends a NAK

Fix an issue in the omap i2c host controller driver where it was not properly
clearing out an error condition in the unit after a NAK'ed transaction causing
the subsequent transaction to time out.

Change-Id: I5cdc8e740acdbc8116dca4d13f1a2cee37f75582
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>