Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2691045ybh; Mon, 16 Mar 2020 07:58:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuOTOe/l/MdqyOBjNn/YwVGwUBmzMNlIxWlOp1CPhR/B8XSqxjfgJayVkse9GJXmG4BQeVG X-Received: by 2002:aca:eac6:: with SMTP id i189mr1590174oih.4.1584370687742; Mon, 16 Mar 2020 07:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584370687; cv=none; d=google.com; s=arc-20160816; b=iNtChSuNx7ZKNpg4RZ4yd5UlWWqqhyl1CI1/JP2NJnjCiLezL+eQQSZS8GVnZz/Zj9 wpq4ob0Y7TolDpEpyHoRJnwUgR1rEm35JS1ulFRhZ9s4BWCgSaRqqbK9NM9Ck/9Mnnbt fyhdpR/nYnjPc542QehEXzNIOX6ziFCTHk/FonJXzscFEN7KfHpJxDPgjYT8D3l7X7w9 98H96vJ5w8/xpwDq7jxdEykvEGS7G8XAnclG8L55rrrRpWHEBX4/06tJYM+rMct1dhCT YJ2Mk6GE4spwy/zJjstNuQXGQRCRehMHhn114cdE1kyTGVAcbNpup2oT1FaGu1s1xLjs p5bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=Oj2z6Qh/SVKCOf5Op8azw0OzKMcWct/XKKn7iFnvEKI=; b=h1aQmVyW8V3GMw3awBBkEboEpfd12JQpCbqXyV7sjYPMAA4SOzhW3pK579Lm23oSq8 FXH4paIOp2vURoWSwjGcqqbT6zFeeosDIu1SDLVvAmOvgE2fpM7rJcEl4y2uBUrI+PHc 4rdLXAaADmA3hEZi4DGASTTYTW0k5lcjd8khgtl0pUrMsueB+zCjNTZi+NFS9sh8yy9/ aAtqX1ZhHyuPoPQeTkV3khZRCrFdZwbLQC3imanaoxxUfk9l0lmsvVXYXzLXUsHmMZ7A nBaIzTMPIg+riAmf+oUqem8F5yHtqt2x+V8G4V3PWRtjYGyAYLtbwow+3Sj4s7JywOiv TWrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 96si79007oty.198.2020.03.16.07.57.54; Mon, 16 Mar 2020 07:58:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731658AbgCPO5L (ORCPT + 99 others); Mon, 16 Mar 2020 10:57:11 -0400 Received: from mga12.intel.com ([192.55.52.136]:45629 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731539AbgCPO5L (ORCPT ); Mon, 16 Mar 2020 10:57:11 -0400 IronPort-SDR: ipCyzaCmqAz02j3yyM2ZZHTyHDMjVN0vJdQM++gaeYpN88Y4Xj3nh9Vy+uTSChBqfsOiBCTlm9 6l8nPxZuS++A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2020 07:57:11 -0700 IronPort-SDR: jlqNv9QCzBihFxCV578HUzN4uzrW32o3cZ6DFhRaarLtJnTE+O6LmjeB3NdA0biye4AsyAntqJ RQsX7kr6QAwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,560,1574150400"; d="scan'208";a="247479311" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006.jf.intel.com with ESMTP; 16 Mar 2020 07:57:09 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jDrB1-00A5mM-SB; Mon, 16 Mar 2020 16:57:11 +0200 Date: Mon, 16 Mar 2020 16:57:11 +0200 From: Andy Shevchenko To: Jarkko Nikula Cc: linux-kernel@vger.kernel.org, Lee Jones , Mika Westerberg Subject: Re: [PATCH] mfd: intel-lpss: Fix Intel Elkhart Lake LPSS I2C input clock Message-ID: <20200316145711.GO1922688@smile.fi.intel.com> References: <20200316143224.234432-1-jarkko.nikula@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200316143224.234432-1-jarkko.nikula@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 16, 2020 at 04:32:24PM +0200, Jarkko Nikula wrote: > Intel Elkhart Lake LPSS I2C has 100 MHz input clock instead of 133 MHz > that was our preliminary information. This will result slower I2C bus > clock when driver calculates its timing parameters in case ACPI tables > don't provide them. > > Slower I2C bus clock is allowed but let's fix this to match with > reality. > > While at it, keep the same default I2C device properties as Intel > Broxton since it is not known do they need any update. Reviewed-by: Andy Shevchenko Thanks! > > Signed-off-by: Jarkko Nikula > --- > For normal development cycle. > --- > drivers/mfd/intel-lpss-pci.c | 21 +++++++++++++-------- > 1 file changed, 13 insertions(+), 8 deletions(-) > > diff --git a/drivers/mfd/intel-lpss-pci.c b/drivers/mfd/intel-lpss-pci.c > index c40a6c7d0cf8..e48f00448551 100644 > --- a/drivers/mfd/intel-lpss-pci.c > +++ b/drivers/mfd/intel-lpss-pci.c > @@ -139,6 +139,11 @@ static const struct intel_lpss_platform_info cnl_i2c_info = { > .properties = spt_i2c_properties, > }; > > +static const struct intel_lpss_platform_info ehl_i2c_info = { > + .clk_rate = 100000000, > + .properties = bxt_i2c_properties, > +}; > + > static const struct pci_device_id intel_lpss_pci_ids[] = { > /* CML-LP */ > { PCI_VDEVICE(INTEL, 0x02a8), (kernel_ulong_t)&spt_uart_info }, > @@ -231,15 +236,15 @@ static const struct pci_device_id intel_lpss_pci_ids[] = { > { PCI_VDEVICE(INTEL, 0x4b2a), (kernel_ulong_t)&bxt_info }, > { PCI_VDEVICE(INTEL, 0x4b2b), (kernel_ulong_t)&bxt_info }, > { PCI_VDEVICE(INTEL, 0x4b37), (kernel_ulong_t)&bxt_info }, > - { PCI_VDEVICE(INTEL, 0x4b44), (kernel_ulong_t)&bxt_i2c_info }, > - { PCI_VDEVICE(INTEL, 0x4b45), (kernel_ulong_t)&bxt_i2c_info }, > - { PCI_VDEVICE(INTEL, 0x4b4b), (kernel_ulong_t)&bxt_i2c_info }, > - { PCI_VDEVICE(INTEL, 0x4b4c), (kernel_ulong_t)&bxt_i2c_info }, > + { PCI_VDEVICE(INTEL, 0x4b44), (kernel_ulong_t)&ehl_i2c_info }, > + { PCI_VDEVICE(INTEL, 0x4b45), (kernel_ulong_t)&ehl_i2c_info }, > + { PCI_VDEVICE(INTEL, 0x4b4b), (kernel_ulong_t)&ehl_i2c_info }, > + { PCI_VDEVICE(INTEL, 0x4b4c), (kernel_ulong_t)&ehl_i2c_info }, > { PCI_VDEVICE(INTEL, 0x4b4d), (kernel_ulong_t)&bxt_uart_info }, > - { PCI_VDEVICE(INTEL, 0x4b78), (kernel_ulong_t)&bxt_i2c_info }, > - { PCI_VDEVICE(INTEL, 0x4b79), (kernel_ulong_t)&bxt_i2c_info }, > - { PCI_VDEVICE(INTEL, 0x4b7a), (kernel_ulong_t)&bxt_i2c_info }, > - { PCI_VDEVICE(INTEL, 0x4b7b), (kernel_ulong_t)&bxt_i2c_info }, > + { PCI_VDEVICE(INTEL, 0x4b78), (kernel_ulong_t)&ehl_i2c_info }, > + { PCI_VDEVICE(INTEL, 0x4b79), (kernel_ulong_t)&ehl_i2c_info }, > + { PCI_VDEVICE(INTEL, 0x4b7a), (kernel_ulong_t)&ehl_i2c_info }, > + { PCI_VDEVICE(INTEL, 0x4b7b), (kernel_ulong_t)&ehl_i2c_info }, > /* JSL */ > { PCI_VDEVICE(INTEL, 0x4da8), (kernel_ulong_t)&spt_uart_info }, > { PCI_VDEVICE(INTEL, 0x4da9), (kernel_ulong_t)&spt_uart_info }, > -- > 2.25.1 > -- With Best Regards, Andy Shevchenko