31 May, 2019

1 commit

  • Based on 3 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [kishon] [vijay] [abraham]
    [i] [kishon]@[ti] [com] this program is distributed in the hope that
    it will be useful but without any warranty without even the implied
    warranty of merchantability or fitness for a particular purpose see
    the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [graeme] [gregory]
    [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i]
    [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema]
    [hk] [hemahk]@[ti] [com] this program is distributed in the hope
    that it will be useful but without any warranty without even the
    implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1105 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

23 Feb, 2017

1 commit

  • The driver doesn't have a struct of_device_id table but supported devices
    are registered via Device Trees. This is working on the assumption that a
    I2C device registered via OF will always match a legacy I2C device ID and
    that the MODALIAS reported will always be of the form i2c:.

    But this could change in the future so the correct approach is to have an
    OF device ID table if the devices are registered via OF.

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Mark Brown

    Javier Martinez Canillas
     

30 Sep, 2016

1 commit


02 Sep, 2016

1 commit


12 Apr, 2015

1 commit


11 Feb, 2015

1 commit

  • The driver currently only supports a single device per I2C bus since it uses
    the I2C bus number to set the SPI bus number. This makes it impossible to
    connect more than one chip to a single I2C bus.

    We don't want to use dynamic bus numbers unconditionally since this would
    result in every instantiation getting a different bus number starting with
    65,535 counting down unless devicetree is configured. If devicetree is
    configured, however, the SPI bus number is obtained from devicetree
    data. So we can use dynamic SPI bus numbers in this case.

    Reported-and-Tested-by: Marco Menchise
    Signed-off-by: Guenter Roeck
    Signed-off-by: Mark Brown

    Guenter Roeck
     

22 Dec, 2014

1 commit


13 Mar, 2014

1 commit

  • Set master->max_speed_hz and master->min_speed_hz then spi core will handle
    checking transfer speed. So we can remove the same checking in this driver.

    This patch also remove testing if hz is 0 because spi->max_speed_hz will be
    default set to master->min_speed_hz if it was not set. So the transfer speed
    will never set to 0.

    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     

12 Feb, 2014

1 commit


03 Feb, 2014

1 commit

  • The checking for spi->mode is done in the implementation of spi_setup().
    Calling sc18is602_check_transfer(spi, NULL, 0) is pointless because
    the code is equivent to checking if spi->max_speed_hz is 0.
    Note, sc18is602_check_transfer actually allows spi->max_speed_hz is 0
    if t->speed_hz is set. So return error in sc18is602_setup() when
    spi->max_speed_hz is 0 does not make sense.

    Signed-off-by: Axel Lin
    Acked-by: Guenter Roeck
    Signed-off-by: Mark Brown

    Axel Lin
     

23 Jan, 2014

1 commit


17 Jan, 2014

2 commits

  • Since commit 543bb25 "spi: add ability to validate xfer->bits_per_word in SPI
    core", the driver can set bits_per_word_mask for the master then the SPI core
    will reject transfers that attempt to use an unsupported bits_per_word value.
    So we can remove the bits_per_word checking in sc18is602_check_transfer() and
    let SPI core handle the checking.

    Signed-off-by: Axel Lin
    Acked-by: Guenter Roeck
    Signed-off-by: Mark Brown

    Axel Lin
     
  • The implementation in spi_setup() already set spi->bits_per_word = 8 when
    spi->bits_per_word is 0 before calling spi->master->setup.
    So we don't need to do it again in setup() callback.

    Signed-off-by: Axel Lin
    Acked-by: Marek Vasut
    Acked-by: Barry Song
    Acked-by: Guenter Roeck
    Signed-off-by: Mark Brown

    Axel Lin
     

04 Dec, 2013

1 commit


23 Aug, 2012

2 commits