Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1247718 > unrolled thread

Re: [PATCH] i2c: designware: Do not use parameters from ACPI on Dell Inspiron 7348

Started byWolfram Sang <wsa@the-dreams.de>
First post2015-10-15 13:50 +0200
Last post2015-10-17 18:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] i2c: designware: Do not use parameters from ACPI on Dell  Inspiron 7348 Wolfram Sang <wsa@the-dreams.de> - 2015-10-15 13:50 +0200
    Re: [PATCH] i2c: designware: Do not use parameters from ACPI on Dell  Inspiron 7348 Pavel Roskin <plroskin@gmail.com> - 2015-10-17 18:30 +0200

#1247718 — Re: [PATCH] i2c: designware: Do not use parameters from ACPI on Dell Inspiron 7348

FromWolfram Sang <wsa@the-dreams.de>
Date2015-10-15 13:50 +0200
SubjectRe: [PATCH] i2c: designware: Do not use parameters from ACPI on Dell Inspiron 7348
Message-ID<qjPcK-5ko-17@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Thu, Sep 24, 2015 at 12:06:54PM +0300, Mika Westerberg wrote:
> ACPI SSCN/FMCN methods were originally added because then the platform can
> provide the most accurate HCNT/LCNT values to the driver. However, this
> seems not to be true for Dell Inspiron 7348 where using these causes the
> touchpad to fail in boot:
> 
>   i2c_hid i2c-DLL0675:00: failed to retrieve report from device.
>   i2c_designware INT3433:00: i2c_dw_handle_tx_abort: lost arbitration
>   i2c_hid i2c-DLL0675:00: failed to retrieve report from device.
>   i2c_designware INT3433:00: controller timed out
> 
> The values received from ACPI are (in fast mode):
> 
>   HCNT: 72
>   LCNT: 160
> 
> this translates to following timings (input clock is 100MHz on Broadwell):
> 
>   tHIGH: 720 ns (spec min 600 ns)
>   tLOW: 1600 ns (spec min 1300 ns)
>   Bus period: 2920 ns (assuming 300 ns tf and tr)
>   Bus speed: 342.5 kHz
> 
> Both tHIGH and tLOW are within the I2C specification.
> 
> The calculated values when ACPI parameters are not used are (in fast mode):
> 
>   HCNT: 87
>   LCNT: 159
> 
> which translates to:
> 
>   tHIGH: 870 ns (spec min 600 ns)
>   tLOW: 1590 ns (spec min 1300 ns)
>   Bus period 3060 ns (assuming 300 ns tf and tr)
>   Bus speed 326.8 kHz
> 
> These values are also within the I2C specification.
> 
> Since both ACPI and calculated values meet the I2C specification timing
> requirements it is hard to say why the touchpad does not function properly
> with the ACPI values except that the bus speed is higher in this case (but
> still well below the max 400kHz).
> 
> Solve this by adding DMI quirk to the driver that disables using ACPI
> parameters on this particulare machine.
> 
> Reported-by: Pavel Roskin <plroskin@gmail.com>
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>

Pavel, have you tested this patch?

[toc] | [next] | [standalone]


#1249354

FromPavel Roskin <plroskin@gmail.com>
Date2015-10-17 18:30 +0200
Message-ID<qkCwN-2Pq-7@gated-at.bofh.it>
In reply to#1247718
Yes, I've tested the patch extensively. It's working fine for me.

Pavel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web