net: xilinx_emacps: Fix issue with wake-on-LAN

When checking the WOL register value against the option masks, use '&'
rather than '|' so the bitwise operations work as expected.

Signed-off-by: Jeff Westfahl <jeff.westfahl@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Jaeden Amero <jaeden.amero@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
APF: cleanup before enabling xlnk loading from device tree

Minor cleanup to return 0 directly

Signed-off-by: S Mohan <s.mohan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
APF: Second cleanup before enabling xlnk loading from device tree

Move some initialization code from init to probe

Signed-off-by: S Mohan <s.mohan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
APF: enable xlnk loading from device tree

Basic code changes to allow xlnk to be loaded from device tree

Signed-off-by: S Mohan <s.mohan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
APF: enable and disable clocks for xlnk

Read the available clocks from device tree at probe time
and enable them on xlnk_open and disable them on xlnk_close

Signed-off-by: S Mohan <s.mohan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
tty: xuartps: Add support for setting modem control signals

Add support for setting the state of the DTR and RTS signals.

Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
net: can: comparison of unsigned variable

err was of the type u32. it was being compared with < 0, and being
an unsigned variable the comparison would have been always false.

moreover, err was getting the return value from set_reset_mode()
and xcan_set_bittiming(), and both are returning int.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>