09 Apr, 2013

18 commits

  • Currently we check to see if we obtained the Tightly Coupled Program
    Memory (TCPM) base and only execute the code within the check if we
    have it. It's more traditional to return early if we don't have it.
    This way we can flatten most of the function's code down to a single
    tab spacing.

    Signed-off-by: Lee Jones
    Acked-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Lee Jones
     
  • syscon.h header uses struct device_node in functions' declarations
    without declaring it. This causes compilation warnings like:

    include/linux/mfd/syscon.h:20: warning: ‘struct device_node’
    declared inside parameter list
    include/linux/mfd/syscon.h:20: warning: its scope is only this
    definition or declaration, which is probably not what you want

    Fix it by adding a forward declaration of struct device_node.

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Acked-by: Dong Aisheng
    Signed-off-by: Samuel Ortiz

    Sylwester Nawrocki
     
  • Add of_comptabile string to the ab8500-usb cell to allow the driver to
    grab properties from device-tree when available.

    Signed-off-by: Fabio Baltieri
    Signed-off-by: Samuel Ortiz

    Fabio Baltieri
     
  • Allows the OMAP HS USB host controller to be specified
    via device tree.

    Signed-off-by: Roger Quadros
    Reviewed-by: Mark Rutland
    Signed-off-by: Samuel Ortiz

    Roger Quadros
     
  • PHY reset GPIO handling will be done in the PHY driver

    Signed-off-by: Roger Quadros
    Acked-by: Felipe Balbi
    Acked-by: Samuel Ortiz
    Signed-off-by: Samuel Ortiz

    Roger Quadros
     
  • For realistic systems the power management is controlled entirely via
    runtime PM - if the device is not runtime suspended then the suspend
    will abort without doing anything as functionality such as accessory
    detection or audio bypass will require the device to be enabled while
    if the device is runtime suspended it is already in the lowest power
    state. This means that system suspend is redundant and can be removed
    which avoids issues with attempting to double disable the regulators.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • AB8500 asserts LATCH bits for masked out interrupts. This patch
    explicitly masks those out using the cached mask value to prevent
    handle_nested_irq() being called for masked IRQ on the same register as
    unmasked ones.

    Acked-by: Linus Walleij
    Signed-off-by: Fabio Baltieri
    Signed-off-by: Samuel Ortiz

    Fabio Baltieri
     
  • Twelve Kconfig symbols, all related to WM8350, WM8351, and WM8352, are
    unused. Commit 19d57ed5a308472a02e773f33c03ad4cb2ec6a9 ("mfd: Remove
    custom wm8350 cache implementation") removed all their (actual) users.
    Remove these symbols too.

    Signed-off-by: Paul Bolle
    Acked-by: Mark Brown
    Acked-by: Kukjin Kim
    Signed-off-by: Samuel Ortiz

    Paul Bolle
     
  • This patch changes the irq state from high to the now default low.
    Because the default PMIC irq state of DA9055 got changed from high to low.
    This change should not affect any of the existing users since all of them
    use active low state.

    This patch has been tested on smdkv6410.

    Signed-off-by: Ashish
    Signed-off-by: Samuel Ortiz

    Ashish Jangam
     
  • Allows the OMAP USB TLL module to be specified via device tree.

    Signed-off-by: Roger Quadros
    Signed-off-by: Samuel Ortiz

    Roger Quadros
     
  • This is because we want to get rid of platform_data usage from probe().
    The only information we need is PORT_MODE, and this can be supplied
    to us by the user (i.e. omap-usb-host.c).

    We also move channel clock management from runtime PM handlers into
    omap_tll_enable/disable().

    Signed-off-by: Roger Quadros
    Signed-off-by: Samuel Ortiz

    Roger Quadros
     
  • EHCI driver would need to know the number of ports available
    on the platform. We set the nports parameter of platform_data
    based on IP version if it was not already provided.

    Signed-off-by: Roger Quadros
    Acked-by: Felipe Balbi
    Signed-off-by: Samuel Ortiz

    Roger Quadros
     
  • The Kconfig entry for DA9055 PMIC Support selects PMIC_DA9055. That was
    probably inspired by the similar select statement in the entry for
    DA9052/53 PMIC with I2C. But the DA9055 PMIC only comes in an I2C
    variant and its driver doesn't need a separate Kconfig symbol for shared
    code. In any case, this select can be dropped as PMIC_DA9055 doesn't
    exist.

    Signed-off-by: Paul Bolle
    Signed-off-by: Samuel Ortiz

    Paul Bolle
     
  • Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • Palmas device have three different i2c addresses. The device creates
    the two new dummy i2c clients for accessing the register by using
    primary client adapter. This new dummy i2c client have their of_node
    as NULL.

    The dummy i2c client is used for registering interrupt and on this,
    it creates irq domain handle. This created irq domain handle has
    their of_node as NULL.

    Now when any child of this device is registered through the DT as
    follows:
    palmas: tps65913@58 {
    ::::::::::::::::::

    #interrupt-cells = ;
    interrupt-controller;

    palmas_rtc {
    compatible = "ti,palmas-rtc";
    interrupt-parent = ;
    interrupts = ;
    };
    ::::::::::;;;
    };

    And child driver (palam-rtc in this case) get their irq number as
    irq = platform_get_irq(pdev, 0);

    The returned irq number is error in this case. The reason is that
    the created irq_domain handle for the palmas interrupt does not have
    valid node and so matching of node fails with palmas node.

    Hence initialising the newly dummy created client->of_node with the
    primary clients of_node so that irq_domain handle have proper of_node
    for matching.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Samuel Ortiz

    Laxman Dewangan
     
  • Add irq resources to pass to the charger mfd sub dev so
    the charger can listen for interrupts.

    Signed-off-by: Rhyland Klein
    Signed-off-by: Samuel Ortiz

    Rhyland Klein
     
  • The enum is missing the definition for the first bit, which makes all
    the rest off by one. Add definition for the TPS65090_IRQ_INTERRUPT bit
    which at 0.

    Signed-off-by: Rhyland Klein
    Signed-off-by: Samuel Ortiz

    Rhyland Klein
     

08 Apr, 2013

22 commits