]> rtime.felk.cvut.cz Git - zynq/linux.git/log
zynq/linux.git
11 years agozynq/microblaze: pcie: Modified to support PCIe node ranges property xilinx-v14.4
Srikanth Thokala [Tue, 11 Dec 2012 13:21:57 +0000 (18:51 +0530)]
zynq/microblaze: pcie: Modified to support PCIe node ranges property

There is a change in ranges property of PCIe node in device-tree, for which the driver needs support. This commit fix this.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoRevert "xilinx_emacps: Dont poll interrupts"
Michal Simek [Tue, 11 Dec 2012 16:12:01 +0000 (17:12 +0100)]
Revert "xilinx_emacps: Dont poll interrupts"

This reverts commit 8c5e47575ddd6cb91851490fead2fde50fd61dcf.

Let's keep this patch for the next release when
we exactly know performance impacts.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agozynq: Update defconfig
John Linn [Fri, 7 Dec 2012 23:38:12 +0000 (15:38 -0800)]
zynq: Update defconfig

Add a local version to indicate a Xilinx kernel.

Signed-off-by: John Linn <john.linn@xilinx.com>
11 years agoxilinx_emacps: Dont poll interrupts petalinux-v12.12-final
Peter Crosthwaite [Tue, 11 Dec 2012 06:22:24 +0000 (16:22 +1000)]
xilinx_emacps: Dont poll interrupts

Don't loop the interrupt service logic in the ISR. Currently it polls for
subsequent interrupts after servicing the first. This is not an error, but is
non-ideal for two reasons:

Firstly, there was a condition where the higher levels of interrupt control
could requeue the ISR while it was still acting. The first invocation would
then service the new interrupt and the second ISR invocation would be a NOP.

Secondly, there is no bound on the length of time the driver spends in ISR
context. ISRs ideally have a deterministic duration.

Fixed by just unlooping. Each ISR is now a oneshot. Interrupts that re-trigger
during servicing are handled by a subsequent incovation of the ISR.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Wendy Liang <wendy.liang@xilinx.com>
11 years agoxilinx_emacps: Release lock on IRQ_NONE return
Peter Crosthwaite [Tue, 11 Dec 2012 06:22:23 +0000 (16:22 +1000)]
xilinx_emacps: Release lock on IRQ_NONE return

There is an unlikely early return path from the interrupt service that was
returning without releasing the global lock. If this return path is taken
the driver will crash as soon as any other activity tries to take the global
lock. Resolved by releasing the lock.

This is a regression introduced by 4a135db6d2d8c101221f32c2453562adf84ae06d

Reported-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Wendy Liang <wendy.liang@xilinx.com>
11 years agozynq: Update defconfig
Michal Simek [Thu, 6 Dec 2012 08:37:45 +0000 (09:37 +0100)]
zynq: Update defconfig

Enable options around PCI and USB.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: ethernet: xilinx: Do not show LL_TEMAC phy options if isn't selected
Michal Simek [Thu, 6 Dec 2012 08:37:44 +0000 (09:37 +0100)]
net: ethernet: xilinx: Do not show LL_TEMAC phy options if isn't selected

Show phy options when it is required. Make no sense to show
it for AXI.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoxilinx-usbps: Initialize ehci hcd before using it
Lars-Peter Clausen [Thu, 6 Dec 2012 11:52:14 +0000 (12:52 +0100)]
xilinx-usbps: Initialize ehci hcd before using it

In ehci_xusbps_setup ehci_halt is called before ehci_init. This means that the
initial ehci_halt call is working on a not completely initialized ehci hcd
struct, which might cause undefined behavior. So make sure to call ehci_init
before calling ehci_halt.

This fixes also the following lockdep warning:

INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
[<c001355c>] (unwind_backtrace+0x0/0xe0) from [<c005c6c0>] (__lock_acquire+0x1ac/0x19c0)
[<c005c6c0>] (__lock_acquire+0x1ac/0x19c0) from [<c005e394>] (lock_acquire+0x60/0x74)
[<c005e394>] (lock_acquire+0x60/0x74) from [<c034843c>] (_raw_spin_lock_irq+0x50/0x60)
[<c034843c>] (_raw_spin_lock_irq+0x50/0x60) from [<c02202e8>] (ehci_halt+0x14/0xd8)
[<c02202e8>] (ehci_halt+0x14/0xd8) from [<c022532c>] (ehci_xusbps_setup+0x58/0x41c)
[<c022532c>] (ehci_xusbps_setup+0x58/0x41c) from [<c020f828>] (usb_add_hcd+0x194/0x5c0)
[<c020f828>] (usb_add_hcd+0x194/0x5c0) from [<c0223e28>] (ehci_xusbps_drv_probe+0x158/0x1e0)
[<c0223e28>] (ehci_xusbps_drv_probe+0x158/0x1e0) from [<c01c84dc>] (platform_drv_probe+0x14/0x18)
...

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
11 years agoarm: zynq: udpate device tree flash partitions
John Linn [Tue, 4 Dec 2012 21:25:43 +0000 (13:25 -0800)]
arm: zynq: udpate device tree flash partitions

The u-boot was changed and now Linux device tree
flash partitions are being cleaned up to allow
for a bitstream to be up high in flash.

Signed-off-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agomtd: xilinx_nandps: Remove __devinitconst from xnandps_commands
Michal Simek [Tue, 4 Dec 2012 08:55:39 +0000 (09:55 +0100)]
mtd: xilinx_nandps: Remove __devinitconst from xnandps_commands

The array is used by a non-(dev)init function and thus must not
be declared __devinitconst.
Fixes a section mismatch warning.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoxilinx_axienet: Service completion interrupts ASAP
Peter Crosthwaite [Mon, 3 Dec 2012 08:11:10 +0000 (18:11 +1000)]
xilinx_axienet: Service completion interrupts ASAP

The packet completion interrupts for TX and RX should be serviced before
the packets are consumed. This ensures against the degenerate case when a
new completion interrupt is raised after the handler has exited but before
the interrupts are cleared. In this case its possible for the ISR to clear
an unhandled interrupt (leading to potential deadlock).

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Jason Wu <huanyu@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoxilinx_axienet: Handle 0 packet receive gracefully
Peter Crosthwaite [Mon, 3 Dec 2012 08:11:09 +0000 (18:11 +1000)]
xilinx_axienet: Handle 0 packet receive gracefully

The AXI-DMA rx-delay interrupt can sometimes be triggered when there are 0
outstanding packets received. This is due to the fact that the receive function
will greedily consume as many packets as possible on interrupt. So if two
packets (with a very particular timing) arrive in succession they will each
cause the rx-delay interrupt, but the first interrupt will consume both packets.
This means the second interrupt is a 0 packet receive.

This is mostly OK, except that the tail pointer register is updated
unconditionally on receive. Currently the tail pointer is always set to the
current bd-ring descriptor under the assumption that the hardware has moved onto
the next descriptor. What this means for length 0 recv is the current descriptor
that the hardware is potentially yet to use will be marked as the tail. This
causes the hardware to think its run out of descriptors deadlocking the whole rx
path.

Fixed by updating the tail pointer to the most recent successfully consumed
descriptor.

Reported-by: Wendy Liang <wendy.liang@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Jason Wu <huanyu@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: ehci-xilinx-usbps: Fix reboot issue in OTG mode via ehci_shutdown
Michal Simek [Mon, 3 Dec 2012 14:04:30 +0000 (15:04 +0100)]
usb: ehci-xilinx-usbps: Fix reboot issue in OTG mode via ehci_shutdown

This patch fix the problem with gadget modules
(CONFIG_USB_ZERO=m for example) because root_hub is not initialized
before OTG driver is notified about it. When it is notified
this code in "xilinx_usbps_otg.c" is causing the problem.
because wants to read root_hub structures.

if (otg->otg->host->root_hub) {
      udev_otg = otg->otg->host->root_hub->children[otg_port-1];
}

This patch fix the origin patch
"usb: ehci-xilinx-usbps: Fix reboot issue in OTG mode"
(sha1: 8ec927ba65b0ab037de51921baa5868e57b1ceab)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: otg: usbps_otg: Automatically setup VBUS
Michal Simek [Mon, 26 Nov 2012 13:05:58 +0000 (14:05 +0100)]
usb: otg: usbps_otg: Automatically setup VBUS

This is zedboard requirement to get otg-host to work.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: xilinx: Fix ZED_USB_OTG option
Michal Simek [Mon, 19 Nov 2012 12:06:23 +0000 (13:06 +0100)]
usb: xilinx: Fix ZED_USB_OTG option

Do not select option if USB_SUPPORT is enabled because
this option depends on it.
Add dependency on XUSBPS_OTG.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: xilinx: Enable ULPI phy detection for usb
Michal Simek [Mon, 26 Nov 2012 10:10:24 +0000 (11:10 +0100)]
usb: xilinx: Enable ULPI phy detection for usb

Detect usb ulpi phys and set it up in pdata for others usb drivers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: xusbps-dr-of: Fix probe function
Michal Simek [Thu, 22 Nov 2012 13:06:16 +0000 (14:06 +0100)]
usb: xusbps-dr-of: Fix probe function

There is no reason to call of_match_device inside OF
driver because probe function is called when
compatible strings are matched.
Also copying empty xusbps_pdata is quite weird
that's why I have removed it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: ehci-xilinx-usbps: Fix reboot issue in OTG mode
Michal Simek [Mon, 26 Nov 2012 09:12:46 +0000 (10:12 +0100)]
usb: ehci-xilinx-usbps: Fix reboot issue in OTG mode

This patch fix the reboot issue when OTG mode is used
and reset is performed without using OTG-host mode.

The reason is not initializaed ehci->caps/regs which
are initialized in ehci_xusbps_setup but this function
is called when host mode is used.
But uninitialization depends on these values.

Path: usb_hcd_platform_shutdown -> ehci_shutdown ->
ehci_silence_controller -> ehci_halt
where code expect filled ehci->regs value.

Change ehci behavior in OTG mode to add and remove hcd
which ensure that all structure are initialized
and ehci can be shutdown.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: otg: usbps_otg: Do not initialized retval
Michal Simek [Thu, 22 Nov 2012 14:16:00 +0000 (15:16 +0100)]
usb: otg: usbps_otg: Do not initialized retval

Not necessary to initialized retval because it is
always setup later in the code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: otg: usbps_otg: Remove if condition
Michal Simek [Thu, 22 Nov 2012 14:12:14 +0000 (15:12 +0100)]
usb: otg: usbps_otg: Remove if condition

the_transceiver is always initialized and xusbps_otg_remove
is called all the time.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: otg: usbps_otg: Simplify returning path in otg driver
Michal Simek [Thu, 22 Nov 2012 14:07:53 +0000 (15:07 +0100)]
usb: otg: usbps_otg: Simplify returning path in otg driver

Return directly from driver and do not use done label.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: otg: ulpi: Add IDs from SMSC USB3320
Michal Simek [Thu, 22 Nov 2012 13:13:09 +0000 (14:13 +0100)]
usb: otg: ulpi: Add IDs from SMSC USB3320

This ulpi phy is placed on zc702 board and maybe
on others too.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: host: Remove OF dependency in USB_EHCI_XUSBPS
Michal Simek [Thu, 22 Nov 2012 13:11:00 +0000 (14:11 +0100)]
usb: host: Remove OF dependency in USB_EHCI_XUSBPS

USB_EHCI_XUSBPS depends on ARCH_ZYNQ which has always
OF on. That's why another OF dependency was removed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: spi-xilinx: Run run-time endian detection
Michal Simek [Wed, 28 Nov 2012 08:29:45 +0000 (09:29 +0100)]
spi: spi-xilinx: Run run-time endian detection

Do not load endian value from platform data
and rather autodetect it.
The problem is with using this platform in PL on Zynq
when little endian arm IO function should be used but
there is no description in DTS which suggest this
and also platform_data doesn't contain this information.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
CC: Srikanth Vemula <svemula@xilinx.com>
11 years agozynq: pcie: AXI PCIE Initialize pci when IP is available
Michal Simek [Fri, 30 Nov 2012 20:39:29 +0000 (21:39 +0100)]
zynq: pcie: AXI PCIE Initialize pci when IP is available

Do not initialize pci device when it is not available
in the system.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agogpio: xilinxps: Enable clock for non PM mode
Soren Brinkmann [Thu, 29 Nov 2012 19:37:45 +0000 (11:37 -0800)]
gpio: xilinxps: Enable clock for non PM mode

Assuming the device clock would be enabled through RUNTIME_PM,
the clock was disabled in the driver's probe routine.
Obviously, this did break functionality in case the kernel is
compiled without CONFIG_PM_RUNTIME.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agogpio: xilinxps: Remove not reachable code
Michal Simek [Wed, 28 Nov 2012 17:30:58 +0000 (18:30 +0100)]
gpio: xilinxps: Remove not reachable code

The second return in the same function can't be used.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agogpio: xilinx_gpiops: Correct minor style issues
Soren Brinkmann [Thu, 29 Nov 2012 17:47:26 +0000 (09:47 -0800)]
gpio: xilinx_gpiops: Correct minor style issues

Removing/adding braces where appropriate.
Remove unnecessary line breaks.
Remove unnecessary casts of void pointers.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agogpio: xlilinx_gpiops: Migrate to 'to_platform_device'
Soren Brinkmann [Thu, 29 Nov 2012 17:47:25 +0000 (09:47 -0800)]
gpio: xlilinx_gpiops: Migrate to 'to_platform_device'

Replacing usage of the 'container_of' macro with the simpler
'to_platform_device' macro where appropriate.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agogpio: xilinx_gpiops: Remove unnecessary #include
Soren Brinkmann [Thu, 29 Nov 2012 17:47:24 +0000 (09:47 -0800)]
gpio: xilinx_gpiops: Remove unnecessary #include

linux/errno.h is not required by the driver and thus removed
from the included files.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agogpio: xilinx_gpiops: Sort #includes alphabetically
Soren Brinkmann [Thu, 29 Nov 2012 17:47:23 +0000 (09:47 -0800)]
gpio: xilinx_gpiops: Sort #includes alphabetically

Just sorting for easier maintenance.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agogpio: xilinxps: Fix interrupts
Soren Brinkmann [Thu, 29 Nov 2012 17:45:15 +0000 (09:45 -0800)]
gpio: xilinxps: Fix interrupts

This patch makes the GPIO interrupts work and they can be
used to resume from suspend.

Also we have to adjust the numbers of interrupts for zynq
because several subsystems - e.g. GPIO, PCIe
use virtual IRQs beyond 128, thus this number must be increased.

Let's allocate IRQs 128-256 for PCIe
and IRQs 256-512(ARCH_NR_GPIOS) for GPIOs.
Also chnage XGPIOPS_IRQBASE to reflect this.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: ethernet: emacps: Do no use emac power management
Michal Simek [Thu, 29 Nov 2012 16:12:38 +0000 (17:12 +0100)]
net: ethernet: emacps: Do no use emac power management

This is workaround for problem with busybox udhcp client
which is not able to obtain IP address when PM is on.
But on the other hand we need PM in menuconfig for
others driver that's why I am blocking PM code in the driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agozynq: pcie: AXI PCIE Fix section mismatch
Michal Simek [Fri, 30 Nov 2012 21:00:21 +0000 (22:00 +0100)]
zynq: pcie: AXI PCIE Fix section mismatch

Fix section mismatch because of section warnings.

Warning:
WARNING: arch/arm/mach-zynq/built-in.o(.text+0x2c5c):
 Section mismatch in reference from the function xaxi_pcie_setup()
 to the function .devinit.text:xaxi_pcie_set_bridge_resource()
The function xaxi_pcie_setup() references
the function __devinit xaxi_pcie_set_bridge_resource().
This is often because xaxi_pcie_setup lacks a __devinit
annotation or the annotation of xaxi_pcie_set_bridge_resource is wrong.

WARNING: arch/arm/mach-zynq/built-in.o(.text+0x2c68):
 Section mismatch in reference from the function xaxi_pcie_setup()
 to the function .devinit.text:xaxi_pcie_process_bridge_OF_ranges()
The function xaxi_pcie_setup() references
the function __devinit xaxi_pcie_process_bridge_OF_ranges().
This is often because xaxi_pcie_setup lacks a __devinit
annotation or the annotation of xaxi_pcie_process_bridge_OF_ranges is wrong.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agozynq: pcie: AXI PCIE Root Port driver
Srikanth Thokala [Fri, 30 Nov 2012 10:36:42 +0000 (16:06 +0530)]
zynq: pcie: AXI PCIE Root Port driver

This patch implements Zynq version of AXI PCIe Root Port functionality.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agogpio: xilinx_gpiops: Fix gpio_request() return value
Lars-Peter Clausen [Wed, 28 Nov 2012 18:24:21 +0000 (10:24 -0800)]
gpio: xilinx_gpiops: Fix gpio_request() return value

Commit bb1bff3c ("Xilinx: ARM: xgpiops: Adding PM support") added runtime power
management for the gpio driver. The gpio chip's request callback calls
pm_runtime_get() and passes the return value on, but pm_runtime_get() may either
return 0 or 1 on success, but the gpio request callback should only ever return
0 on success. This patch modifies the code to return 0 if the return value of
pm_runtime_get() is >= 0.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Remove mach/smc.h
Soren Brinkmann [Thu, 29 Nov 2012 01:09:53 +0000 (17:09 -0800)]
arm: zynq: Remove mach/smc.h

The only user of mach/smc.h is the Zynq nandps driver. Required
content is moved from the header to the actual driver and the
redundant header is removed.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Remove mach/nand.h
Soren Brinkmann [Thu, 29 Nov 2012 01:09:52 +0000 (17:09 -0800)]
arm: zynq: Remove mach/nand.h

The only user of mach/nand.h is the Zynq nandps driver. Required
content is moved from the header to the actual driver and the
redundant header is removed.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agomtd: xilinx_nandps: Move of_match table to proper location
Michal Simek [Wed, 28 Nov 2012 16:13:19 +0000 (17:13 +0100)]
mtd: xilinx_nandps: Move of_match table to proper location

match table should be close to platform_driver function
where all expect it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agomtd: xilinx_nandps: Fix probe function
Michal Simek [Wed, 28 Nov 2012 16:13:18 +0000 (17:13 +0100)]
mtd: xilinx_nandps: Fix probe function

Do not check if device matches because it does
because of driver OF initialization.

No reason to share platform data through static variable.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agomtd: xilinx_nandps: Clean coding style issue
Michal Simek [Wed, 28 Nov 2012 16:13:17 +0000 (17:13 +0100)]
mtd: xilinx_nandps: Clean coding style issue

Split testing cases from not good looking if else structures.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agoxilinx: Remove unused xspi_platform_data structure
Michal Simek [Wed, 28 Nov 2012 16:12:02 +0000 (17:12 +0100)]
xilinx: Remove unused xspi_platform_data structure

spi-xilinx is using the same structure name but
it is defined in include/linux/spi/xilinx_spi.h.
It is historical relic that it wasn't removed when
spi driver went to mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agoarm: zynq: Add support for Zed Board
John Linn [Wed, 28 Nov 2012 00:11:19 +0000 (16:11 -0800)]
arm: zynq: Add support for Zed Board

Basic testing has been done with ethernet, usb host,
QSPI (16MB) and SD. The device tree was generated using the
merged device tree generator.

The QSPI partitions are setup assuming a new memory map
that is going to be supported in u-boot also.

Signed-off-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Remove gpio function references
Michal Simek [Tue, 27 Nov 2012 14:42:48 +0000 (15:42 +0100)]
arm: zynq: Remove gpio function references

These two functions are completely unused.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agogpio: gpio-xilinx: Remove CONFIG_OF conditionals
Michal Simek [Tue, 27 Nov 2012 14:40:47 +0000 (15:40 +0100)]
gpio: gpio-xilinx: Remove CONFIG_OF conditionals

CONFIG_OF is mandatory for all Xilinx platforms. For this reason
all conditional compiling regarding this option can be removed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agommc: xilinx_sdhcips: Implement custom supend/resume callbacks
Soren Brinkmann [Tue, 27 Nov 2012 18:02:30 +0000 (10:02 -0800)]
mmc: xilinx_sdhcips: Implement custom supend/resume callbacks

The generic suspend/resume callbacks for the sdhci subsystem do not
support clock gating. Therefore Zynq specific callbacks are implemented.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agommc: xilinx_sdhcips: Port driver to COMMON_CLK
Soren Brinkmann [Tue, 27 Nov 2012 18:02:29 +0000 (10:02 -0800)]
mmc: xilinx_sdhcips: Port driver to COMMON_CLK

Use the common clock framework to manage device clocks.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agomtd: xilinx_nandps: Remove unused struct member
Soren Brinkmann [Tue, 27 Nov 2012 18:22:49 +0000 (10:22 -0800)]
mtd: xilinx_nandps: Remove unused struct member

Removing the unused pdev member of struct xnandps_info.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agomtd: xilinx_nandps: Remove redundant callback assignments
Soren Brinkmann [Tue, 27 Nov 2012 18:22:48 +0000 (10:22 -0800)]
mtd: xilinx_nandps: Remove redundant callback assignments

The platform_driver's 'suspend' and 'resume' members were assigned NULL.
Thus, those statements can be removed.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agomtd: xilinx_nandps: Correct minor style issues
Soren Brinkmann [Tue, 27 Nov 2012 18:22:47 +0000 (10:22 -0800)]
mtd: xilinx_nandps: Correct minor style issues

Removing/adding braces where appropriate.
Removing a couple of empty statements.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agomtd: xilinx_nandps: Sort #includes alphabetically
Soren Brinkmann [Tue, 27 Nov 2012 18:22:46 +0000 (10:22 -0800)]
mtd: xilinx_nandps: Sort #includes alphabetically

Just sorting for easier maintenance.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agomtd: xilinx_nandps: Remove CONFIG_OF conditionals
Soren Brinkmann [Tue, 27 Nov 2012 18:22:45 +0000 (10:22 -0800)]
mtd: xilinx_nandps: Remove CONFIG_OF conditionals

CONFIG_OF is mandatory for the Zynq platform. For this reason
all conditional compiling regarding this option can be removed.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agomtd: xilinx_nandps: Simplify driver initialization
Soren Brinkmann [Tue, 27 Nov 2012 18:22:44 +0000 (10:22 -0800)]
mtd: xilinx_nandps: Simplify driver initialization

Use module_platform_driver macro which creates
init and exit functions.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agomtd: xilinx_nandps: Rename driver to nandps
Soren Brinkmann [Tue, 27 Nov 2012 18:22:43 +0000 (10:22 -0800)]
mtd: xilinx_nandps: Rename driver to nandps

The acronym PSS is no longer used in favor of PS. The driver is
renamed accordingly. All ocurrences of PSS/pss are replaced by
PS/ps. The kernel configuration option is now named MTD_NAND_XILINX_PS.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: xilinx_emacps: Fixes indentation and style issues
Anirudha Sarangi [Tue, 27 Nov 2012 15:25:05 +0000 (20:55 +0530)]
net: xilinx_emacps: Fixes indentation and style issues

This patch fixes the indentation/style issues in the driver
that has been present from the beginning. This patch corrects
one wrong comment.

Signed-off-by: Anirudha Sarangi <anirudh@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: xilinx_emacps: Corrects Rx/Tx error reporting
Anirudha Sarangi [Tue, 27 Nov 2012 15:25:04 +0000 (20:55 +0530)]
net: xilinx_emacps: Corrects Rx/Tx error reporting

The existing driver reports wrong Rx/Tx error count (ifconfig).
The Rx/Tx error counters get incremented twice for most of.
the error cases. This patch fixes it.

Signed-off-by: Anirudha Sarangi <anirudh@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Clean coding style
Michal Simek [Tue, 27 Nov 2012 12:47:28 +0000 (13:47 +0100)]
arm: zynq: Clean coding style

Clean trailing white spaces.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoi2c: xilinx_i2cps: Implement supend/resume callbacks
Soren Brinkmann [Mon, 26 Nov 2012 17:28:46 +0000 (09:28 -0800)]
i2c: xilinx_i2cps: Implement supend/resume callbacks

In order to support system suspend the corresponding callbacks
are implemented.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agommc: xilinx_sdhcips: Reformatting error message
Soren Brinkmann [Tue, 27 Nov 2012 01:31:51 +0000 (17:31 -0800)]
mmc: xilinx_sdhcips: Reformatting error message

Using 'dev_err' macro instead of 'printk'.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agommc: xilinx_sdhcips: Add __devinitconst attribute
Soren Brinkmann [Tue, 27 Nov 2012 01:31:50 +0000 (17:31 -0800)]
mmc: xilinx_sdhcips: Add __devinitconst attribute

Adding the attribute '__devinitconst' to the driver's struct of_device_id.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agommc: xilinx_sdhcips: Correct minor style issues
Soren Brinkmann [Tue, 27 Nov 2012 01:31:49 +0000 (17:31 -0800)]
mmc: xilinx_sdhcips: Correct minor style issues

Removing/adding braces where appropriate.
Remove unnecessary line continuation using '\'.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agommc: xilinx_sdhcips: Sort #includes alphabetically
Soren Brinkmann [Tue, 27 Nov 2012 01:31:48 +0000 (17:31 -0800)]
mmc: xilinx_sdhcips: Sort #includes alphabetically

Just sorting for easier maintenance.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: xilinx_emacps: Cleaned up the interrupt handling routine
Anirudha Sarangi [Tue, 27 Nov 2012 10:32:19 +0000 (16:02 +0530)]
net: xilinx_emacps: Cleaned up the interrupt handling routine

The existing interrupt routine was looking unnecessarily
complex with too many barriers and checks. This patch
addresses them.

Signed-off-by: Anirudha Sarangi <anirudh@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: xilinx_emacps: Fix driver issue under heavy Rx traffic
Anirudha Sarangi [Tue, 27 Nov 2012 10:32:18 +0000 (16:02 +0530)]
net: xilinx_emacps: Fix driver issue under heavy Rx traffic

The existing driver misbehaves when subjected to heavy traffic
on the Rx path. Under heavy traffic (with a inter packet gap
in the range of 2-5 microseconds) the Rx path of the driver
becomes unresponsive. Under such heavy traffic load it is
natural for the driver to get overwhelmed on Rx path and drop
some packets (as per IEEE specs it is OK), but it should never
become completely unresponsive after the heavy Rx traffic is
taken off. The issue with the existing driver is, under heavy
Rx load, it starts getting lots of error interrupts (buffer not
available) and it does not process them properly. As a result,
at some point the driver consumes all BDs for Rx and does not
free any ensuring a complete lock up.
This patch fixes it by ensuring that even for error cases there
is a constant effort to free up any available BDs.

Signed-off-by: Anirudha Sarangi <anirudh@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: xilinx_emacps: Fix mdio name initialization again
Michal Simek [Thu, 22 Nov 2012 07:41:11 +0000 (08:41 +0100)]
net: xilinx_emacps: Fix mdio name initialization again

The patch
"net: xilinx_emacps: Fix mdio name initialization"
(sha1: 4f156ebc944e3fa4f5ee4045e94aed169fcf7f4b)
has fixed issue with several emacps drivers.

But the patch
"net: xilinx_emacps: Remove CONFIG_OF conditionals"
(sha1: 8ff4e2255a679524a49693a14abc0980442f90b8)
has reverted this bug fix.

This patch just add this functionality again.

Reported-by: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoi2c: xilinx_i2cps: Correct minor style issues
Soren Brinkmann [Wed, 21 Nov 2012 21:51:44 +0000 (13:51 -0800)]
i2c: xilinx_i2cps: Correct minor style issues

Removing/adding braces where appropriate.
Fix indentation.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoi2c: xilinx_i2cps: Sort #includes alphabetically
Soren Brinkmann [Wed, 21 Nov 2012 21:51:43 +0000 (13:51 -0800)]
i2c: xilinx_i2cps: Sort #includes alphabetically

Just sorting for easier maintenance.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_qspips: Implement supend/resume callbacks
Soren Brinkmann [Tue, 20 Nov 2012 00:34:24 +0000 (16:34 -0800)]
spi: xilinx_qspips: Implement supend/resume callbacks

In order to support system suspend the corresponding callbacks
are implemented.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_spips: Gate clocks during suspend
Soren Brinkmann [Mon, 19 Nov 2012 23:23:05 +0000 (15:23 -0800)]
spi: xilinx_spips: Gate clocks during suspend

During suspend the SPI related clocks get gated off.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_spips: Add missing documentation
Soren Brinkmann [Mon, 19 Nov 2012 18:24:08 +0000 (10:24 -0800)]
spi: xilinx_spips: Add missing documentation

Documentation for the clk_rate_change_nb member of struct xspips
was missing.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_qspips: Port driver to COMMON_CLK
Soren Brinkmann [Tue, 20 Nov 2012 09:22:33 +0000 (10:22 +0100)]
spi: xilinx_qspips: Port driver to COMMON_CLK

Use the common clock framework to manage device clocks.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_qspips: Fix potential memory leaks
Soren Brinkmann [Mon, 19 Nov 2012 22:53:57 +0000 (14:53 -0800)]
spi: xilinx_qspips: Fix potential memory leaks

The spi_master struct was dynamically allocated but never freed.
Memory allocation used the type instead of *identifier to determine
the size of the area to allocate.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_qspips: Remove redundant callback assignments
Soren Brinkmann [Mon, 19 Nov 2012 22:53:56 +0000 (14:53 -0800)]
spi: xilinx_qspips: Remove redundant callback assignments

The platform_driver's 'suspend' and 'resume' members were assigned NULL.
Thus, those statements can be removed.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_qspips: Remove dead code
Soren Brinkmann [Mon, 19 Nov 2012 22:53:55 +0000 (14:53 -0800)]
spi: xilinx_qspips: Remove dead code

The bits_per_word variable was defined and set, but never used.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_qspips: Correct minor style issues
Soren Brinkmann [Mon, 19 Nov 2012 22:53:54 +0000 (14:53 -0800)]
spi: xilinx_qspips: Correct minor style issues

Removing/adding braces where appropriate.
Removing a couple of unnecessary line breaks.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_qspips: Remove CONFIG_OF conditionals
Soren Brinkmann [Mon, 19 Nov 2012 22:53:53 +0000 (14:53 -0800)]
spi: xilinx_qspips: Remove CONFIG_OF conditionals

CONFIG_OF is mandatory for the Zynq platform. For this reason
all conditional compiling regarding this option can be removed.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_qspips: Sort #includes alphabetically
Soren Brinkmann [Mon, 19 Nov 2012 22:53:52 +0000 (14:53 -0800)]
spi: xilinx_qspips: Sort #includes alphabetically

Just sorting for easier maintenance.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agousb: host: ehci-hcd: Pass correct link to otg phy
Michal Simek [Mon, 19 Nov 2012 15:22:53 +0000 (16:22 +0100)]
usb: host: ehci-hcd: Pass correct link to otg phy

Kernel was crashing because we passed instead of pointer to otg
structure pointer to phy (ehci->ulpi) for ulpi_set_vbus().

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agousb: ehci-xilinx-usbps: Clean Zedboard USB OTG
Michal Simek [Mon, 19 Nov 2012 15:17:48 +0000 (16:17 +0100)]
usb: ehci-xilinx-usbps: Clean Zedboard USB OTG

Remove one if condition which is always fulfil.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agoARM: zynq: move arm-specific sys_timer out of ttc
Michal Simek [Fri, 16 Nov 2012 13:37:25 +0000 (14:37 +0100)]
ARM: zynq: move arm-specific sys_timer out of ttc

Move the sys_timer definition out of ttc driver and make it part of the
common zynq code.  This is preparation for renaming and COMMON_CLK
support.

Signed-off-by: Josh Cartwright <josh.cartwright@ni.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agospi: xilinx_spips: Port driver to COMMON_CLK
Soren Brinkmann [Sat, 17 Nov 2012 02:17:40 +0000 (18:17 -0800)]
spi: xilinx_spips: Port driver to COMMON_CLK

Use the common clock framework to manage device clocks.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_spips: Correct minor style issues
Soren Brinkmann [Sat, 17 Nov 2012 02:17:37 +0000 (18:17 -0800)]
spi: xilinx_spips: Correct minor style issues

A couple of if-statements were missing braces. And a while loop
redundant braces.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_spips: Fix potential memory leaks
Soren Brinkmann [Sat, 17 Nov 2012 02:17:39 +0000 (18:17 -0800)]
spi: xilinx_spips: Fix potential memory leaks

The spi_master struct was dynamically allocated but never freed.
Memory allocation used the type instead of *identifier to determine
the size of the area to allocate.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_spips: Migrating to dev_pm_ops
Soren Brinkmann [Sat, 17 Nov 2012 02:17:38 +0000 (18:17 -0800)]
spi: xilinx_spips: Migrating to dev_pm_ops

Migration to the new PM API.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_spips: Sorting #includes alphabetically
Soren Brinkmann [Sat, 17 Nov 2012 02:17:36 +0000 (18:17 -0800)]
spi: xilinx_spips: Sorting #includes alphabetically

Sorting #include files and also removing a duplicate.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agospi: xilinx_spips: Remove CONFIG_OF conditionals
Soren Brinkmann [Sat, 17 Nov 2012 02:17:35 +0000 (18:17 -0800)]
spi: xilinx_spips: Remove CONFIG_OF conditionals

CONFIG_OF is mandatory for the Zynq platform. For this reason
all conditional compiling regarding this option can be removed.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Clean up OPP initialization
Soren Brinkmann [Fri, 16 Nov 2012 00:15:32 +0000 (16:15 -0800)]
arm: zynq: Clean up OPP initialization

Instead of using a fixed set of frequncies for the OPP table, the
frequency operating points are added as following:
1. boot up CPU frequency (F_boot)
2. F_boot / 2
3. F_boot / 3
4. Minium frequency (200 MHz)
The actual frequencies may vary since the HW may not able to generate the exact
frequency.
If any of the frequencies from 2 - 4 fall below the minimum it is not available.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Add boot up frequency OPP
Soren Brinkmann [Fri, 16 Nov 2012 00:15:31 +0000 (16:15 -0800)]
arm: zynq: Add boot up frequency OPP

We cannot know the CPU frequency the system boots up with at
compile time.
So, we uncoditionally add this frequency to the OPP table at
runtime.
Since this might result in duplicates in the frequency table,
other points are added only when it is not present in the OPP
list already.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: xilinx_emacps: Use dev_ prefix over pr_
Soren Brinkmann [Thu, 15 Nov 2012 22:44:25 +0000 (14:44 -0800)]
net: xilinx_emacps: Use dev_ prefix over pr_

Replacing uses of pr_err through dev_err
and pr_info over dev_info
and pr_warn over dev_warn
and pr_debug over dev_dbg.

This finishes what has been started in
6e9d94cc5d3245616f4b4155590fd7140baa23b1 and
a40a06a4e167427c4f8925ec01d80c987a02d3b0

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Remove board files for clean up
John Linn [Fri, 16 Nov 2012 02:03:51 +0000 (18:03 -0800)]
arm: zynq: Remove board files for clean up

Now that stuff has migrated to device tree from the
board files, remove them to clean up.

The FSBL is taking care of the USB reset.

Signed-off-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: remove unused platform data from ZC702/ZC706
John Linn [Fri, 16 Nov 2012 02:03:50 +0000 (18:03 -0800)]
arm: zynq: remove unused platform data from ZC702/ZC706

The board file had old stuff that was not used any more.
Get rid of all the platform data which is already in the
device tree.

Signed-off-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Removed scu global timer driver for cleanup
John Linn [Fri, 16 Nov 2012 02:03:49 +0000 (18:03 -0800)]
arm: zynq: Removed scu global timer driver for cleanup

This driver was more of an experiment than a reality and
now it's time to get rid of it.

Signed-off-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoDMA: Xilinx: Separation of DMA driver into three drivers
Srikanth Thokala [Wed, 14 Nov 2012 18:10:32 +0000 (23:40 +0530)]
DMA: Xilinx: Separation of DMA driver into three drivers

This patch separates the existing Xilinx DMA driver, which is
currently common driver for the three IPs AXI-DMA, AXI-VDMA, AXI-CDMA,
into three individual IP drivers. It also adds three test clients for
each DMA IP.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Move devices to DT for the 770-DC4
John Linn [Wed, 14 Nov 2012 21:38:05 +0000 (13:38 -0800)]
arm: zynq: Move devices to DT for the 770-DC4

The I2C Si570 and the SPI EEPROM are removed from
the platform data and added to the device tree
for the ZC770 with DC4 (XM013).

Now there is no longer any board specific file
needed for this board.

Signed-off-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoUncomment the ehci_setup function in ehci-hcd.c
Wendy Liang [Wed, 14 Nov 2012 01:06:03 +0000 (11:06 +1000)]
Uncomment the ehci_setup function in ehci-hcd.c

Since ehci_setup() is used by ehci-pci.c and some other files.
we should reenable this functinon.

I have checked the 3.7 kernel, this function is still there.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agoi2c: Remove ARCH_XILINX reference
Michal Simek [Tue, 13 Nov 2012 08:47:06 +0000 (09:47 +0100)]
i2c: Remove ARCH_XILINX reference

Remove old unused ARCH_XILINX platform name.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11 years agoarm: zynq: Remove old kernel defconfigs for cleanup
John Linn [Tue, 13 Nov 2012 20:14:12 +0000 (12:14 -0800)]
arm: zynq: Remove old kernel defconfigs for cleanup

We want to minimize the number of defconfigs to minimize
confusion.

Signed-off-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
11 years agonet: xilinx_emacps: Fix MII initialization
Michal Simek [Tue, 13 Nov 2012 13:14:44 +0000 (14:14 +0100)]
net: xilinx_emacps: Fix MII initialization

MII probing should be done in open function.

The problem was that phydev was connected in the xemacps_probe
function and disconnected in the xemacps_close function.

It means that if device is closed and open again phydev
is not connected because phydev connection is not setup.
It ends with NULL pointer exception because
phydev->attached_dev(in phy_detach()) is NULL.

The bug was introduced by this commit:
"net: xilinx_emacps: Synchronization with PetaLinux tree"
(sha1: 8222a810a56b10b67be3d75fe3ac25150e19c8c2)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: John Linn <john.linn@xilinx.com>
Tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
11 years agonet: xilinx_emacps: Simplify driver initialization
Michal Simek [Tue, 13 Nov 2012 12:55:45 +0000 (13:55 +0100)]
net: xilinx_emacps: Simplify driver initialization

Use module_platform_driver macro which creates
init and exit functions.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
11 years agonand: Remove ARCH_XILINX reference
Michal Simek [Tue, 13 Nov 2012 09:49:10 +0000 (10:49 +0100)]
nand: Remove ARCH_XILINX reference

Remove old unused ARCH_XILINX platform name.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>