can: xilinx: Fix compilation errors

Fix the compilation errors in driver code when CONFIG_PM_SLEEP
is enabled.

Signed-off-by: Matthias Auchmann <m.auchmann@artech.at>
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
can: xilinx: Fixed IRQ handling

Remove call to free_irq as devm_request_irq doesn't need it.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
can: xilinx: Fixed issues with extended frames and error frames

In case of Extended frames,fix the incorrect shift done on ID value.
In the case of lost of tx-interrupts the echo buffer would fill up.
For error frames in case of error the cf->can_dlc gets initialized
to 8 by alloc_can_err_skb(),and if there is no data cf->can_dlc++
increments to 9 which leads to kernel WARN.

Signed-off-by: Matthias Auchmann <m.auchmann@artech.at>
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
can: xilinx: Fix issues when receiving CAN frames

Fix the CAN frame format issue on the received CAN frames
before pushing it to upper layer.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
apf: Fix Kconfig entry

Replace spaces by tabs and remove if ... and use depends on
instead.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>