15 Oct, 2009

1 commit


23 Sep, 2009

1 commit

  • The alias isn't needed any longer since the m25p80 driver converted to the
    module device table matching.

    Signed-off-by: Anton Vorontsov
    Cc: David Brownell
    Cc: David Woodhouse
    Cc: Grant Likely
    Cc: Jean Delvare
    Cc: Ben Dooks
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     

23 Jul, 2009

1 commit

  • Fixed-link support is broken for the ucc_eth, gianfar, and fs_enet
    device drivers. The "OF MDIO rework" patches removed most of the
    support. Instead of re-adding fixed-link stuff to the drivers, this
    patch adds a support function for parsing the fixed-link property
    and obtaining a dummy phy to match.

    Note: the dummy phy handling in arch/powerpc is a bit of a hack and
    needs to be reworked. This function is being added now to solve the
    regression in the Ethernet drivers, but it should be considered a
    temporary measure until the fixed link handling can be reworked.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Grant Likely
    Signed-off-by: David S. Miller

    Anton Vorontsov
     

16 Jun, 2009

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1244 commits)
    pkt_sched: Rename PSCHED_US2NS and PSCHED_NS2US
    ipv4: Fix fib_trie rebalancing
    Bluetooth: Fix issue with uninitialized nsh.type in DTL-1 driver
    Bluetooth: Fix Kconfig issue with RFKILL integration
    PIM-SM: namespace changes
    ipv4: update ARPD help text
    net: use a deferred timer in rt_check_expire
    ieee802154: fix kconfig bool/tristate muckup
    bonding: initialization rework
    bonding: use is_zero_ether_addr
    bonding: network device names are case sensative
    bonding: elminate bad refcount code
    bonding: fix style issues
    bonding: fix destructor
    bonding: remove bonding read/write semaphore
    bonding: initialize before registration
    bonding: bond_create always called with default parameters
    x_tables: Convert printk to pr_err
    netfilter: conntrack: optional reliable conntrack event delivery
    list_nulls: add hlist_nulls_add_head and hlist_nulls_del
    ...

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (103 commits)
    powerpc: Fix bug in move of altivec code to vector.S
    powerpc: Add support for swiotlb on 32-bit
    powerpc/spufs: Remove unused error path
    powerpc: Fix warning when printing a resource_size_t
    powerpc/xmon: Remove unused variable in xmon.c
    powerpc/pseries: Fix warnings when printing resource_size_t
    powerpc: Shield code specific to 64-bit server processors
    powerpc: Separate PACA fields for server CPUs
    powerpc: Split exception handling out of head_64.S
    powerpc: Introduce CONFIG_PPC_BOOK3S
    powerpc: Move VMX and VSX asm code to vector.S
    powerpc: Set init_bootmem_done on NUMA platforms as well
    powerpc/mm: Fix a AB->BA deadlock scenario with nohash MMU context lock
    powerpc/mm: Fix some SMP issues with MMU context handling
    powerpc: Add PTRACE_SINGLEBLOCK support
    fbdev: Add PLB support and cleanup DCR in xilinxfb driver.
    powerpc/virtex: Add ml510 reference design device tree
    powerpc/virtex: Add Xilinx ML510 reference design support
    powerpc/virtex: refactor intc driver and add support for i8259 cascading
    powerpc/virtex: Add support for Xilinx PCI host bridge
    ...

    Linus Torvalds
     

15 Jun, 2009

1 commit


21 May, 2009

1 commit


19 May, 2009

1 commit


27 Apr, 2009

2 commits

  • Add support for parsing the device tree for PHY devices on an MDIO bus.
    Currently many of the PowerPC ethernet drivers are open coding a solution
    for reading data out of the device tree to find the correct PHY device.
    This patch implements a set of common routines to:

    a) let MDIO bus drivers register phy_devices described in the tree, and
    b) let MAC drivers find the correct phy_device via the tree.

    Signed-off-by: Grant Likely
    Acked-by: Andy Fleming
    Signed-off-by: David S. Miller

    Grant Likely
     
  • of_parse_phandle() is a helper function to read and parse a phandle
    property and return a pointer to the resulting device_node.

    Signed-off-by: Grant Likely
    Acked-by: Andy Fleming
    Signed-off-by: David S. Miller

    Grant Likely
     

01 Apr, 2009

1 commit

  • The bindings describes a case where MMC/SD/SDIO slot directly connected to
    a SPI bus. Such setups are widely used on embedded PowerPC boards.

    The patch also adds the mmc-spi-slot entry to the OpenFirmware modalias
    table.

    Signed-off-by: Anton Vorontsov
    Cc: David Brownell
    Cc: Benjamin Herrenschmidt
    Cc: Kumar Gala
    Cc: Grant Likely
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     

10 Jan, 2009

1 commit

  • The of_find_i2c_device_by_node function allows you to follow a
    reference in the device tree to an i2c device node and then locate
    the linux device instantiated by the device tree. Example use: an I2S
    bus driver finding the i2c_device instance for a codec described by
    a device tree node.

    This was waiting for Anton's i2c patches that were just added.

    Signed-off-by: Jon Smirl
    Signed-off-by: Grant Likely

    Jon Smirl
     

21 Dec, 2008

3 commits


03 Dec, 2008

2 commits

  • This adds a new function, of_get_gpio_flags, which is like
    of_get_gpio(), but accepts a new "flags" argument. This new function
    will be used by the drivers that need to retrieve additional GPIO
    information, such as active-low flag.

    Also, this changes the default ("simple") .xlate routine to warn about
    bogus (< 2) #gpio-cells usage: the second cell should always be present
    for GPIO flags.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Paul Mackerras

    Anton Vorontsov
     
  • For I2C devices we just setting the node pointer in the archdata. This
    is needed so that the I2C devices could find their OF tree nodes.

    Signed-off-by: Anton Vorontsov
    Acked-by: Grant Likely
    Signed-off-by: Paul Mackerras

    Anton Vorontsov
     

19 Nov, 2008

1 commit


31 Oct, 2008

1 commit

  • Currently, the numa_node of OF-devices will be overwritten during
    device_register, which simply sets the node to -1. On cell machines,
    this means that devices can't find their IOMMU, which is referenced
    through the device's numa node.

    Set the numa node for OF devices with no parent, and use the
    lower-level device_initialize and device_add functions, so that the
    node is preserved.

    We can remove the call to set_dev_node in of_device_alloc, as it
    will be overwritten during register.

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Paul Mackerras

    Jeremy Kerr
     

21 Oct, 2008

3 commits


14 Oct, 2008

1 commit


13 Oct, 2008

1 commit


10 Oct, 2008

1 commit

  • Compatible property values in the form linux, is not documented
    anywhere and using it leaks Linux implementation details into the device
    tree data (which is bad). Remove support for compatible values of this
    form.

    If any platforms exist which depended on this code (and I don't know of
    any), then they can be fixed up by adding legacy translations to the
    lookup table in this file.

    Signed-off-by: Grant Likely
    Signed-off-by: Benjamin Herrenschmidt

    Grant Likely
     

09 Oct, 2008

1 commit

  • of/base.c matches on the first (most specific) entries, which isn't
    quite practical but it was discussed[1] that this won't change.

    The bindings specifies verbose information for the devices, but
    it doesn't fit in the I2C ID's 20 characters limit. The limit won't
    change[2], and the bindings won't change either as they're correct.

    So we have to put an exception for the MPC8349E-mITX-compatible
    MCUs.

    [1] http://www.mail-archive.com/linuxppc-dev@ozlabs.org/msg21196.html
    [2] http://www.nabble.com/-PATCH-1-2--i2c:-expand-I2C's-id.name-to-23-characters-td19577063.html

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Grant Likely

    Anton Vorontsov
     

20 Aug, 2008

1 commit

  • Recent of_platform changes made of_bus_type_init() overwrite the bus
    type's .dev_attrs list, meaning that the "name" attribute that ibmebus
    devices previously had is no longer present. This is a user-visible
    regression which breaks the userspace eHCA support, since the eHCA
    userspace driver relies on the name attribute to check for valid
    adapters.

    This fixes it by providing the "name" attribute in the generic OF
    device code instead. Tested on POWER.

    Signed-off-by: Joachim Fenkes
    Signed-off-by: Paul Mackerras

    Joachim Fenkes
     

26 Jul, 2008

4 commits

  • This patch adds support for populating an SPI bus based on data in the
    OF device tree. This is useful for powerpc platforms which use the
    device tree instead of discrete code for describing platform layout.

    Signed-off-by: Grant Likely

    Grant Likely
     
  • SPI has a similar problem as I2C in that it needs to determine an
    appropriate modalias value for each device node. This patch adapts
    the of_i2c of_find_i2c_driver() function to be usable by of_spi also.

    Signed-off-by: Grant Likely

    Grant Likely
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (34 commits)
    powerpc: Wireup new syscalls
    Move update_mmu_cache() declaration from tlbflush.h to pgtable.h
    powerpc/pseries: Remove kmalloc call in handling writes to lparcfg
    powerpc/pseries: Update arch vector to indicate support for CMO
    ibmvfc: Add support for collaborative memory overcommit
    ibmvscsi: driver enablement for CMO
    ibmveth: enable driver for CMO
    ibmveth: Automatically enable larger rx buffer pools for larger mtu
    powerpc/pseries: Verify CMO memory entitlement updates with virtual I/O
    powerpc/pseries: vio bus support for CMO
    powerpc/pseries: iommu enablement for CMO
    powerpc/pseries: Add CMO paging statistics
    powerpc/pseries: Add collaborative memory manager
    powerpc/pseries: Utilities to set firmware page state
    powerpc/pseries: Enable CMO feature during platform setup
    powerpc/pseries: Split retrieval of processor entitlement data into a helper routine
    powerpc/pseries: Add memory entitlement capabilities to /proc/ppc64/lparcfg
    powerpc/pseries: Split processor entitlement retrieval and gathering to helper routines
    powerpc/pseries: Remove extraneous error reporting for hcall failures in lparcfg
    powerpc: Fix compile error with binutils 2.15
    ...

    Fixed up conflict in arch/powerpc/platforms/52xx/Kconfig manually.

    Linus Torvalds
     
  • This patch adds functionality to the gpio-lib subsystem to make it
    possible to enable the gpio-lib code even if the architecture code didn't
    request to get it built in.

    The archtitecture code does still need to implement the gpiolib accessor
    functions in its asm/gpio.h file. This patch adds the implementations for
    x86 and PPC.

    With these changes it is possible to run generic GPIO expansion cards on
    every architecture that implements the trivial wrapper functions. Support
    for more architectures can easily be added.

    Signed-off-by: Michael Buesch
    Cc: Benjamin Herrenschmidt
    Cc: Stephen Rothwell
    Cc: David Brownell
    Cc: Russell King
    Cc: Haavard Skinnemoen
    Cc: Jesper Nilsson
    Cc: Ralf Baechle
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Jean Delvare
    Cc: Samuel Ortiz
    Cc: Kumar Gala
    Cc: Sam Ravnborg
    Cc: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Buesch
     

22 Jul, 2008

1 commit

  • If an I2C device node does not specify an interrupt, the .irq member of the
    board_info struct was set to -1. This caused crashes on following
    irq_dispose_mappings. Leave it NO_IRQ as returned from irq_of_parse_and_map.
    (Suggesting -1 as 'i2c-no-irq' used to be a bug in linux/i2c.h.)

    Signed-off-by: Wolfram Sang
    Acked-by: Sean MacLennan
    Signed-off-by: Grant Likely

    Wolfram Sang
     

13 Jul, 2008

1 commit


09 Jun, 2008

1 commit


07 Jun, 2008

1 commit

  • Change the name of the device from "rtc-ds1374" to just "ds1374", to match
    what all other RTC drivers do. I seem to remember that this name was
    chosen to avoid possible confusion with an older ds1374 driver, but that
    driver was removed 3 months ago.

    Signed-off-by: Jean Delvare
    Signed-off-by: Alessandro Zummo
    Acked-by: Kumar Gala
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     

23 May, 2008

1 commit

  • Since the "gpiolib: dynamic gpio number allocation" patch was recently
    merged into Linus' tree (commit 8d0aab2f16c4fa170f32e7a74a52cd0122bbafef),
    we can use dynamic GPIO base allocation now.

    This, in turn, removes number of gpios per chip constraint.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Paul Mackerras

    Anton Vorontsov
     

16 May, 2008

2 commits


15 May, 2008

1 commit

  • Update function of_find_property() to return NULL if the device_node
    passed to it is also NULL. Otherwise, passing NULL will cause a null
    pointer dereference.

    Without this, the legacy_serial driver will crash if there's no
    'chosen' node in the device tree.

    Signed-off-by: Timur Tabi
    Signed-off-by: Paul Mackerras

    Timur Tabi
     

14 May, 2008

1 commit

  • Create /sys/bus/of_platform/devices/*/modalias file to allow autoloading
    of modules. Modalias files are already present for many other bus types.
    This adds also a newline to the devspec files.

    Also create a devspec file for mac-io devices. They were created as a
    side effect. Use correct buffer size for mac-io modalias buffer.

    Tested on iBook1 and Efika.

    Signed-off-by: Olaf Hering
    Signed-off-by: Paul Mackerras

    Olaf Hering