This input clock is used to generate the sampling clock for I2C bus.
If the clock rate is zero, there is something wrong with the clock
driver. Bail out with the appropriate error message in such a case.
It would make it easier to find the root cause of failure.
Signed-off-by: Masahiro Yamada
Masahiro Yamada (4):
i2c: uniphier: error out if clock rate is zero
i2c: uniphier: error out if bus speed is zero
i2c: uniphier_f: error out if clock rate is zero
i2c: uniphier_f: error out if bus speed is zero
drivers/i2c/busses/i2c-uniphier-f.c | 11 ++-
There is code to divide by "bus_speed" some lines below.
To eliminate the possibility of division by zero, bail out if
"clock-frequency" is specified as zero.
Signed-off-by: Masahiro Yamada
---
drivers/i2c/busses/i2c-uniphier.c | 5 +
1 file changed, 5
This input clock is used to generate the sampling clock for I2C bus.
If the clock rate is zero, there is something wrong with the clock
driver. Bail out with the appropriate error message in such a case.
It would make it easier to find the root cause of failure.
Signed-off-by: Masahiro Yamada
There is code to divide by "bus_speed" some lines below.
To eliminate the possibility of division by zero, bail out if
"clock-frequency" is specified as zero.
Signed-off-by: Masahiro Yamada
---
drivers/i2c/busses/i2c-uniphier-f.c | 5 +
1 file changed, 5
Set the I2C adapter devices of_node to that of the PCI device, such that
I2C clients may be instantiated via device tree.
Signed-off-by: Paul Burton
---
drivers/i2c/busses/i2c-eg20t.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/busses/i2c-eg20t.c
Allow the eg20t I2C driver to be built for MIPS platforms, in
preparation for use on the MIPS Boston board.
Signed-off-by: Paul Burton
---
drivers/i2c/busses/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/Kconfig
On Thu, Oct 29, 2015 at 12:34:25PM +0100, Nicola Corna wrote:
> As reported here
> http://www.advamation.com/knowhow/raspberrypi/rpi-i2c-bug.html
> and confirmed here
> https://www.raspberrypi.org/forums/viewtopic.php?p=146272
> the BCM2835 has a hardware bug in its i2c module which prevents a
On Sat, Oct 31, 2015 at 10:21:56AM +, Jonathan Cameron wrote:
> On 29/10/15 11:34, Nicola Corna wrote:
> > The Si7013/20/21 modules support 2 read modes:
> > * Hold mode (blocking), where the device stretches the clock until the end
> > of the measurement
> > * No Hold mode (non-blocking),
On Thu, Oct 29, 2015 at 12:34:23PM +0100, Nicola Corna wrote:
> Add I2C_AQ_NO_CLK_STRETCH quirk flag, to be used when clock stretching is
> not supported.
>
> Signed-off-by: Nicola Corna
Applied to for-next, thanks!
signature.asc
Description: Digital signature
> I don't know about everyone else, but I'm finding this particular style
> of email thread very difficult to follow.
Same here.
> Perhaps either:
> * Start a new thread for each new series version.
+1
> * label the whole series with a rolling version number rather than doing it
> on a per
On Thu, Oct 29, 2015 at 12:34:24PM +0100, Nicola Corna wrote:
> Add I2C_AQ_NO_CLK_STRETCH to drivers/i2c/algos/i2c-algo-bit.c when getscl
> is not available.
>
> Signed-off-by: Nicola Corna
Applied to for-next, thanks! Please check git-log next time to see how
the subsystem
On Thu, Oct 29, 2015 at 12:34:26PM +0100, Nicola Corna wrote:
> This patch adds a i2c_check_quirks helper function to check the quirk flags
> of an i2c adapter, in a similar way to i2c_check_functionality.
>
> Signed-off-by: Nicola Corna
Applied to for-next, thanks!
In the similar way like we do for the platform data we propagate the device
properties. For example, in case of Intel LPSS drivers we may provide a
specific property to tell the actual device driver an additional information
such as platform name.
Signed-off-by: Andy Shevchenko
From: Mika Westerberg
Make it possible to pass built-in device properties to platform device
drivers. This is useful if the system does not have any firmware interface
like Device Tree or ACPI which provides these.
Properties associated with the platform device
Instead of using the type and nval fields we will use length (in bytes) of the
value. The sanity check is done in the accessors.
The built-in property accessors are split in the same way such as device tree.
Signed-off-by: Andy Shevchenko
---
This series includes few logical sets that bring a support of non-ACPI
platforms for Intel Skylake.
First part is a refactoring of built-in device properties support:
- keep single value inside the structure
- provide helper macros to define built-in properties
- fall back to secondary fwnode if
We may save a lot of lines of code and space by keeping single values inside
the struct property_entry. Refactor the implementation to do so.
Signed-off-by: Andy Shevchenko
---
drivers/base/property.c | 33 ++---
There is no functional change.
Signed-off-by: Andy Shevchenko
---
drivers/base/property.c | 28 ++--
include/linux/property.h | 4 ++--
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/drivers/base/property.c
From: Heikki Krogerus
Marcos for easier creation of build-in property entries.
Signed-off-by: Heikki Krogerus
Signed-off-by: Andy Shevchenko
---
include/linux/property.h | 55
The HS-UART host controller driver needs to know certain properties like
width of the register set if it cannot get that information from ACPI or
DT. In order to support non-ACPI systems we pass this information to the
driver via device properties.
Signed-off-by: Mika Westerberg
On Mon, Nov 30, 2015 at 04:13:20PM +0100, Wolfram Sang wrote:
> On Tue, Nov 24, 2015 at 02:47:40PM +0100, Ludovic Desroches wrote:
> > From: Wenyou Yang
> >
> > Add the HOLD field management. Some i2c devices need a longer data hold
> > time than the one given in the i2c
On Mon, Nov 30, 2015 at 02:51:41PM +0100, Wolfram Sang wrote:
> On Sun, Sep 27, 2015 at 04:57:08PM +0200, Hans de Goede wrote:
> > According to the datasheets to n factor for dividing the tclk is
> > 2 to the power n on Allwinner SoCs, not 2 to the power n + 1 as it is
> > on other mv64xxx
Currently the property accessors unconditionally fall back to built-in property
set as a last resort. Make this strict and return an error in case the type of
fwnode is unknown.
This is actually a follow up to the commit 4fa7508e9f1c (device property:
Return -ENXIO if there is no suitable FW
From: Mika Westerberg
Intel Skylake the LPSS I2C pad circuit has internal delays that require
programming non-zero SDA hold time for the I2C host controller. If this is
not done communication to slave devices may fail with arbitration lost
errors like the one
On Mon, Nov 30, 2015 at 03:51:00PM +0100, Alexander Sverdlin wrote:
> I2C controller used in Keystone SoC has an undocumented peculiarity which
> results in SDA-SCL margins being dependent on module clock. Driving high
> capacity bus near its limits can result in STOP condition sometimes being
>
From: Mika Westerberg
It is convenient if the property set associated with the device secondary
firmware node is a copy of the original. This allows passing property set
from a stack for example for devices created dynamically. This also ties
the property set
From: Mika Westerberg
If the boot firmware does not support ACPI we need a way to pass device
configuration information to the drivers. The unified device properties API
already supports passing platform data via properties so let's take
advantage of that and
On Wed, Oct 21, 2015 at 06:56:44PM -0700, Florian Fainelli wrote:
> Le 20/10/2015 19:36, Jaedon Shin a écrit :
> > Add the necessary parenthesis for NOACK condition.
> >
> > Signed-off-by: Jaedon Shin
>
> Acked-by: Florian Fainelli
I wouldn't call
On Wed, Oct 21, 2015 at 11:36:57AM +0900, Jaedon Shin wrote:
> Fixes conditions for RESTART, NOSTART and NOSTOP. The masks of start and
> stop is already in brcmstb_set_i2c_start_stop(). Therefore, the caller
> does not need a mask value.
Hmm, and what if that changes for some reason in the
On Mon, Nov 30, 2015 at 03:51:00PM +0100, Alexander Sverdlin wrote:
> I2C controller used in Keystone SoC has an undocumented peculiarity which
> results in SDA-SCL margins being dependent on module clock. Driving high
> capacity bus near its limits can result in STOP condition sometimes being
>
On Tue, Nov 24, 2015 at 01:01:56PM +0530, Shubhrajyoti Datta wrote:
> Currently the clocks are enabled at probe and disabled at remove.
> Which keeps the clocks enabled even if no transaction is going on.
> This patch enables the clocks at the start of transfer and disables
> after it.
>
> Also
On Mon, Nov 30, 2015 at 05:11:44PM +0200, Andy Shevchenko wrote:
> From: Mika Westerberg
>
> With ACPI _DSD (introduced in ACPI v5.1) it is now possible to pass device
> configuration information from ACPI in addition to DT. In order to support
> this, convert
On Tue, Nov 24, 2015 at 01:01:57PM +0530, Shubhrajyoti Datta wrote:
> The suspended flag is a flag holding the device's PM status.
> The runtime framework does that for us.
> Use pm_runtime_suspended call instead.
>
> Signed-off-by: Shubhrajyoti Datta
Applied to for-next,
When a gpio is used as an interrupt, the irq_type was not available for
device driver. It is not align with devicetree probing.
Signed-off-by: Christophe Ricard
---
drivers/gpio/gpiolib-acpi.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
Hi,
This serie only move from RFC to final. I am also adding gpio folks for
potential
feedback.
ACPI probing method does not retrieve irq_type from a gpio interrupt declared
with GpioInt as it is done with devicetree probing. In other terms,
irq_get_trigger_type
will always send back 0.
Those
> This serie only move from RFC to final. I am also adding gpio folks for
> potential
> feedback.
Why is this relevant for I2C?
signature.asc
Description: Digital signature
On Tue, Dec 01, 2015 at 01:35:54AM +0100, Wolfram Sang wrote:
> I didn't find any patch coming out of this? Mika, did I miss something?
The fix is included in the "intel-lpss: support for non-ACPI platforms"
series by Andy [1]. You and Kevin are both Cc'd.
https://lkml.org/lkml/2015/11/30/441
Hello,
On Mon, Nov 30, 2015 at 03:42:15AM +, Gao Pandy wrote:
> Ping...
The things I pointed out were fixed. I didn't test it, but the patch
looks reasonable. I'd say it's ready to cook in next until the merge
window opens next time.
If you want to interpret this as an Ack, feel free to do
smatch rightfully says:
drivers/i2c/busses/i2c-piix4.c:504 piix4_access warn: unused return: i = inb_p()
drivers/i2c/busses/i2c-piix4.c:537 piix4_access warn: unused return: i = inb_p()
Signed-off-by: Wolfram Sang
---
Christian, can you please check on HW? I could only
On Sun, Sep 27, 2015 at 04:57:08PM +0200, Hans de Goede wrote:
> According to the datasheets to n factor for dividing the tclk is
> 2 to the power n on Allwinner SoCs, not 2 to the power n + 1 as it is
> on other mv64xxx implementations.
>
> I've contacted Allwinner about this and they have
> /* get minimum of 7 MHz clock, but max of 12 MHz */
> - psc = (input_clock / 700) - 1;
> + psc = (input_clock / 1200) - 1;
Doesn't make this the above comment invalid?
signature.asc
Description: Digital signature
On Tue, Nov 24, 2015 at 08:43:27AM +0100, LABBE Corentin wrote:
> The simple_strtoul function is marked as obsolete.
> This patch replace it by kstrtou8.
>
> Reviewed-by: Jean Delvare
> Tested-by: Jean Delvare
> Signed-off-by: LABBE Corentin
Hi!
On 30.11.2015 14:55, EXT Wolfram Sang wrote:
>> /* get minimum of 7 MHz clock, but max of 12 MHz */
>> > - psc = (input_clock / 700) - 1;
>> > + psc = (input_clock / 1200) - 1;
> Doesn't make this the above comment invalid?
The comment refers to datasheet, not really to the
> The comment refers to datasheet, not really to the code. And eventual changes
> to the datasheet
> that's what can make it invalid (though I don't know TI's plans on it).
> Nevertheless, yes, I
> think, it's better to drop the comment. Should I re-spin the patch with
> comment removal in it?
On Thu, Nov 19, 2015 at 08:13:46PM +0100, Christian Fetzer wrote:
> This is an attempt to upstream the patches created by Thomas Brandon and
> Eddi De Pieri to support the multiplexed main SMBus interface on the SB800
> chipset.
>
On Fri, Nov 20, 2015 at 10:45 PM, Li Yang wrote:
> - if (IS_ERR(i2c_imx->pinctrl)) {
> + /* bailout on -ENOMEM or -EPROBE_DEFER, continue for other errors */
> + if (PTR_ERR(i2c_imx->pinctrl) == -ENOMEM ||
> + PTR_ERR(i2c_imx->pinctrl)
On Thu, Nov 19, 2015 at 04:56:40PM +0100, Wolfram Sang wrote:
> Hello RCar Fans!
>
> So, here is V3 of this series. After a debugging session with Laurent, we
> finally fixed his issue for good. It was not board dependent as we thought,
> but
> toolchain dependent! Hidden by a macro, the driver
On Wed, Nov 25, 2015 at 04:58:18PM +0100, Wolfram Sang wrote:
> Signed-off-by: Wolfram Sang
Applied to for-current, thanks!
signature.asc
Description: Digital signature
I2C controller used in Keystone SoC has an undocumented peculiarity which
results in SDA-SCL margins being dependent on module clock. Driving high
capacity bus near its limits can result in STOP condition sometimes being
understood as REPEATED-START by slaves (or NACK instead of ACK, etc...).
50 matches
Mail list logo