15 Jan, 2012

1 commit


10 Jan, 2012

1 commit

  • In the file drivers/of/fdt.c, it uses the COMMAND_LINE_SIZE which is stated
    in asm/setup.h, so asm/setup.h should be included in drivers/of/fdt.c.

    Signed-off-by: Yu Yue
    Signed-off-by: Guan Xuetao

    Cc: Grant Likerly
    Cc: devicetree-discuss@lists.ozlabs.org
    Cc: Arnd Bergmann

    Yu Yue
     

08 Jan, 2012

2 commits

  • devicetree/next changes queued for v3.3 merge window

    * tag 'devicetree-for-linus-20120104' of git://git.secretlab.ca/git/linux-2.6:
    ARM: prom.h: Fix build error by removing unneeded header file
    irq: check domain hwirq range for DT translate
    dt: add empty of_get_node/of_put_node functions
    of/pdt: fix section mismatch warning
    i2c-designware: add OF binding support
    dt/i2c: Enumerate some of the known trivial i2c devices
    dt: reform for_each_property to for_each_property_of_node
    ARM/of: allow *machine_desc.dt_compat to be const
    of/base: Take NULL string into account for property with multiple strings
    OF/device-tree: Add some entries to vendor-prefixes.txt

    Fix up trivial add-add conflicts in include/linux/of.h

    Linus Torvalds
     
  • Changes queued in gpio/next for the start of the 3.3 merge window

    * tag 'gpio-for-linus-20120104' of git://git.secretlab.ca/git/linux-2.6:
    gpio: Add decode of WM8994 GPIO configuration
    gpio: Convert GPIO drivers to module_platform_driver
    gpio: Fix typo in comment in Samsung driver
    gpio: Explicitly index samsung_gpio_cfgs
    gpio: Add Linus Walleij as gpio co-maintainer
    of: Add device tree selftests
    of: create of_phandle_args to simplify return of phandle parsing data
    gpio/powerpc: Eliminate duplication of of_get_named_gpio_flags()
    gpio/microblaze: Eliminate duplication of of_get_named_gpio_flags()
    gpiolib: output basic details and consolidate gpio device drivers
    pch_gpio: Change company name OKI SEMICONDUCTOR to LAPIS Semiconductor
    pch_gpio: Support new device LAPIS Semiconductor ML7831 IOH
    spi/pl022: make the chip deselect handling thread safe
    spi/pl022: add support for pm_runtime autosuspend
    spi/pl022: disable the PL022 block when unused
    spi/pl022: move device disable to workqueue thread
    spi/pl022: skip default configuration before suspending
    spi/pl022: fix build warnings
    spi/pl022: only enable RX interrupts when TX is complete

    Linus Torvalds
     

05 Jan, 2012

1 commit

  • Fix the following build error:

    CC [M] fs/udf/balloc.o
    In file included from /home/fabio/next/linux-next/arch/arm/include/asm/prom.h:16,
    from include/linux/of.h:140,
    from include/asm-generic/gpio.h:7,
    from arch/arm/plat-mxc/include/mach/irqs.h:14,
    from /home/fabio/next/linux-next/arch/arm/include/asm/irq.h:4,
    from /home/fabio/next/linux-next/arch/arm/include/asm/hardirq.h:6,
    from include/linux/hardirq.h:7,
    from include/linux/highmem.h:8,
    from include/linux/pagemap.h:10,
    from include/linux/buffer_head.h:13,
    from fs/udf/udfdecl.h:11,
    from fs/udf/balloc.c:22:
    /home/fabio/next/linux-next/arch/arm/include/asm/setup.h:146: error: redefinition of 'struct tag'

    Signed-off-by: Fabio Estevam
    [grant.likely: fix build failure on drivers/of/fdt.c]
    Signed-off-by: Grant Likely

    Fabio Estevam
     

04 Jan, 2012

2 commits

  • Add a interrupts-names property to allow the possibility to provide a name
    to any interrupts entries. If the name is available, use it to name the
    resource, otherwise keep the device full name.

    Signed-off-by: Benoit Cousson
    Cc: Grant Likely
    Cc: Rob Herring
    [grant.likely: use "interrupt-names" and tidy documentation]
    Signed-off-by: Grant Likely

    Benoit Cousson
     
  • Add a reg-names property to allow for reg regions to be reference by name
    instead of by index. Some devices have multiple register regions which
    are more naturally referenced by name.

    If the name is available, use it to name the resource when creating a devices.
    Otherwise keep the device name.

    Signed-off-by: Benoit Cousson
    Cc: Grant Likely
    Cc: Rob Herring
    [Generalized documentation to be for any -names property]
    Signed-off-by: Grant Likely

    Benoit Cousson
     

28 Dec, 2011

3 commits

  • Fix the following section mismatch warning - seen when building sparc32:

    WARNING: vmlinux.o(.text+0x1ff9c0): Section mismatch in reference from the function kernel_tree_alloc() to the function .init.text:prom_early_alloc()
    The function kernel_tree_alloc() references
    the function __init prom_early_alloc().
    This is often because kernel_tree_alloc lacks a __init
    annotation or the annotation of prom_early_alloc is wrong.

    prom_early_alloc() is annotated __init, and users of
    kernel_tree_alloc() is also annotated __init.
    So simply match the annoation of these to fix the warning.

    Signed-off-by: Sam Ravnborg
    Cc: Grant Likely
    Acked-by: David S. Miller
    Signed-off-by: Rob Herring

    Sam Ravnborg
     
  • Make this macro easier to use(do not need to pass properties, a node is
    enough), also change to a more sensible name as for_each_child_of_node.

    Signed-off-by: Dong Aisheng
    Cc: Grant Likely
    Signed-off-by: Rob Herring

    Dong Aisheng
     
  • This allows dt_compat to point to a constant list of compatible strings.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Rob Herring

    Uwe Kleine-König
     

20 Dec, 2011

1 commit

  • The current implementation just ignore any NULL string inserted in a
    multiple strings property.
    In some cases we can have a property with a fix number of strings but
    not necessarily used, like for example in a list of valid pinmux modes.

    prop = "uart_rx", "uart_tx", "", "", "safe_mode";

    Do no skip NULL string and take them into account in
    of_property_read_string_index and of_property_count_strings.

    Reported-by: Tony Lindgren
    Signed-off-by: Benoit Cousson
    Cc: Grant Likely
    Signed-off-by: Rob Herring

    Benoit Cousson
     

13 Dec, 2011

4 commits

  • There is no requirement to override name entries in auxdata. Fix the
    entry matching to use .compatible instead of .name to find the end of the
    list.

    Signed-off-by: Grant Likely

    Grant Likely
     
  • Add some runtime test cases for the library of device tree parsing functions.

    v2: - Add testcase for phandle with 0 args
    - Don't run testcases if testcase data isn't present in device tree

    Signed-off-by: Grant Likely

    Grant Likely
     
  • of_parse_phandle_with_args() needs to return quite a bit of data. Rather
    than making each datum a separate **out_ argument, this patch creates
    struct of_phandle_args to contain all the returned data and reworks the
    user of the function. This patch also enables of_parse_phandle_with_args()
    to return the device node pointer for the phandle node.

    This patch also ends up being fairly major surgery to
    of_parse_handle_with_args(). The existing structure didn't work well
    when extending to use of_phandle_args, and I discovered bugs during testing.
    I also took the opportunity to rename the function to be like the
    existing of_parse_phandle().

    v2: - moved declaration of of_phandle_args to fix compile on non-DT builds
    - fixed incorrect index in example usage
    - fixed incorrect return code handling for empty entries

    Reviewed-by: Shawn Guo
    Signed-off-by: Grant Likely

    Grant Likely
     
  • This patch adds a kernel message, containing GPIO range and device
    name on successful device registration, and removes duplicate messages from the following drivers:
    * gpio-adp5588
    * gpio-bt8xx
    * gpio-cs5535
    * gpio-janz-ttl
    * gpio-nomadik
    * gpio-pcf857x
    * gpio-xilinx
    * drivers/of/gpio.c

    Signed-off-by: Hartmut Knaack
    [grant.likely@secretlab.ca: squashed 2 patches together]
    Signed-off-by: Grant Likely

    Grant Likely
     

08 Dec, 2011

1 commit

  • PPC32/64 defines NO_IRQ to zero, so no problems expected.
    ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support,
    which returns correct ('0') value in 'no irq' case. So everything
    should be fine.

    Other arches might break if some of their OF drivers rely on NO_IRQ
    being not 0. If so, the drivers must be fixed, finally.

    [ Rob Herring points out that microblaze should be fixed, and has posted
    a patch for testing for that. - Linus ]

    Signed-off-by: Anton Vorontsov
    Acked-by: Wolfram Sang
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     

29 Nov, 2011

1 commit


23 Nov, 2011

1 commit

  • This reverts commit dc9372808412edbc653a675a526c2ee6c0c14a91.

    As requested by Ben Herrenschmidt:
    "This breaks some powerpc platforms at least. The practice of having
    a node provide an explicit "interrupt-parent" property pointing to
    itself is an old trick that we've used in the past to allow a
    device-node to have interrupts routed to different controllers.

    In that case, the node also contains an interrupt-map, so the node is
    its own parent, the interrupt resolution hits the map, which then can
    route each individual interrupt to a different parent."

    Grant says:
    "Ah, nuts, yes that is broken then. Yes, please revert the commit and
    Rob & I will come up with a better solution.

    Rob, I think it can be done by explicitly checking for np ==
    desc->interrupt_parent in of_irq_init() instead of relying on
    of_irq_find_parent() returning NULL."

    Requested-by: Benjamin Herrenschmidt
    Acked-by: Grant Likely
    Cc: Rob Herring
    Cc: devicetree-discuss@lists.ozlabs.org
    Cc: linuxppc-dev
    Cc: Tanmay Inamdar
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

07 Nov, 2011

2 commits

  • * 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
    Revert "tracing: Include module.h in define_trace.h"
    irq: don't put module.h into irq.h for tracking irqgen modules.
    bluetooth: macroize two small inlines to avoid module.h
    ip_vs.h: fix implicit use of module_get/module_put from module.h
    nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
    include: replace linux/module.h with "struct module" wherever possible
    include: convert various register fcns to macros to avoid include chaining
    crypto.h: remove unused crypto_tfm_alg_modname() inline
    uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
    pm_runtime.h: explicitly requires notifier.h
    linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
    miscdevice.h: fix up implicit use of lists and types
    stop_machine.h: fix implicit use of smp.h for smp_processor_id
    of: fix implicit use of errno.h in include/linux/of.h
    of_platform.h: delete needless include
    acpi: remove module.h include from platform/aclinux.h
    miscdevice.h: delete unnecessary inclusion of module.h
    device_cgroup.h: delete needless include
    net: sch_generic remove redundant use of
    net: inet_timewait_sock doesnt need
    ...

    Fix up trivial conflicts (other header files, and removal of the ab3550 mfd driver) in
    - drivers/media/dvb/frontends/dibx000_common.c
    - drivers/media/video/{mt9m111.c,ov6650.c}
    - drivers/mfd/ab3550-core.c
    - include/linux/dmaengine.h

    Linus Torvalds
     
  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (106 commits)
    powerpc/p3060qds: Add support for P3060QDS board
    powerpc/83xx: Add shutdown request support to MCU handling on MPC8349 MITX
    powerpc/85xx: Make kexec to interate over online cpus
    powerpc/fsl_booke: Fix comment in head_fsl_booke.S
    powerpc/85xx: issue 15 EOI after core reset for FSL CoreNet devices
    powerpc/8xxx: Fix interrupt handling in MPC8xxx GPIO driver
    powerpc/85xx: Add 'fsl,pq3-gpio' compatiable for GPIO driver
    powerpc/86xx: Correct Gianfar support for GE boards
    powerpc/cpm: Clear muram before it is in use.
    drivers/virt: add ioctl for 32-bit compat on 64-bit to fsl-hv-manager
    powerpc/fsl_msi: add support for "msi-address-64" property
    powerpc/85xx: Setup secondary cores PIR with hard SMP id
    powerpc/fsl-booke: Fix settlbcam for 64-bit
    powerpc/85xx: Adding DCSR node to dtsi device trees
    powerpc/85xx: clean up FPGA device tree nodes for Freecsale QorIQ boards
    powerpc/85xx: fix PHYS_64BIT selection for P1022DS
    powerpc/fsl-booke: Fix setup_initial_memory_limit to not blindly map
    powerpc: respect mem= setting for early memory limit setup
    powerpc: Update corenet64_smp_defconfig
    powerpc: Update mpc85xx/corenet 32-bit defconfigs
    ...

    Fix up trivial conflicts in:
    - arch/powerpc/configs/40x/hcu4_defconfig
    removed stale file, edited elsewhere
    - arch/powerpc/include/asm/udbg.h, arch/powerpc/kernel/udbg.c:
    added opal and gelic drivers vs added ePAPR driver
    - drivers/tty/serial/8250.c
    moved UPIO_TSI to powerpc vs removed UPIO_DWAPB support

    Linus Torvalds
     

04 Nov, 2011

1 commit

  • * Correct description of of_platform_bus_create to match implementation
    * Remove a level of indentation in of_dev_lookup

    Signed-off-by: Olof Johansson
    Acked-by: Grant Likely
    Signed-off-by: Rob Herring

    Olof Johansson
     

02 Nov, 2011

2 commits

  • * 'next/dt' of git://git.linaro.org/people/arnd/arm-soc:
    ARM: gic: use module.h instead of export.h
    ARM: gic: fix irq_alloc_descs handling for sparse irq
    ARM: gic: add OF based initialization
    ARM: gic: add irq_domain support
    irq: support domains with non-zero hwirq base
    of/irq: introduce of_irq_init
    ARM: at91: add at91sam9g20 and Calao USB A9G20 DT support
    ARM: at91: dt: at91sam9g45 family and board device tree files
    arm/mx5: add device tree support for imx51 babbage
    arm/mx5: add device tree support for imx53 boards
    ARM: msm: Add devicetree support for msm8660-surf
    msm_serial: Add devicetree support
    msm_serial: Use relative resources for iomem

    Fix up conflicts in arch/arm/mach-at91/{at91sam9260.c,at91sam9g45.c}

    Linus Torvalds
     
  • * 'next/cleanup2' of git://git.linaro.org/people/arnd/arm-soc: (31 commits)
    ARM: OMAP: Warn if omap_ioremap is called before SoC detection
    ARM: OMAP: Move set_globals initialization to happen in init_early
    ARM: OMAP: Map SRAM later on with ioremap_exec()
    ARM: OMAP: Remove calls to SRAM allocations for framebuffer
    ARM: OMAP: Avoid cpu_is_omapxxxx usage until map_io is done
    ARM: OMAP1: Use generic map_io, init_early and init_irq
    arm/dts: OMAP3+: Add mpu, dsp and iva nodes
    arm/dts: OMAP4: Add a main ocp entry bound to l3-noc driver
    ARM: OMAP2+: l3-noc: Add support for device-tree
    ARM: OMAP2+: board-generic: Add i2c static init
    ARM: OMAP2+: board-generic: Add DT support to generic board
    arm/dts: Add support for OMAP3 Beagle board
    arm/dts: Add initial device tree support for OMAP3 SoC
    arm/dts: Add support for OMAP4 SDP board
    arm/dts: Add support for OMAP4 PandaBoard
    arm/dts: Add initial device tree support for OMAP4 SoC
    ARM: OMAP: omap_device: Add a method to build an omap_device from a DT node
    ARM: OMAP: omap_device: Add omap_device_[alloc|delete] for DT integration
    of: Add helpers to get one string in multiple strings property
    ARM: OMAP2+: devices: Remove all omap_device_pm_latency structures
    ...

    Fix up trivial header file conflicts in arch/arm/mach-omap2/board-generic.c

    Linus Torvalds
     

01 Nov, 2011

3 commits


31 Oct, 2011

2 commits

  • Conflicts:
    arch/arm/include/asm/localtimer.h
    arch/arm/mach-msm/board-msm8x60.c
    arch/arm/mach-omap2/board-generic.c

    Arnd Bergmann
     
  • of_irq_init will scan the devicetree for matching interrupt controller
    nodes. Then it calls an initialization function for each found controller
    in the proper order with parent nodes initialized before child nodes.

    Based on initial pseudo code from Grant Likely.

    Changes in v4:
    - Drop unnecessary empty list check
    - Be more verbose on errors
    - Simplify "if (!desc) WARN_ON(1)" to "if (WARN_ON(!desc))"

    Changes in v3:
    - add missing kfree's found by Jamie
    - Implement Grant's comments to simplify the init loop
    - fix function comments

    Changes in v2:
    - Complete re-write of list searching code from Grant Likely

    Signed-off-by: Rob Herring
    Reviewed-by: Jamie Iles
    Tested-by: Thomas Abraham
    Acked-by: Grant Likely

    Rob Herring
     

25 Oct, 2011

1 commit


06 Oct, 2011

1 commit


05 Oct, 2011

3 commits


23 Sep, 2011

1 commit

  • The patch adds function of_alias_scan to populate a global lookup
    table with the properties of 'aliases' node and function
    of_alias_get_id for drivers to find alias id from the lookup table.

    v3: Split out automatic addition of aliases on id lookup so that it can be
    debated separately from the core functionality.
    v2: - Add of_chosen/of_aliases populating and of_alias_scan() invocation
    for OF_PROMTREE.
    - Add locking
    - rework parse loop

    Signed-off-by: Shawn Guo
    Acked-by: David S. Miller
    Signed-off-by: Grant Likely

    Shawn Guo
     

20 Sep, 2011

1 commit

  • We used to overwrite with CONFIG_CMDLINE if we found a chosen
    node but failed to get bootargs out of it or they were empty,
    unless CONFIG_CMDLINE_FORCE is set.

    Instead change that to overwrite if "data" is non empty after
    the bootargs check. It allows arch code to have other mechanisms
    to retrieve the command line prior to parsing the device-tree.

    Note: CONFIG_CMDLINE_FORCE case should ideally be handled elsewhere
    as it won't work as it-is if the device-tree has no /chosen node

    Signed-off-by: Benjamin Herrenschmidt
    CC: devicetree-discuss@lists-ozlabs.org
    CC: Grant Likely
    Acked-by: Grant Likely

    Benjamin Herrenschmidt
     

04 Aug, 2011

1 commit


03 Aug, 2011

2 commits


02 Aug, 2011

2 commits

  • The helper functions for reading u32 integers, u32 arrays and strings
    should have the property name as a const pointer.

    Cc: Grant Likely
    Signed-off-by: Jamie Iles
    Signed-off-by: Grant Likely

    Jamie Iles
     
  • * 'gpio/next' of git://git.secretlab.ca/git/linux-2.6:
    gpio_msm: Move Qualcomm MSM v2 gpio driver into drivers
    gpio_msm: Move Qualcomm v6 MSM driver into drivers
    msm: gpio: Fold register defs into C file
    msm: gpiomux: Move public API to public header
    msm: gpio: Remove ifdefs on gpio chip registers
    msm: gpio: Remove chip-specific register definitions
    msm: Remove chip-ifdefs for GPIO io mappings
    msm: gpio: Remove unsupported devices
    gpio: ab8500: fix MODULE_ALIAS for ab8500
    of/gpio: export of_gpio_simple_xlate

    Linus Torvalds