]> rtime.felk.cvut.cz Git - zynq/linux.git/log
zynq/linux.git
10 years agomtd: m25p80: Add erase/read/write support for large flash sizes xilinx-v14.6
Suneel Garapati [Thu, 30 May 2013 22:12:48 +0000 (03:42 +0530)]
mtd: m25p80: Add erase/read/write support for large flash sizes

Added support for large size flash memories greater than 16MB using
3 byte addressing and bank selection.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: xilinx: Force 3 byte addressing for zynq qspi for large flash size
Suneel Garapati [Tue, 18 Jun 2013 09:30:07 +0000 (15:00 +0530)]
mtd: m25p80: xilinx: Force 3 byte addressing for zynq qspi for large flash size

Hack the addr width to 3 in case of large size flash connected to
zynq qspi controller and force this only if the connected spi controller
is zynq ps qspi.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Modify m25p_addr2cmd logic
Suneel Garapati [Tue, 18 Jun 2013 09:25:14 +0000 (14:55 +0530)]
mtd: m25p80: Modify m25p_addr2cmd logic

Instead of directly copying the addr to cmd buffer, use a
for loop based on the addr width.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Add support to program bank or extended address register
Suneel Garapati [Thu, 30 May 2013 21:11:26 +0000 (02:41 +0530)]
mtd: m25p80: Add support to program bank or extended address register

Added opcode to program extended address register. Added function
write_ear to program bank or extended address register. Added curbank
member to m25p structure.

This needs discussion on mainline and will be re-visited
later.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Add check on flag status register for Micron flash devices
Suneel Garapati [Thu, 30 May 2013 20:30:48 +0000 (02:00 +0530)]
mtd: m25p80: Add check on flag status register for Micron flash devices

In wait_till_ready, after poll on status register, if check_fsr is set
poll on flag status register to check no program/erase operation
is in execution. check_fsr is set only if E_FSR flag is added to
flash entry in flash_info structure.

This needs discussion on mainline and will be re-visited
later.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Create read_spi_reg and add read for flag status reg
Suneel Garapati [Thu, 30 May 2013 20:25:44 +0000 (01:55 +0530)]
mtd: m25p80: Create read_spi_reg and add read for flag status reg

Created read_spi_reg to perform atomic register read operation.
Added read_fsr and modified read_sr to call read_spi_reg.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Add member jedec_id to m25p structure
Suneel Garapati [Thu, 30 May 2013 20:00:39 +0000 (01:30 +0530)]
mtd: m25p80: Add member jedec_id to m25p structure

Added jedec_id variable to hold id of flash memory.
Updated in probe call with the detected flash ID.

This needs discussion on mainline and will be re-visited
later.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Created E_FSR flag for Micron n25q family flash devices
Suneel Garapati [Wed, 19 Jun 2013 06:47:42 +0000 (12:17 +0530)]
mtd: m25p80: Created E_FSR flag for Micron n25q family flash devices

Created new flag E_FSR in flash_info structure to support
flag status register present in n25q Micron flash family.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Add Micron flash entries for greater than 256Mb size
Suneel Garapati [Fri, 14 Jun 2013 05:33:04 +0000 (11:03 +0530)]
mtd: m25p80: Add Micron flash entries for greater than 256Mb size

Added entries for micron flash memories for sizes 256Mb, 512Mb and
1Gb including voltage variants.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Modified Micron 256Mb flash info structure entry
Suneel Garapati [Thu, 30 May 2013 19:53:28 +0000 (01:23 +0530)]
mtd: m25p80: Modified Micron 256Mb flash info structure entry

Modified entry for micron flash memory 256Mb. Member name is
suffix with 'a13'.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Increase wait duration during read
Suneel Garapati [Thu, 30 May 2013 19:20:24 +0000 (00:50 +0530)]
mtd: m25p80: Increase wait duration during read

Increased the value of MAX_READY_WAIT_JIFFIES from 40 to 480
based on the inputs from Micron considering large size flash
memories.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: m25p80: Fix spansion bank reg comment and fix above 80 char lines
Suneel Garapati [Thu, 30 May 2013 18:39:40 +0000 (00:09 +0530)]
mtd: m25p80: Fix spansion bank reg comment and fix above 80 char lines

Changed the comment for spansion bank read opcode and
break the lines larger than 80 chars.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: xilinx-qps: Modify the tx logic to use txd1/2/3
Suneel Garapati [Thu, 30 May 2013 11:44:39 +0000 (17:14 +0530)]
spi: xilinx-qps: Modify the tx logic to use txd1/2/3

Tx logic is modified to utilize TxD1/2/3 registers and few
other constraints.
Transmit length is split into multiples of 4 bytes and the
remainder is transmitted using TxD1/2/3. Also, a transmit on
TxD1/2/3 needs a check for Tx empty before using TXD0 and
vice versa. Towards this requirement, tx_fill_fifo is updated
to fill only if tx length is greater than 4 bytes. For any length
the remainder bytes is first pushed to TxD1/2/3 and enables
interrupts to wait for tx empty interrupt and transfer the remaining
in interrupt routine.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: xilinx-qps: Remove switch logic in xqspips_copy_read_data
Suneel Garapati [Thu, 30 May 2013 10:59:38 +0000 (16:29 +0530)]
spi: xilinx-qps: Remove switch logic in xqspips_copy_read_data

Instead of switch cases, handle the copy of data from rxd
to buffer using memcpy with check on endianess.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: xilinx-qps: Added macros for bank instructions and lqspi
Suneel Garapati [Thu, 30 May 2013 10:47:06 +0000 (16:17 +0530)]
spi: xilinx-qps: Added macros for bank instructions and lqspi

Opcode definitions for Bank instructions of Spansion and Micron.
Opcode definition for Flag status register read and added these
opcodes to Instruction format table.

Macro for linear qspi config register upper page bit mask.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: xilinx-qps: Modified comments for LQSPI register masks
Suneel Garapati [Thu, 30 May 2013 10:42:34 +0000 (16:12 +0530)]
spi: xilinx-qps: Modified comments for LQSPI register masks

Modified comments for LQSPI Config register TWO_MEM and
SEP_BUS bit masks.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: xilinx-qps: Use readl/writel for read/write register
Suneel Garapati [Tue, 18 Jun 2013 14:45:36 +0000 (20:15 +0530)]
spi: xilinx-qps: Use readl/writel for read/write register

Use readl/writel api's instead of raw read/write registers.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: xemacps: Free net_device after it is used last
Soren Brinkmann [Wed, 5 Jun 2013 20:24:42 +0000 (13:24 -0700)]
net: xemacps: Free net_device after it is used last

The net_device structure is freed to early. Free it after its last user
is done.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
10 years agonet: xemacps: Disable clocks only once
Soren Brinkmann [Wed, 29 May 2013 18:20:47 +0000 (11:20 -0700)]
net: xemacps: Disable clocks only once

When the driver is removed clocks may be disabled due to runtime PM. If
this happens, remove() must not disable the clocks again. Therefore,
check the runtime PM status in remove() and take the appropriate action.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
10 years agoclk: zynq: pll: Fix wait for PLL lock
Soren Brinkmann [Fri, 14 Jun 2013 18:54:17 +0000 (11:54 -0700)]
clk: zynq: pll: Fix wait for PLL lock

The condition for waiting for the PLL lock when enabling the PLL was
inversed, waiting for a non-locked PLL.
Invert the condition when waiting for the PLL lock, so we actually wait
for a locked PLL.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoremoteproc: mb: Remove not used zynq_cpun_start extern
Michal Simek [Thu, 13 Jun 2013 07:48:38 +0000 (09:48 +0200)]
remoteproc: mb: Remove not used zynq_cpun_start extern

Just clean up.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoDT: Add documentation for gpio-xilinx
Michal Simek [Wed, 29 May 2013 11:16:32 +0000 (13:16 +0200)]
DT: Add documentation for gpio-xilinx

Describe gpio-xilinx binding.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoGPIO: xilinx: Use BIT macro
Michal Simek [Mon, 3 Jun 2013 12:16:57 +0000 (14:16 +0200)]
GPIO: xilinx: Use BIT macro

Use BIT macro from linux/bitops.h.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoGPIO: xilinx: Use __raw_readl/__raw_writel IO functions
Michal Simek [Mon, 3 Jun 2013 11:54:47 +0000 (13:54 +0200)]
GPIO: xilinx: Use __raw_readl/__raw_writel IO functions

This driver can be used on Xilinx ARM Zynq platform
where in_be32/out_be32 functions are not implemented.
Use __raw_readl/__raw_writel functions which are
implemented on Microblaze and PowerPC.
For ARM readl/writel functions are used instead.

The correct way how to implement this is to detect
endians directly on IP. But for the gpio case
without interrupt connected(it means without
interrupt logic) there are just 2 registers
data and tristate where auto detection can't be done.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoGPIO: xilinx: Synchronization with mainline version
Michal Simek [Wed, 29 May 2013 11:12:46 +0000 (13:12 +0200)]
GPIO: xilinx: Synchronization with mainline version

Fix all issues which have been found in upstreaming
this driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoGPIO: xilinx: Simplify driver probe function
Michal Simek [Mon, 3 Jun 2013 11:43:00 +0000 (13:43 +0200)]
GPIO: xilinx: Simplify driver probe function

Simplification is done by using OF helper function
which increase readability of code and remove
(if (var) var = be32_to_cpup;) assignment.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomicroblaze: Remove incorrect file path
Michal Simek [Fri, 14 Jun 2013 07:53:53 +0000 (09:53 +0200)]
microblaze: Remove incorrect file path

Trivial.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodts: zynq base trd: Enabled genlock sync
Radhey Shyam Pandey [Thu, 13 Jun 2013 12:17:19 +0000 (17:47 +0530)]
dts: zynq base trd: Enabled genlock sync

Enabled genlock synchronization for VDMA's used
in HW design.

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodts: zynq base trd: logiCVC hw parameter set
Radhey Shyam Pandey [Thu, 13 Jun 2013 12:17:18 +0000 (17:47 +0530)]
dts: zynq base trd: logiCVC hw parameter set

logiCVC pixel-clock-active-high parameter set to high.
[transmits pixel data on rising pixel clock edge]

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodts: zynq base trd: Disable print of EDID info
Radhey Shyam Pandey [Thu, 13 Jun 2013 12:17:17 +0000 (17:47 +0530)]
dts: zynq base trd: Disable print of EDID info

Printing log of EDID info on monitor detect
is removed.

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoarm: zynq: Remove input event debugging from TRD defconfig
Radhey Shyam Pandey [Thu, 13 Jun 2013 12:17:16 +0000 (17:47 +0530)]
arm: zynq: Remove input event debugging from TRD defconfig

Disable input device event debugging. Picked from
zynq defconfig.

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodefconfig: Enable zynq edac driver
Michal Simek [Wed, 12 Jun 2013 05:58:06 +0000 (07:58 +0200)]
defconfig: Enable zynq edac driver

Just enable it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodefconfig: Enable Cadence TTC for TRD
Michal Simek [Wed, 12 Jun 2013 06:00:16 +0000 (08:00 +0200)]
defconfig: Enable Cadence TTC for TRD

Synchronization.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoedac: zynq: Added support for zynq ddr ecc
Punnaiah Choudary Kalluri [Wed, 12 Jun 2013 04:23:12 +0000 (09:53 +0530)]
edac: zynq: Added support for zynq ddr ecc

Created zynq_edac files which add support to report the ddr ecc
to edac framework.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodrivers: uio: Fix UIO device registration failure
Damian Hobson-Garcia [Tue, 26 Mar 2013 01:31:22 +0000 (10:31 +0900)]
drivers: uio: Fix UIO device registration failure

Until recently uio_get_minor() returned 0 for success and
a negative value on failure.  This became non-negative for suceess and
negative for failure.  Restore the original return value spec so that we can
successfully initialize UIO devices with a non-zero minor device
number.

Cc: "Hans J. Koch" <hjk@hansjkoch.de>
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agozynq: pcie: Fix comments coding style
Michal Simek [Mon, 10 Jun 2013 07:31:41 +0000 (09:31 +0200)]
zynq: pcie: Fix comments coding style

Trivial.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agogpio: zynq: Removed static irq allocation
Srikanth Thokala [Fri, 7 Jun 2013 15:14:16 +0000 (20:44 +0530)]
gpio: zynq: Removed static irq allocation

Removed static irq allocation.

AXI PCIe driver has been changed to use dynamic irq allocation
in below commit
"zynq: pcie: Removed static irq allocation"
(sha1: 0bec56c81b8c4968eab33416b9e214a90e2f3241)

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: pcie: Removed static irq allocation
Srikanth Thokala [Fri, 7 Jun 2013 15:14:15 +0000 (20:44 +0530)]
zynq: pcie: Removed static irq allocation

This patch removes static allocation of MSI IRQs.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoarm: dt: zynq: Use 'xlnx,xuartps' compatibility string
Soren Brinkmann [Wed, 5 Jun 2013 16:09:35 +0000 (09:09 -0700)]
arm: dt: zynq: Use 'xlnx,xuartps' compatibility string

Append the 'xlnx,xuartps' compatibility string, which is used in
mainline Linux, to all xuartps nodes.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoRevert "of: Export of_irq_count for modules"
Michal Simek [Wed, 5 Jun 2013 10:20:38 +0000 (12:20 +0200)]
Revert "of: Export of_irq_count for modules"

This reverts commit 7293d8531d860a6cd8e24a50e8e6e8c80f14856e.

Modules shouldn't use of_irq_count() but better to use
driver resources which are already initialized.
Both remoteproc drivers have been fixed that's why
we can revert this patch.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoremoteproc: Do not use of_irq_count in xilinx drivers
Michal Simek [Fri, 31 May 2013 14:05:38 +0000 (16:05 +0200)]
remoteproc: Do not use of_irq_count in xilinx drivers

Driver resources are already filled and driver can use them.
The reason is that of_irq_count() is not exported
for modules in the mainline.
The next patch which revert this patch which we have in our tree.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Don't assert NETIF_F_FRAGLIST feature
Thomas Betker [Sat, 11 May 2013 09:10:46 +0000 (11:10 +0200)]
xilinx_emacps: Don't assert NETIF_F_FRAGLIST feature

In xemacps_probe(), do not set NETIF_F_FRAGLIST in ndev->features, only
NETIF_F_SG. xemacps_start_xmit() handles skb_shinfo(skb)->nr_frags, but
not skb_shinfo(skb)->frag_list.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Fix deadlock in xemacps_reinit_for_txtimeout()
Thomas Betker [Sat, 11 May 2013 09:10:45 +0000 (11:10 +0200)]
xilinx_emacps: Fix deadlock in xemacps_reinit_for_txtimeout()

In xemacps_reinit_for_txtimeout(), do not hold tx_lock when calling
tasklet_disable(). If xemacps_tx_poll() starts to run between acquiring
tx_lock and tasklet_disable(), we are caught in a deadlock because
tasklet_disable() waits until xemacps_tx_poll() has finished.

Also use netif_wake_queue() instead of netif_start_queue(), and don't
forget to update ndev->trans_start.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Restart transmission in xemacps_tx_poll().
Thomas Betker [Sat, 11 May 2013 09:10:44 +0000 (11:10 +0200)]
xilinx_emacps: Restart transmission in xemacps_tx_poll().

In xemacps_tx_poll(), restart transmission if there are still buffers
in the BD list [and at least one packet was transmitted]. It is
possible that transmission has stopped due to an error, and we don't
want to wait for the next xemacps_start_xmit().

Also, use netif_wake_queue() instead of netif_start_queue() so that
__netif_schedule() is invoked.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Remove sop checks in xemacps_tx_poll()
Thomas Betker [Sat, 11 May 2013 09:10:43 +0000 (11:10 +0200)]
xilinx_emacps: Remove sop checks in xemacps_tx_poll()

In xemacps_tx_poll(), we don't need to check sop == 1 after setting
sop = 1 (or breaking the loop).

This is a cleanup for the commit "Xilinx: ARM: EmacPs: Fix a potential
bug for multi-BD packets" on Jul 30, 2012.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Check hwcnt in xemacps_tx_poll()
Thomas Betker [Sat, 11 May 2013 09:10:42 +0000 (11:10 +0200)]
xilinx_emacps: Check hwcnt in xemacps_tx_poll()

In xemacps_tx_poll(), loop only while bdcount < SEND_BD_CNT - freecnt
(formerly known as hwcnt). Otherwise, we may loop through the whole Tx
BD list since "free" BDs always have the USED bit set. This should not
result in an error since no LAST bit is found, but it eats up time.

This issue was introduced by the commit "xilinx_emacps: Optimize the BD
handling logic" on Jan 21, 2013.

Note that there is no corresponding issue for the Rx BD list because
its freecnt is 0.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Don't check TXSR_TXCOMPL in xemacps_tx_poll()
Thomas Betker [Sat, 11 May 2013 09:10:41 +0000 (11:10 +0200)]
xilinx_emacps: Don't check TXSR_TXCOMPL in xemacps_tx_poll()

It doesn't really make sense to stop in xemacps_tx_poll() when
TXSR_TXCOMPL is not set. The logic works the other way round: When a
buffer becomes ready after reading TXSR, there is no reason why we
shouldn't process it. This is similar to xemacps_rx_poll() where
RXSR_FRAMERX isn't checked either.

We do stop when no buffers are available, though. In this case, skip
netif_start_queue() because nothing has changed.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Handle NAPI "rotten packets"
Thomas Betker [Sat, 11 May 2013 09:10:40 +0000 (11:10 +0200)]
xilinx_emacps: Handle NAPI "rotten packets"

When xemacps_rx_poll() has processed the Rx BD ring until it is empty,
another packet may come in before we have unmasked the Rx interrupts.
No interrupt is signalled for it, and it is left to rot in the BD ring
until the next packet is received.

This is what NAPI calls a "rotting packet", and it actually seems to
occur quite often in heavy traffic (about 30 times per second),
sometimes leading to Rx stalls.

The solution is standard: Check the Rx BD ring again after unmasking
the Rx interrupts, and reschedule NAPI (and remask the interrupts) when
a new packet is detected.

Note that we no longer need an inner loop around xemacps_rx(); the
latter returns when the BD list is empty or the budget is reached, so
we are usually done. [Previously, xemacps_rx() would also return when
XEMACPS_RECV_BD_CNT was reached, so we had to loop over it.]

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Fix skb allocation in xemacps_rx()
Thomas Betker [Sat, 11 May 2013 09:10:39 +0000 (11:10 +0200)]
xilinx_emacps: Fix skb allocation in xemacps_rx()

In xemacps_rx(), allocate the new skb before handling the old one. If
netdev_alloc_skb() fails, we don't want the Rx BD list to get stuck in
an inconsistent state; instead, we try again with the next interrupt.

We also return numbdfree now when skb allocation fails, not 0.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Fix panic in xemacps_mii_probe()
Thomas Betker [Sat, 11 May 2013 09:10:38 +0000 (11:10 +0200)]
xilinx_emacps: Fix panic in xemacps_mii_probe()

The code checks phydev only when phy_node != NULL, resulting in a
panic when phy_node == NULL (because phydev == NULL). We now check
phydev also when phy_node == NULL, generating an error message.

This issue was introduced by the commit "xilinx_emacps: Add support for
EMIO" on Apr 03, 2013.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx_emacps: Fix xemacps_read() and xemacps_write()
Thomas Betker [Sat, 11 May 2013 09:10:37 +0000 (11:10 +0200)]
xilinx_emacps: Fix xemacps_read() and xemacps_write()

The 'base' argument in xemacps_read() and xemacps_write() must be cast
to 'void *' before adding 'reg', not afterwards. Otherwise, pointer
arithmetic will do the wrong thing if, e.g., 'base' is a 'u32 *'.

This issue was introduced by the commit "xilinx_emacps: Remove sparse
errors" on Jan 21, 2013.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: xilinx_emacps: Don't disconnect phy in remove
Peter Crosthwaite [Tue, 28 May 2013 02:13:34 +0000 (12:13 +1000)]
net: xilinx_emacps: Don't disconnect phy in remove

The phy is always connected in xemacps_open() so it should only
disconnect it in its cleanup counterpart xemapcs_close(). Remove
the extraneous phy_disconnect() in xemacps_remove accordingly.

Reported-by: Davor Joja <davorjoja@logicbricks.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoRevert "serial: Add OF alias support for uartlite"
Michal Simek [Tue, 4 Jun 2013 12:02:53 +0000 (14:02 +0200)]
Revert "serial: Add OF alias support for uartlite"

This reverts commit b871088c8964ad313cd368daca5e0f1020aed18d.

Device-tree BSP generates port-number which is used
for setup proper device ID that's why we don't need
to care about positions in aliases node.
Both are synchronized by device-tree BSP.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agowatchdog: xilinx: Remove SETTIMEOUT
Michal Simek [Fri, 17 May 2013 11:33:35 +0000 (13:33 +0200)]
watchdog: xilinx: Remove SETTIMEOUT

Based on my upstream discussion this feature
shouldn't be implemented for this watchdog
because there is no option to set up timeout.
Every application has to check return value
that this feature is not implemented.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynq: Use generic cpu idle function for wfi
Michal Simek [Tue, 28 May 2013 05:46:23 +0000 (07:46 +0200)]
ARM: zynq: Use generic cpu idle function for wfi

Use cpu_do_idle for entering the wfi mode.
Based on Sanjay Singh Rawat patch in hotplug.c.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: ll_temac: Remove sparse warning
Michal Simek [Thu, 30 May 2013 13:25:09 +0000 (15:25 +0200)]
net: ll_temac: Remove sparse warning

Remove sparse warning to be able to catch others.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomicroblaze: Use static inline functions in cacheflush.h
Michal Simek [Mon, 3 Jun 2013 09:30:04 +0000 (11:30 +0200)]
microblaze: Use static inline functions in cacheflush.h

Using static inline functions ensure proper type checking
which also remove compilation warning for no MMU

Compilation warning:
arch/microblaze/include/asm/cacheflush.h: warning: 'addr'
 may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomicroblaze: Fix sparse warnings
Michal Simek [Thu, 30 May 2013 13:10:52 +0000 (15:10 +0200)]
microblaze: Fix sparse warnings

arch/microblaze/include/asm/uaccess.h:101:3:
 warning: cast removes address space of expression
arch/microblaze/include/asm/uaccess.h:107:2:
 warning: cast removes address space of expression

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoRevert "ll_temac: Fix some compatibility things to get it work on 3.3"
Michal Simek [Thu, 30 May 2013 13:06:58 +0000 (15:06 +0200)]
Revert "ll_temac: Fix some compatibility things to get it work on 3.3"

This reverts commit 898b18df67b7f20238e9c189f4d40c6f13188d29.

This problem is not with ll_temac driver anymore.
Synchronize it with mainline code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: Fix smp code not to rewrite code when starting address is 0x0
Michal Simek [Fri, 24 May 2013 15:58:55 +0000 (17:58 +0200)]
zynq: Fix smp code not to rewrite code when starting address is 0x0

This is used by remoteproc.

10 years agoremoteproc: zynq: Do not deallocate already allocated IPI
Michal Simek [Fri, 24 May 2013 15:07:34 +0000 (17:07 +0200)]
remoteproc: zynq: Do not deallocate already allocated IPI

This causes issue when for example remoteproc wants to use
system IPI which is already allocated which end up
that the driver clears system IPI mapping.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomicroblaze: Reversed logic in futex cmpxchg
Meyer, Kirk [Thu, 23 May 2013 17:06:57 +0000 (17:06 +0000)]
microblaze: Reversed logic in futex cmpxchg

futex_atomic_cmpxchg_inatomic exchanged if the values were
unequal rather than equal. This caused incorrect behavior
of robust futexes.

Signed-off-by: Kirk Meyer <kirk.meyer@sencore.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoarm: dt: zed: fixing xadc register area
Veena Kumar [Thu, 30 May 2013 17:05:07 +0000 (10:05 -0700)]
arm: dt: zed: fixing xadc register area

Removed the extra zero in the register area size.

Signed-off-by: Veena Kumar <veena.kumar@xilinx.com>
Reviewed-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynq: use generic cpu idle function for wfi
Sanjay Singh Rawat [Mon, 27 May 2013 14:32:42 +0000 (20:02 +0530)]
ARM: zynq: use generic cpu idle function for wfi

use cpu_do_idle for entering the wfi mode.

Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoarm: zynq: remove Makefile.boot
Michal Simek [Mon, 27 May 2013 14:22:45 +0000 (16:22 +0200)]
arm: zynq: remove Makefile.boot

Since we have converted zynq to multiplatform build,
Makefile.boot is not used anyway. Remove it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agochar: devcfg: Remove de-documented user-mode feature
Peter Crosthwaite [Fri, 24 May 2013 06:00:08 +0000 (16:00 +1000)]
char: devcfg: Remove de-documented user-mode feature

This bit has become un-documented, as it is a bootrom only feature.
It is marked as "do no modify", so the driver should only set it as
part of a read-modify-write process.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agochar: xdevcfg: Ensure PCAP loopback is disabled
Rob Armstrong JR [Fri, 24 May 2013 00:15:52 +0000 (02:15 +0200)]
char: xdevcfg: Ensure PCAP loopback is disabled

Some versions of the Zynq first stage boot loader enable PCAP loopback
during boot regardless of whether or not the boot image includes PL
configuration. This behavior only appears in certain boot modes (notably
QSPI boot). Attempting to configure the PL with the loopback bit set
will result in timeouts and will prevent successful configuration.

In order to avoid this problem, and to avoid dependency on the version
of the FSBL used to boot the system, ensure that the loopback enable bit
is cleared when loading the driver.

Signed-off-by: Rob Armstrong <ra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agomisc: si570: Fix compiler warning
Davor Joja [Wed, 22 May 2013 13:33:48 +0000 (06:33 -0700)]
misc: si570: Fix compiler warning

Fix potentially uninitialized variable.

Signed-off-by: Davor Joja <davorjoja@logicbricks.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agochar: xdevcfg: Allow userspace fclk controls
Soren Brinkmann [Fri, 17 May 2013 16:47:45 +0000 (09:47 -0700)]
char: xdevcfg: Allow userspace fclk controls

In order to have simple control over the FPGA clocks, controls can be
exported to userspace through sysfs.

The files 'fclk_export' and 'fclk_unexport' are created under the devcfg
device node in sysfs. Reading those files returns the valid values to
write to the corresponding file.

Writing a valid value to 'fclk_export' exports clock controls for the
chosen clock in the 'fclk' subdirectory. Similarly, writing a valid
value to 'fclk_unexport' reverts the export.

Currently the CCF API functions 'clk_enable'/'clk_disable',
'clk_round_rate' and 'clk_set_rate' are exported (clk_(un)prepare is
implicitly done during (un-)export).

enable:
  Writing non-zero to this file enables the clock. Writing zero disables it.

round_rate:
  Writing a frequency in Hz to it sets the frequency to be rounded.
  Reading the file prints the set frequency and the rounded frequency.

set_rate:
  Reading this file returns the current clock frequency. Writing sets a
  new frequency.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agozynq: SMP crashkernel support
Michal Simek [Wed, 22 May 2013 08:11:52 +0000 (10:11 +0200)]
zynq: SMP crashkernel support

Add hook to arm crashkernel to support crashkernel on smp systems
where it is necessary to disable nonboot cpus.

Based on Stephen Warren's patch:
"ARM: call disable_nonboot_cpus() from machine_shutdown()"
https://patchwork.kernel.org/patch/1925071/
which is already applied too.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoARM: call disable_nonboot_cpus() from machine_shutdown()
Stephen Warren [Wed, 2 Jan 2013 21:07:41 +0000 (21:07 +0000)]
ARM: call disable_nonboot_cpus() from machine_shutdown()

On Tegra at least, this change allows kexec to work with SMP enabled.
Without this,  machine_shutdown() simply puts all CPUs into a loop. If
the code of that loop is over-written, the CPUs may hang or crash (which
I do observe in practice), or cause the kexec'd kernel not to be able to
initialize them.

This fix has the added benefit that the kexec always happens on the boot
CPU, and thus kexec mirrors the initial kernel boot as much as possible.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: emacps: Move request_irq to the end of probe function
Michal Simek [Wed, 22 May 2013 08:10:54 +0000 (10:10 +0200)]
net: emacps: Move request_irq to the end of probe function

Move request_irq function to the end of emacps probe
because when system crashes there could be unhadled
interrupts when crashkernel come again and after
request_irq driver starts to handle it but not all
things are initialized yet.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agozynq: Add support for zynq_cpu_kill function
Michal Simek [Wed, 22 May 2013 08:10:11 +0000 (10:10 +0200)]
zynq: Add support for zynq_cpu_kill function

Use simple hook to slcr to stop cpu.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: slcr: Fix array size
Soren Brinkmann [Mon, 20 May 2013 16:27:15 +0000 (09:27 -0700)]
arm: zynq: slcr: Fix array size

An array holding status bits was defined too small. This is fixed by
removing the static array size with a compile time calculation.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: Generate proper load section addresses
Michal Simek [Fri, 17 May 2013 09:26:59 +0000 (11:26 +0200)]
arm: Generate proper load section addresses

Moving to multiplatform caused that LOAD session
were wrongly generated for our images.
simpleImage is currently used by Qemu.

Wrong - before this patch:
Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x008000 0xc0008000 0xc0008000 0x4fffe8 0x507fe8 RWE 0x8000
  LOAD           0x507fe8 0xc050ffe8 0xc050ffe8 0x8b130 0xb5a88 RWE 0x8000
  NOTE           0x52c2ac 0xc05342ac 0xc05342ac 0x00024 0x00024 R E 0x4
  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4

Correct - after this patch:
Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x008000 0xc0008000 0x00008000 0x4fffe8 0x507fe8 RWE 0x8000
  LOAD           0x507fe8 0xc050ffe8 0x0050ffe8 0x8b130 0xb5a88 RWE 0x8000
  NOTE           0x52c2ac 0xc05342ac 0x005342ac 0x00024 0x00024 R E 0x4
  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agomicroblaze: Use proper casting for inb/inw/inl in io.h
Michal Simek [Thu, 23 May 2013 06:04:09 +0000 (08:04 +0200)]
microblaze: Use proper casting for inb/inw/inl in io.h

We are going to move to asm-generic/io.h but
let's fix compilation warnings first for 3.10.

Warning message:
arch/microblaze/include/asm/io.h:126:26: warning: cast to
 pointer from integer of different size [-Wint-to-pointer-cast]
 #define inb(port)  readb((u8 *)((port)))
...

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agovideo: xylonfb: Add missing header
Michal Simek [Wed, 22 May 2013 13:46:26 +0000 (15:46 +0200)]
video: xylonfb: Add missing header

It should be the part of patch
"Merge tag 'v3.9' into master-next"
(sha1: 79a6cbd54869ed374f0d4ac6f2627c399b9eb34e)

The patch fix compilation errors:
drivers/video/xylon/xylonfb/of/../core/../misc/xylonfb-adv7511.c:220:1:
 error: unknown type name 'irqreturn_t'
drivers/video/xylon/xylonfb/of/../core/../misc/xylonfb-adv7511.c:228:9:
 error: 'IRQ_HANDLED' undeclared (first use in this function)
...

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq defconfig: Remove input event debugging
Rob Armstrong JR [Mon, 20 May 2013 17:30:23 +0000 (19:30 +0200)]
arm: zynq defconfig: Remove input event debugging

In the general Zynq defconfig input device event debugging
is enabled, which fills the log buffer with evbug messages
when using a keyboard or mouse. These messages aren't useful
unless actively debugging input devices and can obscure
more relevant log messages, so disable them by default.

Signed-off-by: Rob Armstrong <ra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: smp: ipi_timer is not used anywhere
Michal Simek [Mon, 20 May 2013 07:38:28 +0000 (09:38 +0200)]
arm: smp: ipi_timer is not used anywhere

Remove this unused function declaration.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agozynq: Enable cadence macb driver
Michal Simek [Fri, 17 May 2013 12:59:43 +0000 (14:59 +0200)]
zynq: Enable cadence macb driver

We will use this driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agozynq: Enable suspend support by default
Michal Simek [Fri, 17 May 2013 13:02:24 +0000 (15:02 +0200)]
zynq: Enable suspend support by default

Enable SRAM driver and suspend support.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: pm: Fix compilation error
Soren Brinkmann [Fri, 17 May 2013 16:39:29 +0000 (09:39 -0700)]
arm: zynq: pm: Fix compilation error

The variable 'scu_base' had been renamed to 'zynq_scu_base'. pm.c has
not been updated accordingly. Fixing this with a simple search and
replace:
s/scu_base/zynq_scu_base

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoRevert "arm: zynq: pm: Use generic OCM allocator"
Soren Brinkmann [Fri, 17 May 2013 16:39:28 +0000 (09:39 -0700)]
Revert "arm: zynq: pm: Use generic OCM allocator"

This reverts commit 6e847915770c5046b357a8c1f314cc2902c833d2.
The commit breaks compilation when CONFIG_SUSPEND is set.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: Remove CONFIG_CPU_DCACHE_DISABLE
Michal Simek [Fri, 17 May 2013 11:48:27 +0000 (13:48 +0200)]
arm: Remove CONFIG_CPU_DCACHE_DISABLE

Origin patch:
Xilinx: ARM: Added the ability to disable the D cache
(sha1: 944dbf527b3b223d3b675dc5074faa3188df05d7)
is probably not valid for now.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agochar: devcfg: Update xilinx header
Michal Simek [Fri, 17 May 2013 11:35:56 +0000 (13:35 +0200)]
char: devcfg: Update xilinx header

Update header.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agochar: xilinx_hwicap: Checkpatch.pl cleanup
Michal Simek [Fri, 17 May 2013 11:33:35 +0000 (13:33 +0200)]
char: xilinx_hwicap: Checkpatch.pl cleanup

Remove checkpatch warning:
WARNING: Use #include <linux/io.h> instead of <asm/io.h>

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: xilinxps_udc: Fixed sparse errors
Naveen Mamindlapalli [Fri, 17 May 2013 09:10:30 +0000 (14:40 +0530)]
usb: xilinxps_udc: Fixed sparse errors

Fixed sparse errors.

Signed-off-by: Naveen Mamindlapalli <naveenm@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agochar: xdevcfg: Create device node
Soren Brinkmann [Wed, 15 May 2013 23:36:18 +0000 (16:36 -0700)]
char: xdevcfg: Create device node

Automatically create the devcfg device node in /dev/ and obtain the
device major dynamically.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoxilinx: ppc: Fix Kconfig warning
Michal Simek [Wed, 15 May 2013 09:03:40 +0000 (11:03 +0200)]
xilinx: ppc: Fix Kconfig warning

warning: (PPC_E500MC && PPC_BOOK3S_32 && PPC_BOOK3S_64 &&
PPC_BOOK3E_64 && ISS4xx && 440EP && 440EPX && 460EX
&& 460SX && 476FPE && APM821xx) selects PPC_FPU which
has unmet direct dependencies (XILINX_VIRTEX_5_FXT)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agowatchdog: wdtps: Fix coding style violations
Michal Simek [Wed, 15 May 2013 08:34:10 +0000 (10:34 +0200)]
watchdog: wdtps: Fix coding style violations

Check by checkpatch.pl.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agowatchdog: wdtps: Fix header information
Michal Simek [Wed, 15 May 2013 08:33:17 +0000 (10:33 +0200)]
watchdog: wdtps: Fix header information

Just update and fix date.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx-qps: Fix coding style issues
Michal Simek [Wed, 15 May 2013 08:29:35 +0000 (10:29 +0200)]
spi: xilinx-qps: Fix coding style issues

Fix some checkpatch.pl warnings.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agodma: axivdma: Fix coding style issue
Michal Simek [Wed, 15 May 2013 08:22:46 +0000 (10:22 +0200)]
dma: axivdma: Fix coding style issue

Avoid CamelCase.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: ethernet: axienet: Fix comments blocks
Michal Simek [Wed, 15 May 2013 08:16:52 +0000 (10:16 +0200)]
net: ethernet: axienet: Fix comments blocks

There is rule for network drivers with comments blocks
which is newly checked by checkpatch.pl script.
Let's fix it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: ethernet: axienet: Removed checkpatch errors/warnings
Srikanth Thokala [Tue, 14 May 2013 11:54:52 +0000 (17:24 +0530)]
net: ethernet: axienet: Removed checkpatch errors/warnings

Removed checkpatch.pl errors and warnings.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: ethernet: axienet: Support phy-less mode of operation
Srikanth Thokala [Tue, 14 May 2013 11:54:51 +0000 (17:24 +0530)]
net: ethernet: axienet: Support phy-less mode of operation

This patch adds proper checks to handle the PHY-less case.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: ethernet: axienet: Handle jumbo frames for lesser frame sizes
Srikanth Thokala [Tue, 14 May 2013 11:54:50 +0000 (17:24 +0530)]
net: ethernet: axienet: Handle jumbo frames for lesser frame sizes

In the current implementation, jumbo frames are supported only
for the frame sizes > 16K. This patch corrects this logic to
handle jumbo frames for lesser frame sizes (< 16K) ensuring jumbo frame
MTU is within the limit of max frame size configured in the h/w
design.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: ethernet: axienet: Removed sparse warning
Srikanth Thokala [Wed, 8 May 2013 15:21:05 +0000 (20:51 +0530)]
net: ethernet: axienet: Removed sparse warning

Removed sparse warning

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoEnable gcov support on the ARM architecture
Vincent Sanders [Mon, 28 May 2012 18:43:45 +0000 (18:43 +0000)]
Enable gcov support on the ARM architecture

Enable gcov support for ARM based on original patches by David
Singleton and George G. Davis

Signed-off-by: Vincent Sanders <vincent.sanders@collabora.co.uk>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Conflicts:
arch/arm/boot/compressed/Makefile
kernel/gcov/Kconfig

11 years agoAllow constructor name selection by architecture.
Vincent Sanders [Mon, 28 May 2012 18:44:31 +0000 (18:44 +0000)]
Allow constructor name selection by architecture.

The constructor symbol name is different between platforms. Allow this
to be selected by configuration and set suitable default values.

Signed-off-by: Vincent Sanders <vincent.sanders@collabora.co.uk>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>