From patchwork Fri May 18 10:20:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 10409419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6C56602C2 for ; Fri, 18 May 2018 10:21:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A668D288F7 for ; Fri, 18 May 2018 10:21:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9AFF228904; Fri, 18 May 2018 10:21:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10581288F7 for ; Fri, 18 May 2018 10:21:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbeERKVE (ORCPT ); Fri, 18 May 2018 06:21:04 -0400 Received: from mga17.intel.com ([192.55.52.151]:22792 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751581AbeERKVD (ORCPT ); Fri, 18 May 2018 06:21:03 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 May 2018 03:21:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,414,1520924400"; d="scan'208";a="229718350" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga006.fm.intel.com with ESMTP; 18 May 2018 03:20:59 -0700 Message-ID: Subject: Re: [BUG] i2c-hid: ELAN Touchpad does not work on ASUS X580GD From: Andy Shevchenko To: Hans de Goede , Jarkko Nikula , Chris Chiu Cc: Daniel Drake , Jian-Hong Pan , Jiri Kosina , Benjamin Tissoires , Jani Nikula , Dmitry Torokhov , Adrian Salido , Jason Gerecke , linux-input , Mika Westerberg , Wolfram Sang , linux-i2c@vger.kernel.org, Linux Kernel , Linux Upstreaming Team Date: Fri, 18 May 2018 13:20:58 +0300 In-Reply-To: <822d5f47cad46ca308d511f7f24cdbc5f4af38b9.camel@linux.intel.com> References: <7728da79-8a7a-b87d-d09c-b36978b3032e@linux.intel.com> <822d5f47cad46ca308d511f7f24cdbc5f4af38b9.camel@linux.intel.com> Organization: Intel Finland Oy X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Fri, 2018-05-18 at 11:37 +0300, Andy Shevchenko wrote: > On Fri, 2018-05-18 at 09:48 +0200, Hans de Goede wrote: > > > > Could it be the i2c input clock definition in drivers/mfd/intel- > > lpss- > > pci.c > > is also wrong for Apollo Lake (N3450) ? There are lots of people > > having > > various issues with i2c attached touchpads on Apollo Lake devices, > > this bug: > > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1728244 > > > > Is sort of a collection bug for these. Various models laptops, lots > > of > > reporters. Note not sure thie is an i2c-designware issue, but it > > would > > be good to double check the input clock on Apollo Lake. > > > > I've checked the datasheet and the datasheet mentions 133MHz as > > "serial input clk" in the lpio_bxt_regs Registers Summary, which is > > also part of the LPSS, no clk is mentioned in the "Summary of > > DW_apb_i2c_mem_map_DW_apb_i2c_addr_block1 Registers". > > The internal datasheet we have access to mentioned in this case for > Broxton and Cannonlake together. So, your assumption might be quite > close to the truth and the issue is inherited from Broxton. > Hans, can your reporters try the following patch? Depending on the result I may send it out ASAP. --- a/drivers/mfd/intel-lpss-pci.c +++ b/drivers/mfd/intel-lpss-pci.c @@ -120,7 +120,7 @@ static struct property_entry apl_i2c_properties[] = { }; static const struct intel_lpss_platform_info apl_i2c_info = { - .clk_rate = 133000000, + .clk_rate = 216000000, .properties = apl_i2c_properties, };