From: Mika Westerberg <mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: Pavel Roskin <plroskin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Romain Baeriswyl
<Romain.Baeriswyl-ux6zf3SgZrrQT0dZR+AlfA@public.gmane.org>,
jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Subject: Re: Fix for Dell P57G touchpad found, need advice on patch
Date: Thu, 17 Sep 2015 12:32:39 +0300 [thread overview]
Message-ID: <20150917093239.GH1536@lahna.fi.intel.com> (raw)
In-Reply-To: <20150916084039.GC1536-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
On Wed, Sep 16, 2015 at 11:40:39AM +0300, Mika Westerberg wrote:
> Can you send me acpidump of that machine (or contents of
> /sys/firmware/acpi/tables/DSDT)? It may be that the ACPI I2cSerialBus
> connector actually has 100kHz there - we just don't use it currently.
Thanks for the DSDT.
All touchpads seem to have 400kHz set in their I2cSerialBus connectors :-(
Can you try the below patch and see if it changes anything? One suspect
is that instead of running wrong frequency, timings for fast mode are
not correct. The below patch will force the driver to use calculated
ones (based on the DW I2C datasheet).
Please also attach dmesg from the test run.
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index 3dd2de31a2f8..3ef19477e37e 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -91,6 +91,15 @@ static int dw_i2c_acpi_configure(struct platform_device *pdev)
dw_i2c_acpi_params(pdev, "FMCN", &dev->fs_hcnt, &dev->fs_lcnt,
&dev->sda_hold_time);
+ dev_info(&pdev->dev, "ACPI SSCN %u:%u\n", dev->ss_hcnt, dev->ss_lcnt);
+ dev_info(&pdev->dev, "ACPI FMCN %u:%u\n", dev->fs_hcnt, dev->fs_lcnt);
+ dev_info(&pdev->dev, "ACPI SDA hold %u\n", dev->sda_hold_time);
+
+ /* Use defaults */
+ dev->ss_hcnt = dev->ss_lcnt = 0;
+ dev->fs_hcnt = dev->fs_lcnt = 0;
+ dev->sda_hold_time = 0;
+
/*
* Provide a way for Designware I2C host controllers that are not
* based on Intel LPSS to specify their input clock frequency via
prev parent reply other threads:[~2015-09-17 9:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-11 6:11 Fix for Dell P57G touchpad found, need advice on patch Pavel Roskin
[not found] ` <CAN_72e1BBk_s1BRBHJYuA7+2nbfYf1bCoD9fqatmTxRM_w=myg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-15 16:42 ` Wolfram Sang
2015-09-15 17:11 ` Wolfram Sang
2015-09-16 8:40 ` Mika Westerberg
[not found] ` <20150916084039.GC1536-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2015-09-17 9:32 ` Mika Westerberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150917093239.GH1536@lahna.fi.intel.com \
--to=mika.westerberg-vuqaysv1563yd54fqh9/ca@public.gmane.org \
--cc=Romain.Baeriswyl-ux6zf3SgZrrQT0dZR+AlfA@public.gmane.org \
--cc=jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=plroskin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).