19 Oct, 2007

1 commit

  • Found these while looking at printk uses.

    Add missing newlines to dev_ uses
    Add missing KERN_ prefixes to multiline dev_s
    Fixed a wierd->weird spelling typo
    Added a newline to a printk

    Signed-off-by: Joe Perches
    Cc: "Luck, Tony"
    Cc: Jens Axboe
    Cc: Mark M. Hoffman
    Cc: Roland Dreier
    Cc: Tilman Schmidt
    Cc: David Woodhouse
    Cc: Jeff Garzik
    Cc: Stephen Hemminger
    Cc: Greg KH
    Cc: Jeremy Fitzhardinge
    Cc: Geert Uytterhoeven
    Cc: Alessandro Zummo
    Cc: David Brownell
    Cc: James Smart
    Cc: Andrew Vasquez
    Cc: "Antonino A. Daplas"
    Cc: Evgeniy Polyakov
    Cc: Russell King
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

17 Oct, 2007

1 commit

  • Other/Some pr_*() macros are already defined in kernel.h, but pr_err() was
    defined multiple times in several other places

    Signed-off-by: Emil Medve
    Cc: Jean Delvare
    Cc: Jeff Garzik
    Cc: "Antonino A. Daplas"
    Cc: Tony Lindgren
    Reviewed-by: Satyam Sharma
    Acked-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Emil Medve
     

16 Oct, 2007

1 commit

  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (95 commits)
    [ARM] 4578/1: CM-x270: PCMCIA support
    [ARM] 4577/1: ITE 8152 PCI bridge support
    [ARM] 4576/1: CM-X270 machine support
    [ARM] pxa: Avoid pxa_gpio_mode() in gpio_direction_{in,out}put()
    [ARM] pxa: move pxa_set_mode() from pxa2xx_mainstone.c to mainstone.c
    [ARM] pxa: move pxa_set_mode() from pxa2xx_lubbock.c to lubbock.c
    [ARM] pxa: Make cpu_is_pxaXXX dependent on configuration symbols
    [ARM] pxa: PXA3xx base support
    [NET] smc91x: fix PXA DMA support code
    [SERIAL] Fix console initialisation ordering
    [ARM] pxa: tidy up arch/arm/mach-pxa/Makefile
    [ARM] Update arch/arm/Kconfig for drivers/Kconfig changes
    [ARM] 4600/1: fix kernel build failure with build-id-supporting binutils
    [ARM] 4599/1: Preserve ATAG list for use with kexec (2.6.23)
    [ARM] Rename consistent_sync() as dma_cache_maint()
    [ARM] 4572/1: ep93xx: add cirrus logic edb9307 support
    [ARM] 4596/1: S3C2412: Correct IRQs for SDI+CF and add decoding support
    [ARM] 4595/1: ns9xxx: define registers as void __iomem * instead of volatile u32
    [ARM] 4594/1: ns9xxx: use the new gpio functions
    [ARM] 4593/1: ns9xxx: implement generic clockevents
    ...

    Linus Torvalds
     

14 Oct, 2007

20 commits

  • The i2c-nforce2 driver has SMBus PEC support, so it should say so.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • This patch is to add an abort function that will bring back the MCP51/55
    controller if it was blocked by a block-read operation, in particular.
    (When a slave sends a wrong byte count on a byte read, the host gets
    locked up). I've only tested it on an MCP51 and MCP55. However, I'm
    almost certain it will also work on MCP65, I just did not have the board
    to test it on. Thus for now the abort function will only be called
    if an MCP51/55 was detected.

    Signed-off-by: Oleg Ryjkov
    Signed-off-by: Jean Delvare

    Oleg Ryjkov
     
  • This is the first part of the patch that adds a function to reset the
    nvidia MCP51/55 i2c controller, if something bad happens to it (e.g.
    a slave sends a wrong byte count during a block transaction).

    This patch just adds nforce2_check_status function. It was originally
    written by Hans-Frieder Vogt.

    The reason that I'm the one sending it is:
    - I relied on it for the second part of the patch,
    - It makes the driver code cleaner/better.

    Signed-off-by: Oleg Ryjkov
    Signed-off-by: Jean Delvare

    Oleg Ryjkov
     
  • Fix a "mis-used register" problem on the AMD MIPS Alchemy au1550
    I2C interface.

    In summary, the programmable serial controller seems to hang the kernel
    when I send a single 'address' byte on the I2C bus. The patch
    essentially uses the PSC_SMBSTAT register's TE (transmit FIFO empty)
    bit to check when the transmit FIFO is empty, instead of using the
    PSC_SMBEVNT register's TU (transmit underflow) bit. Using the TE bit
    fixed the hang problem.

    Signed-off-by: Chris David
    Acked-by: Ralf Baechle
    Signed-off-by: Jean Delvare

    Chris David
     
  • Rename I2C_FUNC_SMBUS_HWPEC_CALC as I2C_FUNC_SMBUS_PEC, and list that
    functionality as always available through the software implementation.
    Update documentation accordingly (and list similar requirements).

    The way it's currently packaged doesn't present the capability in a
    useful way.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • Mark the i2c-at91 driver BROKEN in Kconfig, and explain just
    why it's broken. (Summary: hardware design issues.)

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • This removes:

    - An effectively unused hook: i2c_algorithm.algo_control.

    - The i2c_control() call, used only by i2c-dev to call that
    unused hook or set two barely supported adapter params.

    (That param setting moves into i2c-dev.c ... still iffy
    due to lack of locking, but no other changes.)

    As shown by diffstat, this is a net code shrink. It also reduces the
    complexity of the I2C adapter and /dev interfaces.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • This removes NOP implementations of i2c_algorithm.algo_control.

    With this change, there are no implementations of this hook in
    the kernel.org tree ... that hook seems about ripe to remove.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • The I2C_M_RECV_LEN calling convention for i2c_mesg.flags involves
    playing games with reported buffer lengths. (They start out less
    than their actual size, and the length is then modified to reflect
    how many bytes were delivered ... which one hopes is less than the
    presumed actual size.) Refuse to play such error prone games across
    the boundary between userspace and kernel.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • Add support for multiple chips to i2c-stub. I've changed the memory
    allocation scheme from static to dynamic, so that we don't waste too
    much memory.

    Signed-off-by: Jean Delvare
    Acked-by: Mark M. Hoffman

    Jean Delvare
     
  • Remove this unneeded mutex. Indeed it was used to serialize access to
    the hardware, but this is already done by the i2c-core layer, see
    'bus_lock' mutex used by i2c_transfer().

    Signed-off-by: Francis Moreau
    Acked-by: Bryan Wu
    Signed-off-by: Jean Delvare

    Francis Moreau
     
  • Add the Intel Tolapai SMBus Controller DID.

    Signed-off-by: Jason Gaston
    Signed-off-by: Jean Delvare

    Jason Gaston
     
  • Clarify use of the I2C_M_* flags by highlighting the fact that
    most of them depend on I2C_FUNC_PROTOCOL_MANGLING.

    Also provide kerneldoc for i2c_smbus_read_block_data() and also
    for "struct i2c_msg".

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • Do not initialize the PCF8574 with an arbitrary value. Users will have
    to write the initial value to sysfs themselves.

    Signed-off-by: Jean Delvare
    Acked-by: Aurelien Jarno

    Jean Delvare
     
  • Signed-off-by: Vladimir Barinov
    Acked-by: Trilok Soni
    Signed-off-by: Jean Delvare

    Vladimir Barinov
     
  • Use i2c_bit_add_numbered_adapter() if device id specified, so that the
    i2c-ibm_iic adapter works well with new-style pre-declared devices.

    Signed-off-by: Stefan Roese
    Signed-off-by: Jean Delvare

    Stefan Roese
     
  • Switch the tps65010 driver into a "new-style" I2C driver, and convert all
    of its in-tree users (board support for OSK, H2, H3) accordingly.

    That accounts for most of the board-specific code in this driver; the
    rest of that code is now moved into board-specific initcalls.

    Also remove some of the many now-superfluous #includes.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • Prepare to convert tps65010 driver to "new style" driver by changing
    how it references the i2c_client. This lets the eventual patch with
    driver and platform updates be smaller.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • After the i2c-isa removal some code can become static.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Jean Delvare

    Adrian Bunk
     
  • We need to be able to flag I2C devices, such as RTCs, which can issue wake
    events (usually through IRQ lines). This adds an i2c_board_info.flags bit,
    and uses it to initialize the i2c device node. (And shrinks a few lines
    that were overly long.)

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     

13 Oct, 2007

2 commits


10 Sep, 2007

3 commits

  • This fixes a bug in the way i2c-algo-bit handles I2C_M_RECV_LEN,
    used to implement i2c_smbus_read_block_data(). Previously, in the
    absence of PEC (rarely used!) it would NAK the "length" byte:

    S addr Rd [A] [length] NA

    That prevents the subsequent data bytes from being read:

    S addr Rd [A] [length] { A [data] }* NA

    The primary fix just reorders two code blocks, so the length used
    in the "should I NAK now?" check incorporates the data which it
    just read from the slave device.

    However, that move also highlighted other fault handling glitches.
    This fixes those by abstracting the RX path ack/nak logic, so it
    can be used in more than one location. Also, a few CodingStyle
    issues were also resolved.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • It turns out that platform_device.id is a "u32" so testing it for being
    nonnegative is useless when setting up an i2c adapte. Instead,
    do what the platform_bus code does and test it against the value "-1".

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • It turns out that platform_device.id is a "u32" so testing it for being
    nonnegative is useless when setting up an i2c bitbang device. Instead,
    do what the platform_bus code does and test it against the value "-1".

    Signed-off-by: David Brownell
    Acked-by: Atsushi Nemoto
    Signed-off-by: Jean Delvare

    David Brownell
     

31 Aug, 2007

1 commit

  • We find that SB700 and SB800 use the same SMBus device ID as SB600, which is
    0x4385, instead of the already submitted 0x4395.

    Besides removing the wrong SB700 device ID, add SB800 support to kernel, by
    renaming the PCI_DEVICE_ID_ATI_IXP600_SMBUS into
    PCI_DEVICE_ID_ATI_SBX00_SMBUS.

    Signed-off-by: Shane Huang
    Signed-off-by: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shane Huang
     

15 Aug, 2007

8 commits


30 Jul, 2007

1 commit


29 Jul, 2007

1 commit

  • * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
    Input Serio: Blackfin doesnt support I8042 - make sure it doesnt get selected
    Blackfin arch: add BF54x I2C/TWI TWI0 driver support
    Blackfin On-Chip RTC driver update for supporting BF54x
    Blackfin Ethernet MAC driver: fix bug Report returned -ENOMEM upwards (in case L1/uncached memory alloc fails)
    Blackfin arch: add error message when IRQ no available
    Blackfin arch: Initialize the exception vectors early in the boot process
    Blackfin arch: fix a compiling warning about dma-mapping
    Blackfin arch: switch to using proper defines this time THREAD_SIZE and PAGE_SIZE instead of just PAGE_SIZE everywhere
    Blackfin arch: fix bug which unaligns the init thread's stack and causes the current macro to fail.
    Blackfin arch: Load P0 before storing through it
    Blackfin arch: fix KGDB bug, dont forget last parameter.
    Blackfin arch: add selections for BF544 and BF542
    Blackfin arch: use bfin_read_SWRST() now that BF561 provides it
    Blackfin arch: setup aliases for some core Core A MMRs

    Linus Torvalds
     

27 Jul, 2007

1 commit

  • ia64:

    drivers/i2c/chips/ds1682.c: In function `ds1682_show':
    drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long unsigned int arg (arg 3)
    drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long unsigned int arg (arg 3)

    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton