Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp301018ybm; Thu, 28 May 2020 03:09:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJiujCcodavMOYqHDD6NjUePfMPRyzGQwRYFFaLuLu41UTpVf8sKU5FPw93t23MgDz32h+ X-Received: by 2002:a17:906:651:: with SMTP id t17mr2374896ejb.394.1590660543732; Thu, 28 May 2020 03:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590660543; cv=none; d=google.com; s=arc-20160816; b=y8Ti3vKRa5o1TlyOQkJ8YKnC81WUbLQ3+KK4/ElEZyR+UGso9O5x1dMKt1W4uETn0s JqGbC3xpC28TuTdPdjsrn4EjRTFN9SrWZvXF5Fbgz0uZ2DBimiUJdTlpMaP8nNxLaiAn CSU+2P0ThJRGMb4kTkm+WdJC4aUvDzmTqRvX7o+d2Jn8GXXHhavu7ZPJWZ2UHD4ptBBR 7SKKmMCoNo67/+NVpRa76emn/ugx6ifQJbE2/14jfSTAFATVVsrzMgJVXi89A4d+kgIF UhwhXpmPjoLVZ24G1PYZINJnLSpalmYZRA4BFPLxSGrxKphdeh6AGXvuo1RvUhhADVGd 6hQA== 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=uurtEgh2RDliOJhMOYEynavwPH9BZw9HPNX24ey7VpQ=; b=wY4sDKnLnU+fX2cXSMdcoP0q6idx5UaiXMuovSi2sm8dLTAeQmYfrxO6IurTEPJW7c BfKsvRf5F61BHgcIhFWzeiWz+rwKlKYCj/fFdeDdQ1JeqFeXzIrAl98QsHpwjXcSfMm5 GPLH39BKWbv3DiNMfCQCYxZxBr3fsX7yxU6DTPROWvScPN2mEKTcb0Z0GlkNOqixSKFN ebUmgO+ed5eRXyMmepBzPuCnfNzIDXuUqSCoBRFQMeBXtbumk2P3b/Bar2X/n5iYyzS8 4T+UPYujz24tMZ1f4IH+zvAusXZyDeBLwUArDdSa1GBvLo3uAN2ve9bgTNkNHqhqdihj PKqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id s24si2500743edx.192.2020.05.28.03.08.40; Thu, 28 May 2020 03:09:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2387720AbgE1KGj (ORCPT + 99 others); Thu, 28 May 2020 06:06:39 -0400 Received: from mga03.intel.com ([134.134.136.65]:6225 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387706AbgE1KGg (ORCPT ); Thu, 28 May 2020 06:06:36 -0400 IronPort-SDR: E06La9BxAu65vz/ApsD0ZMw8/L+savWliUpSXTupIXts+Na4uV3KNJ9a2zJtAV/+bhyQDdRZFc enfXGNHM426Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 03:06:35 -0700 IronPort-SDR: AN2/jzQ5CBTrxQLBA8tjjMQka8qHDC7uGh+gVH3nlbqGnxJHhnsuXSoVGQNX6eOlmvWlM1b1D6 Yya/j8512gZg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,444,1583222400"; d="scan'208";a="267165215" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003.jf.intel.com with ESMTP; 28 May 2020 03:06:32 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jeFQp-009PBt-1u; Thu, 28 May 2020 13:06:35 +0300 Date: Thu, 28 May 2020 13:06:35 +0300 From: Andy Shevchenko To: Serge Semin Cc: Jarkko Nikula , Wolfram Sang , Mika Westerberg , Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Rob Herring , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 07/11] i2c: designware: Discard Cherry Trail model flag Message-ID: <20200528100635.GH1634618@smile.fi.intel.com> References: <20200528093322.23553-1-Sergey.Semin@baikalelectronics.ru> <20200528093322.23553-8-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528093322.23553-8-Sergey.Semin@baikalelectronics.ru> 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 Thu, May 28, 2020 at 12:33:17PM +0300, Serge Semin wrote: > A PM workaround activated by the flag MODEL_CHERRYTRAIL has been removed > since commit 9cbeeca05049 ("i2c: designware: Remove Cherry Trail PMIC I2C > bus pm_disabled workaround"), but the flag most likely by mistake has been > left in the Dw I2C drivers. Let's remove it. Since MODEL_MSCC_OCELOT is > the only model-flag left, redefine it to be 0x100 so setting a very first > bit in the MODEL_MASK bits range. Reviewed-by: Andy Shevchenko Conditionally, in case Wolfram and Jarkko are fine with shuffling model defines, which I consider an unneeded churn. > Signed-off-by: Serge Semin > Acked-by: Jarkko Nikula > Cc: Alexey Malahov > Cc: Thomas Bogendoerfer > Cc: Rob Herring > Cc: linux-mips@vger.kernel.org > Cc: devicetree@vger.kernel.org > > --- > > Changelog v3: > - Since MSCC and Baikal-T1 will be a part of the platform driver code, we > have to preserve the MODEL_MASK macro to use it to filter the model > flags during the IP-specific quirks activation. > --- > drivers/i2c/busses/i2c-designware-core.h | 3 +-- > drivers/i2c/busses/i2c-designware-pcidrv.c | 1 - > drivers/i2c/busses/i2c-designware-platdrv.c | 2 +- > 3 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-designware-core.h b/drivers/i2c/busses/i2c-designware-core.h > index 150de5e5c31b..b9ef9b0deef0 100644 > --- a/drivers/i2c/busses/i2c-designware-core.h > +++ b/drivers/i2c/busses/i2c-designware-core.h > @@ -289,8 +289,7 @@ struct dw_i2c_dev { > #define ACCESS_INTR_MASK 0x00000004 > #define ACCESS_NO_IRQ_SUSPEND 0x00000008 > > -#define MODEL_CHERRYTRAIL 0x00000100 > -#define MODEL_MSCC_OCELOT 0x00000200 > +#define MODEL_MSCC_OCELOT 0x00000100 > #define MODEL_MASK 0x00000f00 > > u32 dw_readl(struct dw_i2c_dev *dev, int offset); > diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c > index 11a5e4751eab..947c096f86e3 100644 > --- a/drivers/i2c/busses/i2c-designware-pcidrv.c > +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c > @@ -149,7 +149,6 @@ static struct dw_pci_controller dw_pci_controllers[] = { > }, > [cherrytrail] = { > .bus_num = -1, > - .flags = MODEL_CHERRYTRAIL, > .scl_sda_cfg = &byt_config, > }, > [elkhartlake] = { > diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c > index f6d2c96e35ce..ca057aa9eac4 100644 > --- a/drivers/i2c/busses/i2c-designware-platdrv.c > +++ b/drivers/i2c/busses/i2c-designware-platdrv.c > @@ -44,7 +44,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = { > { "INT3432", 0 }, > { "INT3433", 0 }, > { "80860F41", ACCESS_NO_IRQ_SUSPEND }, > - { "808622C1", ACCESS_NO_IRQ_SUSPEND | MODEL_CHERRYTRAIL }, > + { "808622C1", ACCESS_NO_IRQ_SUSPEND }, > { "AMD0010", ACCESS_INTR_MASK }, > { "AMDI0010", ACCESS_INTR_MASK }, > { "AMDI0510", 0 }, > -- > 2.26.2 > -- With Best Regards, Andy Shevchenko