13 Nov, 2014

4 commits


12 Nov, 2014

1 commit


11 Nov, 2014

4 commits


10 Nov, 2014

4 commits

  • In case of repeated START condition, the restart has to be kicked
    before clear status (MSR register). If it is kicked after clear status,
    R-Car I2C may transfer data (TXD register) or receive data (RXD register)
    instead of transferring slave address (MAR register).

    Signed-off-by: Ryo Kataoka
    Signed-off-by: Nobuhiro Iwamatsu

    Nobuhiro Iwamatsu
     
  • Some slow I2C devices like Power Monitor(ZM7304) at times
    do not work well with low timeout value, so I2C bus get stuck
    during read cycle with this device, changing it to 100ms from
    10ms works fine

    A lot of other i2c drivers like mxc and i2c drivers of BOOTROM
    also use relax timeouts to give sufficient ticks to work well
    with slower devices

    Signed-off-by: Shaveta Leekha
    Signed-off-by: Poonam Aggrwal

    Shaveta Leekha
     
  • ppc4xx i2c master gets stuck on errors while repeated start is
    active. Can be easily reproduced by "i2c md" on an unpopulated
    i2c address. There is not stop condition given, scl remains
    pulled low.
    The only way out seems to be doing a stop manually and then a
    soft reset.

    Signed-off-by: Dirk Eibach
    Reviewed-by: Stefan Roese

    Dirk Eibach
     
  • Debugging some i2c trouble I saw on my scope that repeated
    start is not working properply. The 4xx even held clock pulled down
    after transfers. Having a look in the driver I realized
    that IIC_CNTL_RPST is set on that part of the transfer that should
    begin with a repeated start. But repeated start is about not sending a
    stop condition, so IIC_CNTL_RPST has to be set on the last transfer
    before the repeated start happens.

    Signed-off-by: Dirk Eibach
    Reviewed-by: Stefan Roese

    Dirk Eibach
     

08 Nov, 2014

6 commits


07 Nov, 2014

9 commits

  • Signed-off-by: Nobuhiro Iwamatsu
    CC: Marek Vasut

    Nobuhiro Iwamatsu
     
  • CMD_IAAD (Interrupt on Async Advance Doorbell) is bit 6, not bit 5.
    While we are here, sort the flags.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Allow passing in a custom configuration of the gusbcfg register
    via platform data.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Vince Bridgers
    Acked-by: Pavel Machek
    Cc: Stefan Roese
    Reviewed-by: Lukasz Majewski
    Tested-by: Lukasz Majewski

    Marek Vasut
     
  • Split the Samsung specific PHY control into a separate file
    and compile this into the S3C OTG driver only if used on a
    Samsung system.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Vince Bridgers
    Acked-by: Pavel Machek
    Cc: Stefan Roese
    Reviewed-by: Lukasz Majewski
    Tested-by: Lukasz Majewski

    Marek Vasut
     
  • Encapsulate the Samsung PHY control and its register accesses
    into the otg_phy_init() and otg_phy_off() functions.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Vince Bridgers
    Cc: Stefan Roese
    Acked-by: Pavel Machek
    Acked-by: Lukasz Majewski
    Tested-by: Lukasz Majewski

    Marek Vasut
     
  • Remove the useless inclusion of arch/arm/gpio.h , which is completely
    bogus in this driver.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Vince Bridgers
    Cc: Stefan Roese
    Acked-by: Pavel Machek
    Acked-by: Lukasz Majewski

    Marek Vasut
     
  • Switch the default CD GPIO polarity to active low.

    The current hsmmc driver assumption that the CD GPIO is active high, but
    in the real hardware, usually the opposite holds.
    The usual SD card socket has a mechanical switch which is grounded as
    soon as a card is inserted.
    Of course there might be some board logic which inverts the signal, but
    as far as current users are concerned, there is no such logic.

    Current U-Boot users either not using the CD functionality, or have a
    different way (e.g. external to SoC GPIO controller) for checking the
    card presence.

    This patch also brings the polarity assumption in line with the Linux
    kernel and adds appropriate comments.

    This patch also might spare issues once the TWL GPIO driver will be
    converted to the DM.

    Signed-off-by: Igor Grinberg
    Cc: Pantelis Antoniou
    Cc: Dmitry Lifshitz
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • The verification qm_cfg existence is done at ksnav_init().
    So, there is no need to verify it after initialization.

    Signed-off-by: Ivan Khoronzhuk
    Reviewed-by: Tom Rini

    Khoronzhuk, Ivan
     
  • As per Marvell Release Notes - Alaska 88E1510/88E1518/88E1512/88E1514
    Rev A0, Errata Section 3.1 Marvell PHY has an errata which requires
    that certain registers get written in order to restart
    autonegotiation.

    Signed-off-by: Hao Zhang
    Signed-off-by: Ivan Khoronzhuk
    Reviewed-by: Stefan Roese

    Hao Zhang
     

06 Nov, 2014

3 commits


05 Nov, 2014

9 commits