summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/misc'Sascha Hauer2013-03-0475-540/+102
|\
| * serial/Makefile: drop out of date commentsJean-Christophe PLAGNIOL-VILLARD2013-02-261-6/+0
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * smc911111: fix send and recv return valueJean-Christophe PLAGNIOL-VILLARD2013-02-261-6/+6
| | | | | | | | | | | | | | on error send error code and 0 on success Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Make "dev_get_resource" publicly availableAlexander Shiyan2013-02-181-1/+1
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mfd: Using MFD_xx prefix for symbolsAlexander Shiyan2013-02-186-27/+27
| | | | | | | | | | | | | | | | This patch provides rename MFD-related symbols for using MFD-prefix. Additionally, sorting mfd/Kconfig and mfd/Makefile records. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Use new device_platform_driver() macro for driversAlexander Shiyan2013-02-1366-500/+66
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: fix cpsw depends on ARCH_OMAPAlexander Aring2013-02-111-0/+1
| | | | | | | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * sata-imx: fix depends on ARCH_IMXAlexander Aring2013-02-111-0/+1
| | | | | | | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2013-03-042-14/+26
|\ \
| * | net: fec_imx: ensure constant timeout in fec_haltHubert Feurstein2013-02-221-3/+8
| | | | | | | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: fec_imx: use dev_err and dev_warn instead of printfHubert Feurstein2013-02-221-7/+7
| | | | | | | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net fec_imx: add support for i.MX6 1000Mbps modeHubert Feurstein2013-02-112-4/+11
| |/ | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/highbank'Sascha Hauer2013-03-044-7/+762
|\ \
| * | highbank: add xgmac supportJean-Christophe PLAGNIOL-VILLARD2013-02-143-0/+744
| | | | | | | | | | | | | | | | | | Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of_add_memory: check the device_type is memoryJean-Christophe PLAGNIOL-VILLARD2013-02-141-4/+7
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | of: make of_add_memory available for other boardJean-Christophe PLAGNIOL-VILLARD2013-02-141-6/+14
| |/ | | | | | | | | | | | | | | | | | | | | so when the first stage booloader of firmware provide the dtb we can use it to probe the memory also allow to print what we probe Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/dt'Sascha Hauer2013-03-044-8/+57
|\ \
| * | amba: add oftree probe supportJean-Christophe PLAGNIOL-VILLARD2013-02-124-8/+57
| |/ | | | | | | | | | | | | move ARM_AMBA Kconfig to drivers/amba/Kconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ahci'Sascha Hauer2013-03-041-2/+18
|\ \
| * | ahci-generic: add oftree supportJean-Christophe PLAGNIOL-VILLARD2013-02-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | calxeda use the generic driver but have it's own compatible cf Linux kernel Documentation Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ahci: handle COMINIT received during spin-upRob Herring2013-02-131-2/+9
| |/ | | | | | | | | | | | | | | | | Some Intel SSDs can send a COMINIT after the initial COMRESET. This causes the link to go down and we need to re-initialize the link. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mtd: always write page when oob is givenSascha Hauer2013-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Since recently we check for the page being written for not being empty and do not actually write it when it is. This fails for a freshly created flash bad block table when all blocks are good. In this case the bbt code will try to write an empty page, but with the BBT marker in OOB. This page never gets written, so the BBT code will not find a bad block table during next start up and writes it again. Fix this by checking if we want to write OOB data, if we do, then write the page, even if the data is empty. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | phy: fix force modeJean-Christophe PLAGNIOL-VILLARD2013-02-252-0/+8
| | | | | | | | | | | | | | | | do not try to read the status in force mode the link is up Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | imx_spi: fix bus-num setupHubert Feurstein2013-02-211-0/+1
| | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: imx_fec: fix RMII support for i.MX6Hubert Feurstein2013-02-211-1/+1
| | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mtd: nand: do not write empty pagesSascha Hauer2013-02-212-4/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not write pages which only contain 0xff. UBI expects pages which seem empty to be writable. This got lost with: | commit 3139c3e9a61e70846be8c4f95bb9cffd4465d88a | Author: Sascha Hauer <s.hauer@pengutronix.de> | Date: Thu Nov 29 11:16:40 2012 +0100 | | mtd core: call driver write function with complete buffer | | mtd->write is supposed to loop around pages internally, no need | to do this in mtd_write. This fixes a huge write performance drop | with the m25p80 driver when it was converted to a mtd driver recently. | Since mtd->writesize is 1 for this driver mtd_write ended up doing | single byte writes on the flash. Introduce mtd_all_ff as a global function since UBI currently has its own implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | amba: pl011: set RTS during initializationRob Herring2013-02-181-1/+1
|/ | | | | | | | | | | | RTS is an output. Either flow control is used and you care about the state or it is not used and you don't care. So setting it to active does no harm in either case. This is inline with what Linux does. Mandatory for Highbank as example Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* phy/micrel: KSZ9021 diasable Asym Pause supportJean-Christophe PLAGNIOL-VILLARD2013-02-111-2/+6
| | | | | | | | | Due to a hw bug do not enable teh Asym_Pause. Otherwise if you ser the bit 11 in 4h you will have to unplug and replug the cable to make the phy work. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: add cadence Gigabit GEM supportJean-Christophe PLAGNIOL-VILLARD2013-02-112-42/+317
| | | | | | | | | | | | based on the kernel code detect it via IP version In the GEM we can use a full packet buffer for receive but the buffer size need to be 64bit size aligned. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: fix tx ring sizeJean-Christophe PLAGNIOL-VILLARD2013-02-111-15/+33
| | | | | | | | | the mininal tx ring size is 2 as if one we wrap on the same descriptor and can cause IP lock on GEM (gigabit version) this is always the case Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net macb: reset the IP at initJean-Christophe PLAGNIOL-VILLARD2013-02-111-0/+23
| | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net macb: enable Tramsmit and Receive at openJean-Christophe PLAGNIOL-VILLARD2013-02-111-2/+3
| | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net macb: use the macro as in linux for tx/rx buffer ring sizeJean-Christophe PLAGNIOL-VILLARD2013-02-111-16/+17
| | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net macb: sync remaining define with linuxJean-Christophe PLAGNIOL-VILLARD2013-02-112-49/+92
| | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net macb: call macb_init at probe explicitlyJean-Christophe PLAGNIOL-VILLARD2013-02-111-5/+3
| | | | | | | | | as eth_device init is planning for remove and we need the init before register the mdio bus Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: drop non used defineJean-Christophe PLAGNIOL-VILLARD2013-02-081-4/+0
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: report timeout on sendJean-Christophe PLAGNIOL-VILLARD2013-02-081-3/+5
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: use dev_xx messageJean-Christophe PLAGNIOL-VILLARD2013-02-081-14/+18
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/w1'Sascha Hauer2013-02-043-1/+33
|\
| * w1: add dual search supportJean-Christophe PLAGNIOL-VILLARD2013-01-293-1/+33
| | | | | | | | | | | | | | Some 1-wire device need to be search twice to be detected Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap'Sascha Hauer2013-02-043-0/+1075
|\ \
| * | Merge branch 'pu/omap' into for-next/omapSascha Hauer2013-01-2910-262/+437
| |\|
| * | drivers: net: add driver for TI CPSWJan Luebbe2013-01-103-0/+1075
| | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/oftree'Sascha Hauer2013-02-041-20/+148
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: drivers/of/base.c
| * | | of: speed up unflattenSascha Hauer2013-01-191-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We calculate the full path of the current node using fdt_get_path which takes a lot of time since libfdt has to iterate over the dtb several times. Speed this up by creating and using a of_find_child function which does not have to iterate over the whole tree but only over its direct children. On an i.MX51 board this speeds up unflatten the tree from 60ms to 3.7ms. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: rename new_device_node to of_new_node and export itSascha Hauer2013-01-191-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of_new_node now takes the parent node and the name as argument and creates a new node. This simplifies the caller and also makes the function useful for others, so export it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: add of_delete_propertySascha Hauer2013-01-191-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a function to delete a property from the currently loaded devicetree. Also export new_property as of_new_property. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: unflatten: allow overlay dtbsSascha Hauer2013-01-191-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements overlaying a currently loaded dtb with another dtb. We used to return -EBUSY when a oftree is currently loaded. Instead of doing this, check if a node already exists before creating a new one. Similarly, if a property already exists, just overwrite the value instead of creating a new property. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: Add support for converting the unflattened tree back to a dtbSascha Hauer2013-01-191-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We already have support for unflattening the devicetree. This patch adds support for converting it back to a dtb. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: rename of_parse_dtb to of_unflatten_dtbSascha Hauer2013-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The process of unflatten the device tree is known from the kernel, so rename the function, because that's what it does. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>