]> rtime.felk.cvut.cz Git - zynq/linux.git/log
zynq/linux.git
8 years agovdma: xilinx: Fix vdmatest driver crashing when unloading as a module xilinx-v2015.2
Kedareswara rao Appana [Wed, 3 Jun 2015 06:18:50 +0000 (11:48 +0530)]
vdma: xilinx: Fix vdmatest driver crashing when unloading as a module

This patch fixes the issue vdmatest
driver crashing when unloading as a module.

get_task_struct and put_task_struct manage a thread's reference count.
After we done get_task_struct, it will always be safe to access that memory,
until we release it.get_task_struct and put_task_struct manage a thread's reference count.
If we call put_task_struct and we are the last one with a reference count, it does a bunch of
cleanup.

crash dump:
zynq> rmmod vdmatest
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 7e370000
[00000000] *pgd=3e133831, *pte=00000000, *ppte=00000000
Internal error: Oops - BUG: 17 [#1] PREEMPT SMP ARM
Modules linked in: vdmatest(-)
CPU: 1 PID: 633 Comm: rmmod Not tainted 4.0.0-xilinx-25035-gbf14dce-dirty #29
Hardware name: Xilinx Zynq Platform
task: 7e103100 ti: 7e1e4000 task.ti: 7e1e4000
PC is at exit_creds+0x14/0x84
LR is at __put_task_struct+0x10/0x58
pc : [<400375d0>]    lr : [<4001ead4>]    psr: 60000013
sp : 7e1e5ec8  ip : 00000000  fp : 3f0015f0
r10: 7e26ea38  r9 : 00200200  r8 : 00100100
r7 : 7d29554c  r6 : 00000000  r5 : 7e1d8a48  r4 : 7e1d8a40
r3 : 00000000  r2 : 00000000  r1 : 60000013  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 18c5387d  Table: 3e37004a  DAC: 00000015
Process rmmod (pid: 633, stack limit = 0x7e1e4210)
Stack: (0x7e1e5ec8 to 0x7e1e6000)
5ec0:                   7e1d8a40 4001ead4 7e1d8a40 40036448 7d29554c 7d295540
5ee0: 7d2955c0 7d295580 7d29554c 3f0004e0 7e127400 7d29554c 00000000 7e127410
5f00: 3f001620 7e127444 00000081 4000df64 7e1e4000 00000000 00000000 4026f71c
5f20: 4026f704 7e127410 3f001620 4026dfac 3f001620 7e127410 3f001620 4026e5e4
5f40: 3f001620 00000880 3effbf68 4026dd48 3f001664 4006f2a4 36f52000 616d6476
5f60: 74736574 45535500 00001000 7e1dc07c 7e1dc040 00001000 36f51000 4000df64
5f80: 7e1e4000 00000000 00000000 400a4b94 36f523ff 000fe1e8 3effbf68 00000000
5fa0: 00000001 4000dde0 3effbf68 00000000 3effbf68 00000880 000f21bb 000f21c8
5fc0: 3effbf68 00000000 00000001 00000081 00000001 00000000 3effbe8c 00000000
5fe0: 000f21c8 3effbaf0 0002cd74 36e50a3c 60000010 3effbf68 00000000 00000000
[<400375d0>] (exit_creds) from [<4001ead4>] (__put_task_struct+0x10/0x58)
[<4001ead4>] (__put_task_struct) from [<40036448>] (kthread_stop+0x90/0x98)
[<40036448>] (kthread_stop) from [<3f0004e0>] (xilinx_vdmatest_remove+0x54/0xe4 [vdmatest])
[<3f0004e0>] (xilinx_vdmatest_remove [vdmatest]) from [<4026f71c>] (platform_drv_remove+0x18/0x30)
[<4026f71c>] (platform_drv_remove) from [<4026dfac>] (__device_release_driver+0x7c/0xc0)
[<4026dfac>] (__device_release_driver) from [<4026e5e4>] (driver_detach+0x84/0xac)
[<4026e5e4>] (driver_detach) from [<4026dd48>] (bus_remove_driver+0x64/0x8c)
[<4026dd48>] (bus_remove_driver) from [<4006f2a4>] (SyS_delete_module+0x154/0x1d0)
[<4006f2a4>] (SyS_delete_module) from [<4000dde0>] (ret_fast_syscall+0x0/0x34)
Code: e1a04000 e5903304 e3a02000 e5900300 (e5933000)
---[ end trace ef75749866135c58 ]---

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agovdma: xilinx: Sync DT documentation with driver
Kedareswara rao Appana [Wed, 3 Jun 2015 06:18:49 +0000 (11:48 +0530)]
vdma: xilinx: Sync DT documentation with driver

This patch updates the DT documentation compatible
string to match with the driver.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoDocumentation: DTC Bindings: Add Zynq remoteproc binding
Wendy Liang [Wed, 3 Jun 2015 07:10:48 +0000 (00:10 -0700)]
Documentation: DTC Bindings: Add Zynq remoteproc binding

Add Zynq remoteproc binding to the documentation.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoremoteproc: zynq_remoteproc: Remove redundant IPI intr
Wendy Liang [Wed, 3 Jun 2015 07:10:47 +0000 (00:10 -0700)]
remoteproc: zynq_remoteproc: Remove redundant IPI intr

There are 3 IPI intrs required by zynq_remoteproc:

ipino
vring0
vring1

However, it actually just uses 2 which are:
vring0: remote sent message to master
vring1: master used to notify remote

This patch removes ipino but uses vring0 and vring1 for IPI on Zynq platform.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agomtd: spi-nor: Updated write register for spansion flashes
Anurag Kumar Vulisha [Thu, 28 May 2015 12:44:29 +0000 (18:14 +0530)]
mtd: spi-nor: Updated write register for spansion flashes

Since the spansion flash parts require status register and configuration register
to be written at the same time,changed write_sr_modify_protection to use write_sr_cr
instead of write_sr.
Changed spansion_quad_enable to retain the old status register values in order to
avoid unsetting of the previously enabled flash protection bits.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodma: zynqmp: Fix memleak in zynqmp_dma_free_chan_resources function
Punnaiah Choudary Kalluri [Thu, 28 May 2015 09:26:50 +0000 (14:56 +0530)]
dma: zynqmp: Fix memleak in zynqmp_dma_free_chan_resources function

Passed the correct memory block size to dma_free_coherent.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodma: zynqmp: Avoid early return from irq
Punnaiah Choudary Kalluri [Thu, 28 May 2015 09:26:49 +0000 (14:56 +0530)]
dma: zynqmp: Avoid early return from irq

Process all the irq events instead of early return

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodma: zynqmp: Remove channel ID and name
Punnaiah Choudary Kalluri [Thu, 28 May 2015 09:26:48 +0000 (14:56 +0530)]
dma: zynqmp: Remove channel ID and name

Removed channel id from DT as the current implementtaion treats
each channel as a standalone dma device.

Removed name variable from the channel instance as there is no
use with this variable.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodma: zynqmp: Use zynqmp-dma compatible string
Punnaiah Choudary Kalluri [Thu, 28 May 2015 09:26:47 +0000 (14:56 +0530)]
dma: zynqmp: Use zynqmp-dma compatible string

Deprecate the gdma and adma naming scheme and use zynqmp-dma instead
of those. Axi buswidth value differs between the gdma and adma.
So, Added this as DT property.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodma: zynqmp: Replace the zdma with zynqmp_dma
Punnaiah Choudary Kalluri [Thu, 28 May 2015 09:26:46 +0000 (14:56 +0530)]
dma: zynqmp: Replace the zdma with zynqmp_dma

This is to in sync with filename, using zynqmp_dma instead of
zdma.

Fixed checkpatch.pl warnings

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodma: zdma: Renamed the driver name and binding doc to zynqmp_dma
Punnaiah Choudary Kalluri [Thu, 28 May 2015 09:26:45 +0000 (14:56 +0530)]
dma: zdma: Renamed the driver name and binding doc to zynqmp_dma

Renamed the driver name and binding doc to zynqmp_dma.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agogpio: Added GPIO support to ZynqMP SoC
Anurag Kumar Vulisha [Thu, 28 May 2015 09:12:46 +0000 (14:42 +0530)]
gpio: Added GPIO support to ZynqMP SoC

Added support to ZynqMP SoC on the existing zynq gpio driver.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agochar:xilinx_hwicap:buffer_icap - change 1/0 to true/false for bool type variable...
Shailendra Verma [Mon, 25 May 2015 19:41:03 +0000 (01:11 +0530)]
char:xilinx_hwicap:buffer_icap - change 1/0 to true/false for bool type variable in function buffer_icap_set_configuration().

The variable dirty is bool type. Hence assign the variable with
bool value true/false instead of 1/0.

Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: Use MACB driver instead of emacps
Michal Simek [Mon, 25 May 2015 13:14:09 +0000 (15:14 +0200)]
ARM: zynq: Use MACB driver instead of emacps

Switch to macb driver which should be done long time ago.
There are two unsupported features which will be ported to mainline macb
driver in future. GMII2RGMII and support for multiple PHYs on the same
MDIO bus.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
8 years agospi: zynq-qspi: Use writesl/readsl
Thomas Betker [Tue, 19 May 2015 05:25:53 +0000 (07:25 +0200)]
spi: zynq-qspi: Use writesl/readsl

In zynq_qspi_fill_tx_fifo() and zynq_qspi_drain_rx_fifo(), use
writesl() and readsl(), resp. These helper functions are optimized for
this purpose, and they avoid unaligned memory access.

Warning: We don't use register access wrappers for writing/reading full
FIFO words, so if zynq_qspi_write() and zynq_qspi_read() are changed
some day, remember to check zynq_qspi_fill_tx_fifo() and
zynq_qspi_drain_rx_fifo() separately.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agospi: zynq-qspi: Simplify read_rx_fifo
Thomas Betker [Tue, 19 May 2015 05:25:52 +0000 (07:25 +0200)]
spi: zynq-qspi: Simplify read_rx_fifo

Simplify zynq_qspi_read_rx_fifo() by copying the data only once.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agospi: zynq-qspi: Add drain_rx_fifo function
Thomas Betker [Tue, 19 May 2015 05:25:51 +0000 (07:25 +0200)]
spi: zynq-qspi: Add drain_rx_fifo function

Factor out zynq_qspi_drain_rx_fifo() from zynq_qspi_irq(), for
readability.

Rewrite the loop to make clear that we read min(len, 4*rxcount) bytes
from the RxFIFO, which is what we want. The old code does the same,
provided that len%4==0 || txlen==0; this condition is satisfied due to
the FIFO fill/drain pattern. [When the condition is not satisfied, the
old code reads more than the desired number of bytes; all this is not
readily apparent, though.]

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonet: macb: Add better comment for RXUBR handling
Nathan Sullivan [Wed, 13 May 2015 22:01:36 +0000 (17:01 -0500)]
net: macb: Add better comment for RXUBR handling

Describe the handler for RXUBR better with a new comment.

Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
Reviewied-by: Josh Cartwright <joshc@ni.com>
Reviewied-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
8 years agonet: macb: Handle the RXUBR interrupt on all devices
Nathan Sullivan [Tue, 5 May 2015 20:00:25 +0000 (15:00 -0500)]
net: macb: Handle the RXUBR interrupt on all devices

The same hardware issue the at91 must work around applies to at least the
Zynq ethernet, and possibly more devices.  The driver also needs to handle
the RXUBR interrupt since it turns it on with MACB_RX_INT_FLAGS anyway.

Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
9 years agomtd: m25p80.c: Add n25q256a13 to m25_ids table
Wendy Liang [Tue, 19 May 2015 04:53:43 +0000 (10:23 +0530)]
mtd: m25p80.c: Add n25q256a13 to m25_ids table

Add missing spi flash device id n25q256a13 to m25_ids table.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: zynq-qspi: Revise copy_read_data
Thomas Betker [Tue, 19 May 2015 05:25:50 +0000 (07:25 +0200)]
spi: zynq-qspi: Revise copy_read_data

Combine zynq_qspi_copy_read_data() with reading the RxFIFO register, in
analogy to the Tx path; rename the function to zynq_qspi_read_rx_fifo().

The new function reads the RXD register and copies the data to
xqspi->rxbuf. It also handles the pad byte in the dual-parallel case.

This is just a cleanup; the control flow is not affected

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
9 years agospi: zynq-qspi: Use 0xff to pad Tx data
Thomas Betker [Tue, 19 May 2015 05:25:49 +0000 (07:25 +0200)]
spi: zynq-qspi: Use 0xff to pad Tx data

When padding Tx data, the pad byte is currently undefined; set it
to 0xff in zynq_qspi_copy_write_data().

Tx data padding is used to align the data sent with a Program
command to a multiple of two bytes. Sending zero bits may overwrite a
flash byte which is not intended to be written; send 0xff to keep the
extra flash byte unchanged.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: zynq-qspi: Handle txlen < 4 in fill_tx_fifo
Thomas Betker [Tue, 19 May 2015 05:25:48 +0000 (07:25 +0200)]
spi: zynq-qspi: Handle txlen < 4 in fill_tx_fifo

Merge the code for handling bytes_to_transfer < 4 into
zynq_qspi_fill_tx_fifo(), removing some duplicate code.

Add a parameter 'txempty' for this. Rename the parameter 'size' to
'txcount' as it is a number of words, not a number of bytes.

This is just a cleanup; the control flow is not affected, except that
zynq_qspi_start_transfer() now handles the case transfer->len == 0
correctly.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
9 years agospi: zynq-qspi: Revise copy_write_data
Thomas Betker [Tue, 19 May 2015 05:25:47 +0000 (07:25 +0200)]
spi: zynq-qspi: Revise copy_write_data

Combine zynq_qspi_copy_write_data() with writing the TxFIFO register to
simplify the code; rename the function to zynq_qspi_write_tx_fifo().

The new function copies data from xqspi->txbuf and writes it to the
TXD0/TXD1/TXD2/TXD3 register. It also handles the pad byte in the
dual-parallel case, integrating zynq_qspi_tx_dual_parallel().

This is just a cleanup; the control flow is not affected

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
9 years agodma: xilinx: Enable vdmatest client driver in menuconfig
Kedareswara rao Appana [Fri, 22 May 2015 08:08:52 +0000 (13:38 +0530)]
dma: xilinx: Enable vdmatest client driver in menuconfig

This patch fixes the issue Can't enable vdmatest driver
in kernel menuconfig.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoAPF: Add ioctl's to support api's for dmabuf buffers
Yogesh Chobe [Thu, 21 May 2015 18:21:53 +0000 (11:21 -0700)]
APF: Add ioctl's to support api's for dmabuf buffers

Provide a way to register a handle between a given userspace virtual
address and an FD that corresponds to a handle to a GEM-allocated buffer.

Signed-off-by: Yogesh Chobe <yogesh.chobe@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agogpu: drm: xylon: No need to set .owner field
Michal Simek [Tue, 19 May 2015 13:56:49 +0000 (15:56 +0200)]
gpu: drm: xylon: No need to set .owner field

The core will do it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agogpu: drm: xylon: Return error if i2c client driver is NULL
Radhey Shyam Pandey [Tue, 19 May 2015 11:46:53 +0000 (17:16 +0530)]
gpu: drm: xylon: Return error if i2c client driver is NULL

Return error if i2c_client driver instance is NULL.
Incase i2c encoder(adv7511) probe fails not checking
it will result in NULL pointer dereference.

<snip>
Unable to handle kernel NULL pointer dereference at virtual address 00000050
pgd = 40004000
[00000050] *pgd=00000000
Internal error: Oops - BUG: 17 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 690 Comm: kworker/u4:2 Not tainted 3.19.0-xilinx-13711-g2b55e97-dirty #49
Hardware name: Xilinx Zynq Platform
Workqueue: deferwq deferred_probe_work_func
task: 771ab100 ti: 72a42000 task.ti: 72a42000
PC is at xylon_drm_encoder_create+0xf4/0x188
LR is at xylon_drm_encoder_create+0xf4/0x188

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
9 years agogpu: drm: xylon: Convert src coordinates to 16.16 fixed point
Radhey Shyam Pandey [Tue, 19 May 2015 11:46:32 +0000 (17:16 +0530)]
gpu: drm: xylon: Convert src coordinates to 16.16 fixed point

Convert src coordinates to 16.16 fixed point format.
It fixes the issue where src coordindates are passed as 0
when update_plane is called from crtc helper function.

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
9 years agogpu: drm: xylon: Added property restore functionality
Davor Joja [Tue, 19 May 2015 11:46:10 +0000 (17:16 +0530)]
gpu: drm: xylon: Added property restore functionality

Added property restore functionality in driver close procedure, restoring crtc
and plane properties.

Signed-off-by: Davor Joja <davorjoja@logicbricks.com>
Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
9 years agogpu: drm: xylon: Fixed properties dependency on background layer
Davor Joja [Tue, 19 May 2015 11:45:44 +0000 (17:15 +0530)]
gpu: drm: xylon: Fixed properties dependency on background layer

Fixed properties creation and usage depending on logiCVC IP background layer.
If background layer is present, and plane is last, properties will not be
created. If background layer is not present, driver will crash due to NULL
pointer access on "color_transparency" property.

Signed-off-by: Davor Joja <davorjoja@logicbricks.com>
Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
9 years agogpu: drm: xylon: Removed unneeded crtc properties
Davor Joja [Tue, 19 May 2015 11:45:02 +0000 (17:15 +0530)]
gpu: drm: xylon: Removed unneeded crtc properties

Removed unneeded and redundant crtc properties. Those properties must be
accessed only through primary plane interface.

Signed-off-by: Davor Joja <davorjoja@logicbricks.com>
Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
9 years agogpu: drm: xylon: Fixed encoder client registration
Davor Joja [Tue, 19 May 2015 11:44:38 +0000 (17:14 +0530)]
gpu: drm: xylon: Fixed encoder client registration

Fixed encoder client registration order with direct error return values.
Removed unneeded error label and goto instructions.

Signed-off-by: Davor Joja <davorjoja@logicbricks.com>
Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
9 years agogpu: drm: xylon: Removed adv7511 interface usage
Davor Joja [Tue, 19 May 2015 11:44:07 +0000 (17:14 +0530)]
gpu: drm: xylon: Removed adv7511 interface usage

Removed direct usage of obsolete adv7511 interface.

Signed-off-by: Davor Joja <davorjoja@logicbricks.com>
Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
9 years agosound: soc: xilinx: Kconfig: Select SND_SOC_GENERIC_DMAENGINE_PCM
Hyun Kwon [Sat, 16 May 2015 00:14:38 +0000 (17:14 -0700)]
sound: soc: xilinx: Kconfig: Select SND_SOC_GENERIC_DMAENGINE_PCM

The Xilinx sound driver depends on SND_SOC_GENERIC_DMAENGINE_PCM.
Select SND_SOC_GENERIC_DMAENGINE_PCM in Kconfig.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: xilinx: dp: Don't check PHY status in encoder_init()
Hyun Kwon [Sat, 16 May 2015 00:14:37 +0000 (17:14 -0700)]
drm: xilinx: dp: Don't check PHY status in encoder_init()

The DP PHY isn't ready when the sink device isn't connected.
The encoder should be initialized fine without any sink device
connected, so remove the PHY status check in
xilinx_drm_dp_encoder_init().

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: xilinx: drv: Add set_busid() callback
Hyun Kwon [Sat, 16 May 2015 00:14:36 +0000 (17:14 -0700)]
drm: xilinx: drv: Add set_busid() callback

This function is required by some clients (ex, X11 armsoc), and
the Xilinx DRM was missing. Add the callback to Xilinx DRM.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodma: xilinx: dpdma: Set more DMA capabilities
Hyun Kwon [Sat, 16 May 2015 00:14:35 +0000 (17:14 -0700)]
dma: xilinx: dpdma: Set more DMA capabilities

Set more DMA capabilities as the DPDMA driver supports 3 different
operations: slave_sg, dma_cyclic, interleaved_dma.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: xilinx: dp: Soft reset when DPMS gets on
Hyun Kwon [Sat, 16 May 2015 00:14:34 +0000 (17:14 -0700)]
drm: xilinx: dp: Soft reset when DPMS gets on

DP Soft reset clears the video pipe, and needs to be called when some
video related configuration such as clock source or resolution is
changed. Programming the soft reset when DPMS gets on ensures that
the DP core gets synchronized with the latest video configuration.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: xilinx: dp: Support ANSI 8B/10B encoding
Hyun Kwon [Sat, 16 May 2015 00:14:33 +0000 (17:14 -0700)]
drm: xilinx: dp: Support ANSI 8B/10B encoding

The register bit to enable ANSI 8B/10B encoding is added. Enable
the encoding in PHY, as well as in the sink device through DPCD.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Fix coding style violation in L2 setup
Michal Simek [Thu, 14 May 2015 07:02:38 +0000 (09:02 +0200)]
ARM: zynq: Fix coding style violation in L2 setup

Fix coding style introduced by:
"ARM: zynq: Set bit 22 in PL310 AuxCtrl register"
(sha1: 39371574f8efa8474fde29bdeb3b54c8242b04aa)
and
"ARM: zynq: Turn on PL310 L2 cache prefetching"
(sha1: dda52ddca3e375d949a669177d6f5063cdcf713e)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Changed spi-nor.c file for stacked mode support
Anurag Kumar Vulisha [Wed, 13 May 2015 12:04:57 +0000 (17:34 +0530)]
mtd: spi-nor: Changed spi-nor.c file for stacked mode support

Added stacked configuration support to spi-nor

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Added stacked support for gqspi driver
Anurag Kumar Vulisha [Wed, 13 May 2015 12:04:56 +0000 (17:34 +0530)]
mtd: spi-nor: Added stacked support for gqspi driver

Added stacked configuration support for gqspi driver.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Add missing release version code
Michal Simek [Wed, 13 May 2015 06:21:45 +0000 (08:21 +0200)]
microblaze: Add missing release version code

Add missing release version code for v9.4 and v9.5.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Add target architecture
Michal Simek [Mon, 5 Jan 2015 11:01:17 +0000 (12:01 +0100)]
microblaze: Add target architecture

Add missing target architectures - virtex7, ultrascale virtex
and ultrascale kintex.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Add missing PVR version codes
Erico Nunes [Fri, 2 Jan 2015 02:40:33 +0000 (00:40 -0200)]
microblaze: Add missing PVR version codes

PVR version code was missing in the cpu_ver_lookup table for the following
versions: 8.50.b 8.50.c 9.2 9.3

This caused /proc/cpuinfo to display "CPU-Ver: Unknown" for these versions.

This was detected and the patch tested with MicroBlaze version 8.50.c.
The other codes were taken from the Xilinx MicroBlaze Processor Reference
Guides UG081 (v14.7) and UG984 (v2014.1).

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Turn on PL310 L2 cache prefetching
Thomas Betker [Mon, 11 May 2015 19:21:18 +0000 (21:21 +0200)]
ARM: zynq: Turn on PL310 L2 cache prefetching

This patch was originally authored by John Linn on 22-Sep-2011 for
linux-xlnx.git, but got lost somehow. It turns on L2 cache prefetching
when XILINX_PREFETCH (formerly XILINX_L2_PREFETCH) is enabled.

The original patch also set the Auxiliary Control Register bit "Early
BRESP enable" (in addition to "Instruction prefetch enable" and "Data
prefetch enable"), but for Cortex-A9, this bit is now set automatically
by l2c310_enable().

Suggested-by: John Linn <john.linn@xilinx.com>
Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Set bit 22 in PL310 AuxCtrl register
Thomas Betker [Mon, 11 May 2015 19:21:17 +0000 (21:21 +0200)]
ARM: zynq: Set bit 22 in PL310 AuxCtrl register

This patch was originally authored by Punnaiah Choudary Kalluri
on 06-Mar-2014 for linux-xlnx.git, but got lost somehow. It is based
on the commit a8e41cd672f8 ("ARM: 6395/1: VExpress: Set bit 22 in the
PL310 (cache controller) AuxCtlr register"), on 17-Sep-2010:

Clearing bit 22 in the PL310 Auxiliary Control register (shared
attribute override enable) has the side effect of transforming Normal
Shared Non-cacheable reads into Cacheable no-allocate reads.

Coherent DMA buffers in Linux always have a Cacheable alias via the
kernel linear mapping and the processor can speculatively load cache
lines into the PL310 controller. With bit 22 cleared, Non-cacheable
reads would unexpectedly hit such cache lines leading to buffer
corruption.

For Zynq, this fix avoids memory inconsistencies between Gigabit
Ethernet controller (GEM) and CPU when DMA_CMA is disabled.

Suggested-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoethernet: xilinx: Allow unaligned transfers
Kedareswara rao Appana [Wed, 6 May 2015 11:53:58 +0000 (17:23 +0530)]
ethernet: xilinx: Allow unaligned transfers

Replace netdev_alloc_skb_ip_align with netdev_alloc_skb.
This is needed to support all configurations of AXIDMA.
If DRE in AXIDMA is not selected, the alignment of IP will cause failures.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoethernet: xilinx: Add support for 10G MAC
Kedareswara rao Appana [Wed, 6 May 2015 11:53:57 +0000 (17:23 +0530)]
ethernet: xilinx: Add support for 10G MAC

This patch add's support for the 10G MAC.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoethernet: xilinx: Add ACP Port support
Kedareswara rao Appana [Wed, 6 May 2015 11:53:56 +0000 (17:23 +0530)]
ethernet: xilinx: Add ACP Port support

This patch Add's Support for ACP
Port based design's.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoethernet: xilinx: Add NAPI support
Kedareswara rao Appana [Wed, 6 May 2015 11:53:55 +0000 (17:23 +0530)]
ethernet: xilinx: Add NAPI support

This patch Add's NAPI support for the
receive side.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Changed spi-nor.c and spi.h for dual parallel support
Anurag Kumar Vulisha [Tue, 5 May 2015 15:05:37 +0000 (20:35 +0530)]
mtd: spi-nor: Changed spi-nor.c and spi.h for dual parallel support

Added dual parallel support for spi-nor

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: axienet: Fix comments with mainline code
Michal Simek [Thu, 7 May 2015 12:52:23 +0000 (14:52 +0200)]
net: axienet: Fix comments with mainline code

Use network comment style to be in sync with mainline version.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: axienet: Fix kernel-doc
Michal Simek [Thu, 7 May 2015 12:52:36 +0000 (14:52 +0200)]
net: axienet: Fix kernel-doc

Sync with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: axienet: Use netdev_err instead of dev_err
Michal Simek [Thu, 7 May 2015 12:56:08 +0000 (14:56 +0200)]
net: axienet: Use netdev_err instead of dev_err

Sync with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Added dual parallel support to gqspi driver
Anurag Kumar Vulisha [Mon, 4 May 2015 13:07:51 +0000 (18:37 +0530)]
mtd: spi-nor: Added dual parallel support to gqspi driver

Added the dual parallel configuration support to the gqspi driver.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Fixed 4byte addressing read in spi-nor.c
Anurag Kumar Vulisha [Mon, 4 May 2015 13:07:50 +0000 (18:37 +0530)]
mtd: spi-nor: Fixed 4byte addressing read in spi-nor.c

Added wait_till_ready before reading in spi_nor_read_ext to be in
sync with 3.19 merge.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Fixed the unintialized variable in gqspi driver
Anurag Kumar Vulisha [Tue, 5 May 2015 09:56:42 +0000 (15:26 +0530)]
mtd: spi-nor: Fixed the unintialized variable in gqspi driver

Fixed the warning: used unitialized variable in the gqspi driver.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Added DMA support for gqspi driver
Anurag Kumar Vulisha [Mon, 4 May 2015 07:11:29 +0000 (12:41 +0530)]
mtd: spi-nor: Added DMA support for gqspi driver

Added DMA support to the gqspi driver

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: can: xilinx_can: fix extended frame handling
Jeppe Ledet-Pedersen [Tue, 14 Apr 2015 12:25:15 +0000 (14:25 +0200)]
net: can: xilinx_can: fix extended frame handling

Using IDR_SRR in RXFIFO_ID to test for the presence of data is only
valid for standard frames. For extended frames the bit is always 1 and
IDR_RTR should be used instead. This patch switches the check to use
CAN_RTR_FLAG which is correctly set when reading the ID.

The patch also changes the DW1/DW2 to be read unconditionally, since
this is necessary to remove the frame from the RXFIFO.

Signed-off-by: Jeppe Ledet-Pedersen <jlp@gomspace.com>
Acked-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonand: arasan_nfs: Add missing license header
Michal Simek [Thu, 23 Apr 2015 12:51:52 +0000 (14:51 +0200)]
nand: arasan_nfs: Add missing license header

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonand: arasan_nfs: Add missing of.h
Michal Simek [Thu, 23 Apr 2015 12:50:13 +0000 (14:50 +0200)]
nand: arasan_nfs: Add missing of.h

For !CONFIG_OF_MTD case of.h is missing.
Kbuild system reports error:
drivers/mtd/nand/arasan_nfc.c: In function 'anfc_probe':
drivers/mtd/nand/arasan_nfc.c:794:2: error: implicit declaration of
function 'of_property_read_bool'
[-Werror=implicit-function-declaration]
   nfc->dma = of_property_read_bool(pdev->dev.of_node,

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: xylon: Fix runtime PM support in the driver
Michal Simek [Thu, 23 Apr 2015 12:26:42 +0000 (14:26 +0200)]
drm: xylon: Fix runtime PM support in the driver

Error reported by Kbuild:
   In file included from include/linux/device.h:25:0,
                    from include/linux/dma-mapping.h:5,
                    from include/drm/drmP.h:37,
                    from drivers/gpu/drm/xylon/xylon_drv.c:20:
>> drivers/gpu/drm/xylon/xylon_drv.c:305:21: error:
>> 'xylon_drm_pm_suspend' undeclared here (not in a function)
     SET_RUNTIME_PM_OPS(xylon_drm_pm_suspend, xylon_drm_pm_resume, NULL)
   include/linux/pm.h:347:21: note: in definition of macro
'SET_RUNTIME_PM_OPS'
     .runtime_suspend = suspend_fn, \
>> drivers/gpu/drm/xylon/xylon_drv.c:305:43: error:
>> 'xylon_drm_pm_resume' undeclared here (not in a function)
     SET_RUNTIME_PM_OPS(xylon_drm_pm_suspend, xylon_drm_pm_resume, NULL)
   include/linux/pm.h:348:20: note: in definition of macro
'SET_RUNTIME_PM_OPS'
     .runtime_resume = resume_fn, \

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agostaging: pmods: Fix missing SPI dependency
Michal Simek [Thu, 23 Apr 2015 12:24:52 +0000 (14:24 +0200)]
staging: pmods: Fix missing SPI dependency

Compilation error reported by Kbuild:
   drivers/built-in.o: In function `screen_buf_to_display':
   pmodoled-gpio.c:(.text+0x2428a2): undefined reference to `spi_sync'
   pmodoled-gpio.c:(.text+0x2428fe): undefined reference to `spi_sync'
   drivers/built-in.o: In function `gpio_pmodoled_spi_remove':
   pmodoled-gpio.c:(.text+0x2429cd): undefined reference to `spi_sync'
   drivers/built-in.o: In function `gpio_pmodoled_spi_probe':
   pmodoled-gpio.c:(.text+0x242c34): undefined reference to `spi_setup'
   drivers/built-in.o: In function `gpio_pmodoled_of_probe':
>> pmodoled-gpio.c:(.text+0x243145): undefined reference to
>> `spi_busnum_to_master'
>> pmodoled-gpio.c:(.text+0x24317d): undefined reference to
>> `spi_alloc_device'
>> pmodoled-gpio.c:(.text+0x2431fe): undefined reference to
>> `spi_add_device'
>> pmodoled-gpio.c:(.text+0x243307): undefined reference to
>> `spi_register_driver'
   drivers/built-in.o: In function `gpio_pmodoled_disp_init':
   pmodoled-gpio.c:(.text.unlikely+0x26a5): undefined reference to
`spi_sync'
   pmodoled-gpio.c:(.text.unlikely+0x2733): undefined reference to
`spi_sync'
   pmodoled-gpio.c:(.text.unlikely+0x27ae): undefined reference to
`spi_sync'
   drivers/built-in.o:(.data+0x4851c): undefined reference to
`spi_bus_type'

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoxen: Fix compilation error reported by Kbuilt
Michal Simek [Thu, 23 Apr 2015 12:14:16 +0000 (14:14 +0200)]
xen: Fix compilation error reported by Kbuilt

HVC xen earlycon support is temporary solution till the proper way is
found.
Compilation error:
drivers/tty/hvc/hvc_xen.c:625:13: error: redefinition of
'xenboot_write_console'
    static void xenboot_write_console(struct console *console, const
char *string,
   drivers/tty/hvc/hvc_xen.c:590:13: note: previous definition of
'xenboot_write_console' was here
    static void xenboot_write_console(struct console *console, const
char *string,

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: adv7511: Refactor power management
Laurent Pinchart [Wed, 22 Apr 2015 19:11:27 +0000 (12:11 -0700)]
drm: adv7511: Refactor power management

Remove the internal dependency on DPMS mode for power management by
using a by a powered state boolean instead, and use the new power off
handler at probe time. This ensure that the regmap cache is properly
marked as dirty when the device is probed, and the registers properly
synced during the first power up.

As a side effect this removes the initialization of current_edid_segment
at probe time, as the field will be initialized when the device is
powered on, at the latest right before reading EDID data.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
Tested-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: adv7511: Fix nested sleep when reading EDID
Laurent Pinchart [Wed, 22 Apr 2015 19:11:26 +0000 (12:11 -0700)]
drm: adv7511: Fix nested sleep when reading EDID

The EDID read code waits for the read completion interrupt to occur
using wait_event_interruptible(). The condition passed to the macro
reads I2C registers. This results in sleeping with the task state set
to TASK_INTERRUPTIBLE, triggering a WARN_ON() introduced in commit
8eb23b9f35aae ("sched: Debug nested sleeps").

Fix this by reworking the EDID read code. Instead of checking whether
the read is complete through I2C reads, handle the interrupt registers
in the interrupt handler and update a new edid_read flag accordingly. As
a side effect both the IRQ and polling code paths now process the
interrupt sources through the same code path, simplifying the code.

Cc: stable@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: adv7511: Fix DDC error interrupt handling
Laurent Pinchart [Wed, 22 Apr 2015 19:11:25 +0000 (12:11 -0700)]
drm: adv7511: Fix DDC error interrupt handling

The DDC error interrupt bit is located in REG_INT1, not REG_INT0. Update
both the interrupt wait code and the interrupt sources reset code
accordingly.

Cc: stable@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: Fix trivial typos in comments
Yannick Guerrini [Wed, 22 Apr 2015 19:11:24 +0000 (12:11 -0700)]
drm: Fix trivial typos in comments

Change 'pixes' to 'pixels'
Change 'enabel' to 'enable'
Change 'enabeling' to 'enabling'

Signed-off-by: Yannick Guerrini <yguerrini@tomshardware.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: adv7511: Remove interlaced mode check
Laurent Pinchart [Wed, 22 Apr 2015 19:11:23 +0000 (12:11 -0700)]
drm: adv7511: Remove interlaced mode check

The ADV7511 supports interlaced modes fine, there's no need to reject
them.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodrm: i2c: adv7511: Remove non-mainline adv7511 driver
Radhey Shyam Pandey [Wed, 22 Apr 2015 14:04:18 +0000 (19:34 +0530)]
drm: i2c: adv7511: Remove non-mainline adv7511 driver

Switch to mainline driver for reference designs.

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: fix for bank cross over write issue
Anurag Kumar Vulisha [Wed, 22 Apr 2015 13:47:05 +0000 (19:17 +0530)]
mtd: spi-nor: fix for bank cross over write issue

Changed the spi_nor_read_ext for bank cross over issue while programming
data to the flash

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Changed the dummy cycles in spi_nor.c
Anurag Kumar Vulisha [Wed, 22 Apr 2015 12:03:23 +0000 (17:33 +0530)]
mtd: spi-nor: Changed the dummy cycles in spi_nor.c

Use dummy cycles,not bytes,to be in sync with mainline.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agorpmsg: freertos_stat: Add missing dependency on NET
Michal Simek [Tue, 21 Apr 2015 05:55:21 +0000 (07:55 +0200)]
rpmsg: freertos_stat: Add missing dependency on NET

It was causing compilation error with !NET.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agopcie: xilinx: Fix debug message
Michal Simek [Fri, 17 Apr 2015 10:05:05 +0000 (12:05 +0200)]
pcie: xilinx: Fix debug message

Fix compilation warning:
drivers/pci/host/pcie-xilinx.c: In function
'xilinx_pcie_clear_err_interrupts':
drivers/pci/host/pcie-xilinx.c:154:3: warning: format '%d' expects
argument of type 'int', but argument 4 has type 'long unsigned int'
[-Wformat=]
   dev_dbg(port->dev, "Requester ID %d\n",

GENMASK was changed by:
bitops: Fix shift overflow in GENMASK macros
(sha1: 00b4d9a14125f1e51874def2b9de6092e007412d)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoremoteproc: Fix RPROC_CARVEOUT_USE_IOREMAP macro usage
Michal Simek [Fri, 17 Apr 2015 10:01:24 +0000 (12:01 +0200)]
remoteproc: Fix RPROC_CARVEOUT_USE_IOREMAP macro usage

Fix compilation warning:
drivers/remoteproc/remoteproc_core.c:588:5: warning:
"RPROC_CARVEOUT_USE_IOREMAP" is not defined [-Wundef]
 #if RPROC_CARVEOUT_USE_IOREMAP
     ^
drivers/remoteproc/remoteproc_core.c:806:6: warning:
"RPROC_CARVEOUT_USE_IOREMAP" is not defined [-Wundef]
 #if !RPROC_CARVEOUT_USE_IOREMAP

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: dts: Remove unused xlnx,has-ecc property from DDRC
Michal Simek [Fri, 17 Apr 2015 09:15:20 +0000 (11:15 +0200)]
ARM: dts: Remove unused xlnx,has-ecc property from DDRC

Remove unused property from DDRC node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Remove L2cache default selection
Michal Simek [Fri, 17 Apr 2015 09:04:33 +0000 (11:04 +0200)]
ARM: zynq: Remove L2cache default selection

Sync with mainline and also it can be optional property.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: dts: zynq: Add chosen/stdout-path property
Michal Simek [Wed, 11 Feb 2015 12:09:53 +0000 (13:09 +0100)]
ARM: dts: zynq: Add chosen/stdout-path property

This property is used by bootloader to identify console.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: dts: zynq: Use reference in linux,stdout-path
Michal Simek [Wed, 11 Feb 2015 12:06:36 +0000 (13:06 +0100)]
ARM: dts: zynq: Use reference in linux,stdout-path

Use reference instead of hardcoded path.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: dts: zybo: Add missing alias node
Michal Simek [Wed, 11 Feb 2015 12:05:11 +0000 (13:05 +0100)]
ARM: dts: zybo: Add missing alias node

Add missing alias node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: macb: Coding style issue
Michal Simek [Fri, 17 Apr 2015 08:11:37 +0000 (10:11 +0200)]
net: macb: Coding style issue

Bug introduced by:
"net: macb: Add support for jumbo frames"
(sha1: c376492a7b719286c277538f8563e4f64605f35a)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Coding style cleanup for Quad IO support in spi-nor.h
Michal Simek [Fri, 17 Apr 2015 08:00:16 +0000 (10:00 +0200)]
mtd: spi-nor: Coding style cleanup for Quad IO support in spi-nor.h

Coding style cleanup.
Problem was introduced by:
"mtd:spi-nor: Added Quad IO support"
(sha1: 9320a8ec0cb1061e47cefe4b38008d4591fb1fcf)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: spi-nor: Fix locking/unlocking when BP3 is used
Jesper B. Christensen [Mon, 9 Mar 2015 13:45:08 +0000 (14:45 +0100)]
mtd: spi-nor: Fix locking/unlocking when BP3 is used

Fix status register parsing error when 3rd block protect bit
is used.

Signed-off-by: Jesper B. Christensen <jesper.christensen@cobham.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoMerge tag 'v3.19' into master
Michal Simek [Thu, 16 Apr 2015 13:04:24 +0000 (15:04 +0200)]
Merge tag 'v3.19' into master

- v4l2/media fixes
- Remove USB and fix dtses
- Enable ChipIdea and PHY driver in defconfig
- Fix emacps
- Fix adv7511-core function parameters
- spi-nor fixes
"mtd:spi-nor: Fixed the merge conflicts with 3.19

 This patch has the following modifications:
 1.Added spansion_quad_enable under spansion id and default as zero
   in set_quad_enable function.
 2.Using nor->jedec_id for identifing the flash_parts,since struct
flash_info
   is not available at run time.
 3.Added spi_nor_wait_till_ready after the write_ear in spi_nor_erase
function.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>"
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: xuartps: Fix iobase use.
Thomas Betker [Tue, 10 Mar 2015 21:45:09 +0000 (22:45 +0100)]
serial: xuartps: Fix iobase use.

cdns_uart_get_port() sets port->iobase = 1 to "mark port in use", but
this "in use" condition is not checked anywhere else in the code. So
remove the line, keeping port->iobase = 0 (which also makes more sense).

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: xuartps: Fix check in console_setup().
Thomas Betker [Tue, 10 Mar 2015 21:45:10 +0000 (22:45 +0100)]
serial: xuartps: Fix check in console_setup().

cdns_uart_console_setup() checks port->mapbase != 0, but the port may
not be initialized yet even if this condition is met [e.g., ioremap()
may have failed]. Check port->membase != NULL instead, similar to
cdns_early_console_setup().

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: xuartps: Fix cdns_uart_port[] definition.
Thomas Betker [Tue, 10 Mar 2015 21:45:08 +0000 (22:45 +0100)]
serial: xuartps: Fix cdns_uart_port[] definition.

The code assumes that the array cdns_uart_port[] has dimension
CDNS_UART_NR_PORTS, so let us define it this way.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: xuartps: Fix register space size.
Thomas Betker [Tue, 10 Mar 2015 21:45:07 +0000 (22:45 +0100)]
serial: xuartps: Fix register space size.

The register space size is 0x1000, and this value [not 0xfff] should be
provided to request_mem_region(), ioremap(), etc.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agousb: gadget: xudc: fix return value check in xudc_probe()
Wei Yongjun [Thu, 16 Apr 2015 12:17:30 +0000 (20:17 +0800)]
usb: gadget: xudc: fix return value check in xudc_probe()

In case of error, the function devm_ioremap_resource() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: macb: Fix race condition in driver when Rx frame is dropped
Punnaiah Choudary Kalluri [Tue, 14 Apr 2015 05:34:49 +0000 (11:04 +0530)]
net: macb: Fix race condition in driver when Rx frame is dropped

Under heavy Rx load, observed that the Hw is updating the USED bit
and it is not updating the received frame status to the BD control
field. This could be lack of resources for processing the BDs at high
data rates. Driver drops the frame associated with this BD but not
clearing the USED bit. So, this is causing hang condition as Hw
expects USED bit to be cleared for this BD.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodevicetree:bindings: add devicetree bindings for ceva ahci
Suneel Garapati [Tue, 14 Apr 2015 11:40:24 +0000 (17:10 +0530)]
devicetree:bindings: add devicetree bindings for ceva ahci

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoi2c: pca954x: Defer probing due to reset GPIO
Laurent Pinchart [Tue, 14 Apr 2015 18:31:52 +0000 (11:31 -0700)]
i2c: pca954x: Defer probing due to reset GPIO

If a reset GPIO is specified but not available we must defer probing, as
the device could be held in reset. Use devm_gpiod_request_optional() to
handle this automatically.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoadv7604: Correct G/S_EDID behaviour
Hans Verkuil [Tue, 14 Apr 2015 18:31:51 +0000 (11:31 -0700)]
adv7604: Correct G/S_EDID behaviour

In order to have v4l2-compliance tool pass the G/S_EDID some modifications
where needed in the driver.
In particular, the edid.reserved zone must be blanked.

Based on a patch from Jean-Michel Hautbois <jean-michel.hautbois@vodalys.com>,
but reworked it a bit. It should use 'data' (which depends on edid.present)
instead of edid.blocks as the check whether edid data is present.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoof: Add vendor prefix for Ceva
Suneel Garapati [Tue, 14 Apr 2015 11:21:00 +0000 (16:51 +0530)]
of: Add vendor prefix for Ceva

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: of-serial: Remove device_type = "serial" registration
Michal Simek [Mon, 13 Apr 2015 13:18:22 +0000 (15:18 +0200)]
serial: of-serial: Remove device_type = "serial" registration

Do not probe all serial drivers by of_serial.c which are using
device_type = "serial"; property. Only drivers which have valid
compatible strings listed in the driver should be probed.

When PORT_UNKNOWN probe will fail anyway.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: xilinx: Use platform_get_irq to get irq description structure
Michal Simek [Mon, 13 Apr 2015 13:24:20 +0000 (15:24 +0200)]
serial: xilinx: Use platform_get_irq to get irq description structure

For systems with CONFIG_SERIAL_OF_PLATFORM=y and device_type =
"serial"; property in DT of_serial.c driver maps and unmaps IRQ (because
driver probe fails). Then a driver is called but irq mapping is not
created that's why driver is failing again in again on request_irq().
Based on this use platform_get_irq() instead of platform_get_resource()
which is doing irq_desc allocation and driver itself can request IRQ.

Fix both xilinx serial drivers in the tree.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomedia: xilinx: tpg: Use devm_gpiod_get_optional()
Laurent Pinchart [Sat, 21 Mar 2015 14:02:32 +0000 (16:02 +0200)]
media: xilinx: tpg: Use devm_gpiod_get_optional()

The vtmux gpio is optional, use the right API to request it. This allows
replacing the separate gpiod_direction_output() call by a request flag.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Christian Kohn <christian.kohn@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
9 years agomedia: xilinx: vip: Use the OF graph API
Laurent Pinchart [Sat, 21 Mar 2015 14:02:31 +0000 (16:02 +0200)]
media: xilinx: vip: Use the OF graph API

Replace the V4L2-specific graph parser by the OF graph parser. The
former is scheduled for removal.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Christian Kohn <christian.kohn@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>