10 Jan, 2013

1 commit

  • Fix:
    vexpress.c: In function ‘vexpress_hwmon_name_show’:
    vexpress.c:34:2: error: implicit declaration of function
    ‘of_get_property’ [-Werror=implicit-function-declaration]
    vexpress.c:34:27: warning: initialization makes pointer from integer
    without a cast [enabled by default]
    vexpress.c: In function ‘vexpress_hwmon_label_show’:
    vexpress.c:43:22: warning: initialization makes pointer from integer
    without a cast [enabled by default]

    Seen if CONFIG_OF_DEVICE is not defined. of_get_property is declared in
    of.h which is only included by of_device.h if CONFIG_OF_DEVICE is defined.
    of.h needs to be included directly.

    Signed-off-by: Guenter Roeck

    Guenter Roeck
     

04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

22 Dec, 2012

2 commits

  • Result of DIV_ROUND_CLOSEST is undefined for negative dividends if the divisor
    variable type is unsigned. Fix by declaring divisor as signed variable.

    Signed-off-by: Guenter Roeck
    Acked-by: Jean Delvare

    Guenter Roeck
     
  • If an LM73 device does not exist on an I2C bus, attempts to communicate
    with the device result in an error code returned from the i2c read/write
    functions. The current lm73 driver casts that return value from a s32
    type to a s16 type, then converts it to a temperature in celsius.
    Because negative temperatures are valid, it is difficult to distinguish
    between an error code printed to the response buffer and a negative
    temperature recorded by the sensor.

    The solution is to evaluate the return value from the i2c functions
    before performing any temperature calculations. If the i2c function did
    not succeed, the error code should be passed back through the virtual
    file system layer instead of being printed into the response buffer.

    Before:

    $ cat /sys/class/hwmon/hwmon0/device/temp1_input
    -46

    After:

    $ cat /sys/class/hwmon/hwmon0/device/temp1_input
    cat: read error: No such device or address

    Signed-off-by: Chris Verges
    Cc: stable@vger.kernel.org
    Signed-off-by: Guenter Roeck

    Chris Verges
     

20 Dec, 2012

16 commits


17 Dec, 2012

1 commit


14 Dec, 2012

1 commit

  • Pull ARM SoC driver specific changes from Olof Johansson:
    "A collection of mostly SoC-specific driver updates:
    - a handful of pincontrol and setup changes
    - new drivers for hwmon and reset controller for vexpress
    - timing support updates for OMAP (gpmc and other interfaces)
    - plus a collection of smaller cleanups"

    * tag 'drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (21 commits)
    ARM: ux500: fix pin warning
    ARM: OMAP2+: tusb6010: generic timing calculation
    ARM: OMAP2+: smc91x: generic timing calculation
    ARM: OMAP2+: onenand: generic timing calculation
    ARM: OMAP2+: gpmc: generic timing calculation
    ARM: OMAP2+: gpmc: handle additional timings
    ARM: OMAP2+: nand: remove redundant rounding
    gpio: samsung: use pr_* instead of printk
    ARM: ux500: fixup magnetometer pins
    ARM: ux500: add STM pin configuration
    ARM: ux500: 8500: add pinctrl support for uart1 and uart2
    ARM: ux500: cosmetic fixups for uart0
    gpio: samsung: Fix input mode setting function for GPIO int
    ARM: SAMSUNG: Insert bitmap_gpio_int member in samsung_gpio_chip
    ARM: ux500: 8500: define SDI sleep states
    ARM: vexpress: Reset driver
    ARM: ux500: 8500: update SKE keypad pinctrl table
    hwmon: Versatile Express hwmon driver
    ARM: ux500: delete duplicate macro
    ARM: ux500: 8500: add IDLE pin configuration for SPI
    ...

    Linus Torvalds
     

12 Dec, 2012

1 commit

  • Pull driver core updates from Greg Kroah-Hartman:
    "Here's the large driver core updates for 3.8-rc1.

    The biggest thing here is the various __dev* marking removals. This
    is going to be a pain for the merge with different subsystem trees, I
    know, but all of the patches included here have been ACKed by their
    various subsystem maintainers, as they wanted them to go through here.

    If this is too much of a pain, I can pull all of them out of this tree
    and just send you one with the other fixes/updates and then, after
    3.8-rc1 is out, do the rest of the removals to ensure we catch them
    all, it's up to you. The merges should all be trivial, and Stephen
    has been doing them all in linux-next for a few weeks now quite
    easily.

    Other than the __dev* marking removals, there's nothing major here,
    some firmware loading updates and other minor things in the driver
    core.

    All of these have (much to Stephen's annoyance), been in linux-next
    for a while.

    Signed-off-by: Greg Kroah-Hartman "

    Fixed up trivial conflicts in drivers/gpio/gpio-{em,stmpe}.c due to gpio
    update.

    * tag 'driver-core-3.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (93 commits)
    modpost.c: Stop checking __dev* section mismatches
    init.h: Remove __dev* sections from the kernel
    acpi: remove use of __devinit
    PCI: Remove __dev* markings
    PCI: Always build setup-bus when PCI is enabled
    PCI: Move pci_uevent into pci-driver.c
    PCI: Remove CONFIG_HOTPLUG ifdefs
    unicore32/PCI: Remove CONFIG_HOTPLUG ifdefs
    sh/PCI: Remove CONFIG_HOTPLUG ifdefs
    powerpc/PCI: Remove CONFIG_HOTPLUG ifdefs
    mips/PCI: Remove CONFIG_HOTPLUG ifdefs
    microblaze/PCI: Remove CONFIG_HOTPLUG ifdefs
    dma: remove use of __devinit
    dma: remove use of __devexit_p
    firewire: remove use of __devinitdata
    firewire: remove use of __devinit
    leds: remove use of __devexit
    leds: remove use of __devinit
    leds: remove use of __devexit_p
    mmc: remove use of __devexit
    ...

    Linus Torvalds
     

06 Dec, 2012

10 commits

  • Set chan_mux[DA9055_ADC_ADCIN3] = DA9055_ADC_MUX_ADCIN3.

    Signed-off-by: Axel Lin
    Signed-off-by: Guenter Roeck

    Axel Lin
     
  • This is the HWMON patch for DA9055 PMIC and has got dependency on the
    DA9055 MFD core.

    This patch monitors the DA9055 PMIC's ADC channels vddout, junction temperature
    and auxiliary channels.

    This patch is functionally tested on Samsung SMDKV6410.

    Signed-off-by: David Dajun Chen
    Signed-off-by: Ashish Jangam
    [Guenter Roeck: Dropped __devinit, __devexit, __devexit_p]
    Signed-off-by: Guenter Roeck

    Ashish Jangam
     
  • Since N4xx, N5xx, D4xx, and D5xx are now reliably detected using the model ID
    and the stepping/mask, drop the respective entries from tjmax_table.

    Signed-off-by: Guenter Roeck
    Acked-by: Jean Delvare

    Guenter Roeck
     
  • Make the code easier to extend and easier to adjust by using a model table
    listing CPU models, stepping/mask, and associated TjMax.

    Signed-off-by: Guenter Roeck
    Acked-by: Jean Delvare

    Guenter Roeck
     
  • Signed-off-by: Axel Lin
    Signed-off-by: Guenter Roeck

    Axel Lin
     
  • So far, we use the NM10 Express Chipset PCI chip ID to detect TjMax for
    Atom CPUs with model 0x1c. As it turns out, we can use the CPU stepping
    (x86_mask) for the same purpose; stepping is 10 for all model 0x1c CPUs
    with TjMax of 100 degrees C. This was verified by checking the output of
    /proc/cpuinfo for the respective CPUs (D4xx, D5xx, N4xx, N5xx).

    Other CPUs currently covered by the same code (Exx, Z6xx, Z2460) are not
    supported by the NM10 Express Chipset. Most of those CPUs have TjMax of 90
    degrees C, except for E6xxT models which have a TjMax of 110 degrees C.
    E6xxT CPUs can however not be detected by software.

    Calculate TjMax for Atom CPUs as follows. Note that the listed values are not
    correct in some cases (230, 330). tjmax_table is used for those to override
    the default values.

    ID Stepping TjMax Models
    0x1c 10 100 D4xx, N4xx, D5xx, N5xx
    0x1c not 10 90 Z5xx, N2xx, 230, 330, others
    0x26 - 90 Atom Tunnel Creek (Exx),
    Lincroft (Z6xx)
    0x27 - 90 Atom Medfield (Z2460)
    0x36 - 100 Atom Cedar Trail (N2xxx, D2xxx)

    Also drop the module dependency on PCI.

    Signed-off-by: Guenter Roeck
    Acked-by: Jean Delvare

    Guenter Roeck
     
  • Use the module_i2c_driver() macro to make the code smaller
    and a bit simpler.

    dpatch engine is used to auto generate this patch.
    (https://github.com/weiyj/dpatch)

    Signed-off-by: Wei Yongjun
    Signed-off-by: Guenter Roeck

    Wei Yongjun
     
  • The ADS7830 device is almost the same as the ADS7828,
    except that it does 8-bit sampling, instead of 12-bit.
    This patch extends the ads7828 driver to support this chip.

    Signed-off-by: Guillaume Roguez
    Signed-off-by: Vivien Didelot
    Signed-off-by: Guenter Roeck

    Guillaume Roguez
     
  • As there is no reliable way to identify the chip, it is preferable to
    remove the detect callback, to avoid misdetection.

    Module parameters are not worth it here, so let's get rid of them and
    add an ads7828_platform_data structure instead.

    Clean the code by removing unused macros, fixing coding style issues,
    avoiding function prototypes and using convenient macros such as
    module_i2c_driver().

    Signed-off-by: Vivien Didelot
    Signed-off-by: Guenter Roeck

    Vivien Didelot
     
  • Add family 16h PCI ID to AMD's power driver to allow it report
    power consumption on these processors.

    Signed-off-by: Boris Ostrovsky
    Cc: stable@vger.kernel.org
    Signed-off-by: Guenter Roeck

    Boris Ostrovsky
     

29 Nov, 2012

4 commits

  • CONFIG_HOTPLUG is going away as an option so __devexit is no
    longer needed.

    Signed-off-by: Bill Pemberton
    Cc: Hans de Goede
    Cc: Jean Delvare
    Cc: Alistair John Strachan
    Cc: Fenghua Yu
    Cc: Juerg Haefliger
    Cc: Andreas Herrmann
    Cc: Clemens Ladisch
    Cc: Rudolf Marek
    Cc: Jim Cromie
    Cc: "Mark M. Hoffman"
    Cc: Roger Lucas
    Acked-by: Guenter Roeck
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devinitdata is no
    longer needed.

    Signed-off-by: Bill Pemberton
    Cc: Jean Delvare
    Acked-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devinit is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Hans de Goede
    Cc: Jean Delvare
    Cc: Alistair John Strachan
    Cc: Fenghua Yu
    Cc: Juerg Haefliger
    Cc: Andreas Herrmann
    Cc: Clemens Ladisch
    Cc: Rudolf Marek
    Cc: Jim Cromie
    Cc: "Mark M. Hoffman"
    Cc: Roger Lucas
    Acked-by: Guenter Roeck
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Hans de Goede
    Cc: Jean Delvare
    Cc: Alistair John Strachan
    Cc: Fenghua Yu
    Cc: Juerg Haefliger
    Cc: Andreas Herrmann
    Cc: Clemens Ladisch
    Cc: Rudolf Marek
    Cc: Jim Cromie
    Cc: "Mark M. Hoffman"
    Cc: Roger Lucas
    Acked-by: Guenter Roeck
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     

16 Nov, 2012

1 commit


06 Nov, 2012

2 commits

  • These got broken by recent patches fixing checkpatch warnings in these
    drivers. The trick is that the patches themselves looked good, but the
    source files after applying them do not. That's why I am not a big fan
    of using tabs inside comments.

    Signed-off-by: Jean Delvare
    Acked-by: Guenter Roeck

    Jean Delvare
     
  • Don't assume bank 0 is selected at device probe time. This may not be
    the case. Force bank selection at first register access to guarantee
    that we read the right registers upon driver loading.

    Signed-off-by: Jean Delvare
    Reviewed-by: Guenter Roeck
    Cc: stable@vger.kernel.org

    Jean Delvare