I2C: cadence: Fix i2c interrupt handler race conditions

The code was marking completion before the interrupt handler had finished
altering the data buffers and setting the error status. Now we defer
marking completion until the very end of the interrupt handler.

Signed-off-by: Andrew Worsley <amworsley@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
I2C: cadence: Fix bug creating corrupt i2c transfers

Make sure i2c address is set as last step of transfer setup
as this triggers the hardware transfer.

Signed-off-by: Andrew Worsley <amworsley@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
edac: zynq: Fix kernel panic in sysfs when ddr ecc enabled

This patch will fix the kernel panic occurs in sysfs_create_groups while
creating the edac memory controller attributes and when ddr ecc is enabled.
The mc_num argument for edac_mc_alloc function point to the current memory
controller number. The current driver passing this value as 0xffffffff
(pdev->id) this is wrong and causing the kernel panic. so, since zynq has
single ddr controller, always passing this argument value as zero.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Fix compilation failure because of release_thread

Warning log:
In file included from arch/microblaze/include/asm/thread_info.h:21:0,
                 from include/linux/thread_info.h:54,
                 from include/asm-generic/preempt.h:4,
                 from arch/microblaze/include/generated/asm/preempt.h:1,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/sysfs.h:20,
                 from include/linux/kobject.h:21,
                 from include/linux/device.h:17,
                 from include/linux/node.h:17,
                 from include/linux/cpu.h:16,
                 from arch/microblaze/kernel/process.c:11:
arch/microblaze/include/asm/processor.h:125:20: warning: no previous prototype
for 'release_thread' [-Wmissing-prototypes]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
watchdog: zynq: Add more blank lines to the driver

Separate return values. Separate variables.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
watchdog: zynq: Clean zynq_wdt_remove function

Remove unneeded variables.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: phy-zynq: Use SIMPLE_DEV_PM_OPS

Simplify code around PM functions.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
memory: zynq: Remove clock notifier

The clock notifier was just an emty placeholder. Remove this dead code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
spi: zynq: Remove clock notifier

The clock notifier was just an emty placeholder. Remove this dead code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
net: xemacps: Remove clock notifier

The clock notifier was just an emty placeholder. Remove this dead code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
spi: zynq-qspi: Remove clock notifier

The clock notifier was just an emty placeholder. Remove this dead code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
USB: phy-zynq: Remove clock notifier

The clock notifier was just an emty placeholder. Remove this dead code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
USB: ehci-zynq: Remove clock notifier

The clock notifier was just an emty placeholder. Remove this dead code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
USB: zynq_udc: Remove clock notifier

The clock notifier was just an emty placeholder. Remove this dead code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
USB: zynq: Remove clock notifier data struct member

None of the Zynq USB drivers uses clock notifiers. Hence, the
notifier_data members of the driver data structs are obsolete.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
I2C: cadence: Print warning when rejecting rate changes

In order to make debugging clock notifiers easier, print a warning when
rejecting a rate change (cmp:
http://www.spinics.net/lists/arm-kernel/msg310596.html)

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>