19 Jun, 2009

20 commits

  • One of my programs frequently grabs the parport, does something with it
    and then drops it again. This results in spamming of the kernel log with

    "... registered pardevice"
    "... unregistered pardevice"

    These messages are completely useless, except for debugging ppdev,
    probably. So put them under DEBUG (or dynamic debug).

    Signed-off-by: Michael Buesch
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Buesch
     
  • Fix this:
    isicom.c: In function `isicom_probe':
    isicom.c:1587: warning: `signature' may be used uninitialized in this function
    by uninitialized_var(), because if the signature is not initialized in
    reset_card(), we won't use it.

    Signed-off-by: Jiri Slaby
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • memory_open() ignores devlist and does a switch for each item, duplicating
    code and conditional definitions.

    Clean it up by adding backing_dev_info to devlist and use it to lookup for
    the minor device.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Adriano dos Santos Fernandes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adriano dos Santos Fernandes
     
  • PCA9556 is the software-compatible predecessor to the PCA9557, so add it
    to the supported I2C device ID table.

    Signed-off-by: Nate Case
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nate Case
     
  • On OpenFirmware platforms, it makes the most sense to get platform_data
    from the device tree. Make an attempt to translate OF node properties
    into platform_data struct before bailing out.

    Note that the implementation approach taken differs from other device
    drivers that make use of device tree information. This is because I2C
    chips are already registered automatically by of_i2c, so we can get by
    with a small translator function in the driver.

    [akpm@linux-foundation.org: coding-style fixes]
    [akpm@linux-foundation.org: kfree(NULL) is legal]
    Signed-off-by: Nate Case
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nate Case
     
  • The remove member of the spi_driver max7301_driver uses __devexit_p(), so
    the remove function itself should be marked with __devexit. Even more so
    considering the probe function is marked with __devinit.

    Signed-off-by: Mike Frysinger
    Acked-by: Juergen Beisert
    Cc: Dmitry Baryshkov
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • Add support to the PCA953x driver to use the GPIOLIB naming facility for
    GPIOs.

    Signed-off-by: Daniel Silverstone
    Cc: Ben Gardner
    Cc: Jean Delvare
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Silverstone
     
  • Blackfin platforms do not support the hardware which this driver drives.

    Signed-off-by: Mike Frysinger
    Cc: Christoph Hellwig
    Cc: Paul Mundt
    Cc: David Brownell
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • IRQF_SHARED should not be used with IRQF_DISABLED. There is no in-tree
    user of this driver and only out-of-tree user I know uses a dedicated irq
    line for this RTC.

    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • IRQF_SHARED should not be used with IRQF_DISABLED. This RTC have a
    dedicated irq line to SoC's internal interrupt controller so there is
    no reason to use IRQF_SHARED.

    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • Add support for the Epson RX-8025SA/NB RTC chips. It includes support for
    alarms, periodic interrupts (1 Hz) and clock precision adjustment.

    For clock precision adjustment, the SYSFS file "clock_adjust_ppb" gets
    created in "/sys/class/rtc/rtcX/device". It permits to set and get the
    clock adjustment in ppb (parts per billion), e.g.:

    # echo -183000 > /sys/class/rtc/rtc0/device/clock_adjust_ppb
    # cat /sys/class/rtc/rtc0/device/clock_adjust_ppb
    -183000

    This allows to compensate temperature dependent clock drifts. According
    to the RX8025 SA/NB application manual the frequency and temperature
    characteristics can be approximated using the following equation:

    df = a * (ut - t)**2

    df: Frequency deviation in any temperature
    a : Coefficient = (-35 +-5) * 10**-9
    ut: Ultimate temperature in degree = +25 +-5 degree
    t : Any temperature in degree

    Signed-off-by: Wolfgang Grandegger
    Signed-off-by: Sergei Poselenov
    Signed-off-by: Yuri Tikhonov
    Signed-off-by: Dmitry Rakhchev
    Signed-off-by: Matthias Fuchs
    Acked-by: Jean Delvare
    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wolfgang Grandegger
     
  • Add ds3231 variant. For that, the BBSQI bit position was changed from a
    simple define into a lookup-array as it differs. This also removes
    writing to an unused bit in case of the ds1337.

    Signed-off-by: Wolfram Sang
    Acked-by: David Brownell
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wolfram Sang
     
  • Extend the ds1307 driver to support ds1388 too.

    Signed-off-by: Joakim Tjernlund
    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joakim Tjernlund
     
  • The RTC driver for ds1742 / ds1743 uses a static nvram attribute. This
    patch replaces this static attribute with one nvram attribute for each
    ds174x registered.

    The nvram size is not the same for all types of ds174x. The nvram size is
    accessible as the file size of the nvram attribute in sysfs. With only a
    single nvram attribute, this file size will be incorrect if more than one
    type of ds174x is present on a system. See the comment in the removed
    code below.

    This patch have been tested with linux-2.6.28 and linux-2.6.29-rc5/6 on a
    custom board with one ds1743.

    Signed-off-by: Torsten Ertbjerg Rasmussen
    Signed-off-by: Alessandro Zummo
    Cc: Atsushi Nemoto
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Torsten Ertbjerg Rasmussen
     
  • Buffer needs not be dma-safe, not rx data length.

    Signed-off-by: Jiri Pirko
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Pirko
     
  • Commit a7bb3909b3293d503211d7f6af8ed62c1644b686 ("spi: pxa2xx_spi:
    introduce chipselect GPIO to simplify the common cases") introduces
    chipselect GPIO, and configures the CS polarity using SPI_CS_HIGH
    spi->mode flag. Add SPI_CS_HIGH to the allowed modes.

    Signed-off-by: Daniel Ribeiro
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Ribeiro
     
  • mpc52xx_psc_spi driver is the last user of the legacy activate_cs and
    deactivate_cs callbacks, so convert the driver to the cs_control hook and
    remove the legacy callbacks from fsl_spi_platform_data struct.

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

    Anton Vorontsov
     
  • Move some common spi_setup() error checks into the SPI framework from the
    spi_master controller drivers:

    - Add a new "mode_bits" field to spi_master

    - Use that in spi_setup to validate the spi->mode value being
    requested. Setting this new field is now mandatory for any
    controller supporting more than vanilla SPI_MODE_0.

    - Update all spi_master drivers to:

    * Initialize that field
    * Remove current spi_setup() checks using that value.

    This is a net minor code shrink.

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Start moving some spi_setup() functionality into the SPI core from the
    various spi_master controller drivers:

    - Make that function stop being an inline;

    - Move two common idioms from drivers into that new function:
    * Default bits_per_word to 8 if that field isn't set
    * Issue a standardized dev_dbg() message

    This is a net minor source code shrink, and supports enhancments found in
    some follow-up patches.

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • bfin_spi_flush() returns limit, which reaches -1 upon timeout. but in
    function bfin_spi_pump_transfers() it is compared with 0.

    Signed-off-by: Roel Kluin
    Acked-by: David Brownell
    Cc: Bryan Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     

18 Jun, 2009

20 commits

  • Instead of starting from the iomem or ioport roots, start from the
    parent bus' resources. This fixes a bug where child resources would
    appear above their parents resources if they had the same size.

    Signed-off-by: Matthew Wilcox
    Tested-by: Andrew Patterson
    Signed-off-by: Linus Torvalds

    Matthew Wilcox
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] Convert ia64 to use int-ll64.h
    [IA64] Fix build error in paravirt_patchlist.c
    [IA64] ia64 does not need umount2() syscall
    [IA64] hook up new rt_tgsigqueueinfo syscall
    [IA64] msi_ia64.c dmar_msi_type should be static
    [IA64] remove obsolete hw_interrupt_type
    [IA64] remove obsolete irq_desc_t typedef
    [IA64] remove obsolete no_irq_type
    [IA64] unexport fpswa.h

    Linus Torvalds
     
  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6:
    mfd: early init for MFD running regulators
    mfd: fix tmio related warnings
    mfd: asic3: enable SD/SDIO cell
    mfd: asic3: enable DS1WM cell
    mfd: asic3: remove SD/SDIO controller register definitions
    mfd: asic3: use resource_size macro instead of local variable
    mfd: add ASIC3 IRQ numbers
    mfd: asic3: add clock handling for MFD cells
    mfd: asic3: add asic3_set_register common operation
    mfd: Fix Kconfig help text for WM8350
    mfd: add PCAP driver
    mfd: add U300 AB3100 core support
    drivers/mfd: remove obsolete irq_desc_t typedef
    mfd/pcf50633-gpio.c: add MODULE_LICENSE
    mfd: Mark WM8350 mask revision as readable to match silicon
    mfd: Mark clocks_init as non-init in twl4030-core.c
    mfd: Correct readability of WM8350 register 227

    Linus Torvalds
     
  • For MFDs running regulator cores, we really want them to be brought up early
    during boot.

    Signed-off-by: Samuel Ortiz
    Acked-by: Mark Brown
    Acked-by: Mike Rapoport

    Samuel Ortiz
     
  • We can not have .driver_data as const since platform_set_drvdata() doesnt take
    a const.
    The hclk mmc_data field can be const though.

    Signed-off-by: Samuel Ortiz

    Samuel Ortiz
     
  • This enables the ASIC3's SD/SDIO MFD cell, supported by the tmio_mmc driver.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Samuel Ortiz

    Philipp Zabel
     
  • This enables the ASIC3's DS1WM MFD cell, supported by the ds1wm driver.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Samuel Ortiz

    Philipp Zabel
     
  • This should make the code a little bit easier to read.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Samuel Ortiz

    Philipp Zabel
     
  • Since ASIC3 has to work on both PXA and S3C and since their
    struct clk implementations differ, we can't register out
    clocks with the clkdev mechanism (yet?).
    For now we have to keep clock handling internal to this
    driver and enable/disable the clocks via the
    mfd_cell->enable/disable functions.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Samuel Ortiz

    Philipp Zabel
     
  • Used to configure single bits of the SDHWCTRL_SDCONF and EXTCF_RESET/SELECT
    registers needed for DS1WM, MMC/SDIO and PCMCIA functionality.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Samuel Ortiz

    Philipp Zabel
     
  • More with the grammar.

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

    Mark Brown
     
  • The PCAP Asic as present on EZX phones is a multi function device with
    voltage regulators, ADC, touch screen controller, RTC, USB transceiver,
    leds controller, and audio codec.

    It has two SPI ports, typically one is connected to the application
    processor and another to the baseband, this driver provides read/write
    functions to its registers, irq demultiplexer and ADC
    queueing/abstraction.

    This chip is used on a lot of Motorola phones, it was manufactured by TI
    as a custom product with the name PTWL93017, later this design evolved
    into the ATLAS PMIC from Freescale (MC13783).

    Signed-off-by: Daniel Ribeiro
    Signed-off-by: Samuel Ortiz

    Daniel Ribeiro
     
  • This adds a core driver for the AB3100 mixed-signal circuit
    found in the ST-Ericsson U300 series platforms. This driver
    is a singleton proxy for all accesses to the AB3100
    sub-drivers which will be merged on top of this one, RTC,
    regulators, battery and system power control, vibrator,
    LEDs, and an ALSA codec.

    Signed-off-by: Linus Walleij
    Reviewed-by: Mike Rapoport
    Reviewed-by: Ben Dooks
    Signed-off-by: Samuel Ortiz

    Linus Walleij
     
  • The defines and typedefs (hw_interrupt_type, no_irq_type, irq_desc_t) have
    been kept around for migration reasons. After more than two years it's
    time to remove them finally.

    This patch cleans up one of the remaining users. When all such patches
    hit mainline we can remove the defines and typedefs finally.

    Impact: cleanup

    Convert the last remaining users and remove the typedef.

    Signed-off-by: Thomas Gleixner
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Samuel Ortiz

    Thomas Gleixner
     
  • Add the missing MODULE_LICENSE("GPL").

    Signed-off-by: Adrian Bunk
    Cc: Balaji Rao
    Cc: Andy Green
    Signed-off-by: Andrew Morton
    Signed-off-by: Samuel Ortiz

    Adrian Bunk
     
  • No impact unless someone has written additional kernel code.

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

    Mark Brown
     
  • Impact: Fix section mismatch.

    clocks_init() has been called from twl4030_probe() which is a non-init
    function. Since probing can be done anytime so clocks_init will be
    called anytime too. So we mark clock_init() as non-init.

    LD drivers/mfd/built-in.o
    WARNING: drivers/mfd/built-in.o(.text+0x8dd9): Section mismatch in
    reference from the function twl4030_probe() to the function
    .init.text:clocks_init()
    The function twl4030_probe() references
    the function __init clocks_init().
    This is often because twl4030_probe lacks a __init
    annotation or the annotation of clocks_init is wrong.

    Signed-off-by: Rakib Mullick
    Signed-off-by: Samuel Ortiz

    Rakib Mullick
     
  • This includes the USB current limit status override which is used in the
    power management driver.

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

    Mark Brown
     
  • * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
    [CPUFREQ] cpumask: new cpumask operators for arch/x86/kernel/cpu/cpufreq/powernow-k8.c
    [CPUFREQ] cpumask: avoid playing with cpus_allowed in powernow-k8.c
    [CPUFREQ] cpumask: avoid cpumask games in arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c
    [CPUFREQ] cpumask: avoid playing with cpus_allowed in speedstep-ich.c
    [CPUFREQ] powernow-k8: get drv data for correct CPU
    [CPUFREQ] powernow-k8: read P-state from HW
    [CPUFREQ] reduce scope of ACPI_PSS_BIOS_BUG_MSG[]
    [CPUFREQ] Clean up convoluted code in arch/x86/kernel/tsc.c:time_cpufreq_notifier()
    [CPUFREQ] minor correction to cpu-freq documentation
    [CPUFREQ] powernow-k8.c: mess cleanup
    [CPUFREQ] Only set sampling_rate_max deprecated, sampling_rate_min is useful
    [CPUFREQ] powernow-k8: Set transition latency to 1 if ACPI tables export 0
    [CPUFREQ] ondemand: Uncouple minimal sampling rate from HZ in NO_HZ case

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6:
    [SCSI] aic79xx: make driver respect nvram for IU and QAS settings
    [SCSI] don't attach ULD to Dell Universal Xport
    [SCSI] lpfc 8.3.3 : Update driver version to 8.3.3
    [SCSI] lpfc 8.3.3 : Add support for Target Reset handler entrypoint
    [SCSI] lpfc 8.3.3 : Fix a couple of spin_lock and memory issues and a crash
    [SCSI] lpfc 8.3.3 : FC/FCOE discovery fixes
    [SCSI] lpfc 8.3.3 : Fix various SLI-3 vs SLI-4 differences
    [SCSI] qla2xxx: Resolve a performance issue in interrupt
    [SCSI] cnic, bnx2i: Fix build failure when CONFIG_PCI is not set.
    [SCSI] nsp_cs: time_out reaches -1
    [SCSI] qla2xxx: fix printk format warnings
    [SCSI] ncr53c8xx: div reaches -1
    [SCSI] compat: don't perform unneeded copy in sg_io code
    [SCSI] zfcp: Update FC pass-through support
    [SCSI] zfcp: Add FC pass-through support
    [SCSI] FC Pass Thru support

    Linus Torvalds