Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3080693yba; Mon, 22 Apr 2019 19:28:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpRM7jS5OZIJSrCQIV5MT9YVpxUWMFP6by9DJrKe0xvP9oZoSOLsITKEhDSsRoDobVDQyn X-Received: by 2002:a63:ff26:: with SMTP id k38mr22214708pgi.123.1555986496145; Mon, 22 Apr 2019 19:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555986496; cv=none; d=google.com; s=arc-20160816; b=JB+Q1MHZGj6b1mjSlE2WLK0LcpU9tTnIQ/OivINRO3g/+zUgihlw9vpF213CO/JaSY bhEakOAd719YGmMfRtAX9lkezZfHAA0Vz5WfLTYOO+UlIKaGtCwFcRuPHgEBHZvA7K1Y 7KF4uo5edb5ZItA/KVle2J6gA/LJqnMPsMboejDARU4ASmNHsbYs2IOoQTxuUGfpOfbh Ww98VYkmrxQOFDdqS4d2zXn1+MhJk1kPraNfv1rimOYUVTbthipFNULX/ExkNIVxJZoZ CJuCg20uRpDhhDidC5oXoNCTt4k5odDnx9CSFD3cPrGMCvvEwnVXkKGngmpYDRkRYAsA sUMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=S2tdKaekMP9i4BjLCCj3FdTiF5GoBNLUOH0Oe8bD0vw=; b=L0JE2SHTIMu6zhjTaGXvDQ9TfizZ3/Wn3RnfzWydJwBe4jhQ3SRa4MG5HrVHGUYB5z TuBVveXlQ6I0bod87uHPQ5sUri1QE71ANkDVQgcLpiSFDBoEGTwIeSdhMAE/F91ok5X6 X8NYDaU1+cyFz2WQLK/OpgNKpRkzCASOIFPjPD55faZ8LQuomCUV/UfpboWh7uyWAj9K dq8dW9gZm8xYEOdHsiD6VtRQW69nGsTjXGKyrgX3bCfz6x6PZAYG5qlbgQxzcALZIVSK qqnicYx+d1EFESxHmHX+ihcYypwL1mbGS6l/1GVYuavO+puPyGy0H7ciHfWAPxCnyMpa Ptiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AQxRaesY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si14275962plt.28.2019.04.22.19.28.00; Mon, 22 Apr 2019 19:28:16 -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; dkim=pass header.i=@kernel.org header.s=default header.b=AQxRaesY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732095AbfDVUDL (ORCPT + 99 others); Mon, 22 Apr 2019 16:03:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:48252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729924AbfDVTqK (ORCPT ); Mon, 22 Apr 2019 15:46:10 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CEAA221901; Mon, 22 Apr 2019 19:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555962368; bh=OAaFAuNkgC2l4stkjajlEQZj4l9F0xF6hkj5KC0paQo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AQxRaesY7UcokPwVPral7QRulCRrSF/WmPI/dHZ/PWu57e57Y1QE52gtzZC03T7ME 8vQqxhgfteDEAvISO4o7TmbCmj5yOtiZTAoEgRMzPbbx/XppLsAxK4A49PEow5V7rG xPB319kVLBLaruBznpTgTJFXq+YuL22C7Rt422KQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jarkko Nikula , Wolfram Sang , Sasha Levin , linux-i2c@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 26/68] i2c: i801: Add support for Intel Comet Lake Date: Mon, 22 Apr 2019 15:44:34 -0400 Message-Id: <20190422194516.11634-26-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190422194516.11634-1-sashal@kernel.org> References: <20190422194516.11634-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jarkko Nikula [ Upstream commit 5cd1c56c42beb6d228cc8d4373fdc5f5ec78a5ad ] Add PCI ID for Intel Comet Lake PCH. Signed-off-by: Jarkko Nikula Reviewed-by: Jean Delvare Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin (Microsoft) --- Documentation/i2c/busses/i2c-i801 | 1 + drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-i801.c | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/Documentation/i2c/busses/i2c-i801 b/Documentation/i2c/busses/i2c-i801 index d1ee484a787d..ee9984f35868 100644 --- a/Documentation/i2c/busses/i2c-i801 +++ b/Documentation/i2c/busses/i2c-i801 @@ -36,6 +36,7 @@ Supported adapters: * Intel Cannon Lake (PCH) * Intel Cedar Fork (PCH) * Intel Ice Lake (PCH) + * Intel Comet Lake (PCH) Datasheets: Publicly available at the Intel website On Intel Patsburg and later chipsets, both the normal host SMBus controller diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index ac4b09642f63..8f803812ea24 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -131,6 +131,7 @@ config I2C_I801 Cannon Lake (PCH) Cedar Fork (PCH) Ice Lake (PCH) + Comet Lake (PCH) This driver can also be built as a module. If so, the module will be called i2c-i801. diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index c91e145ef5a5..679c6c41f64b 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -71,6 +71,7 @@ * Cannon Lake-LP (PCH) 0x9da3 32 hard yes yes yes * Cedar Fork (PCH) 0x18df 32 hard yes yes yes * Ice Lake-LP (PCH) 0x34a3 32 hard yes yes yes + * Comet Lake (PCH) 0x02a3 32 hard yes yes yes * * Features supported by this driver: * Software PEC no @@ -240,6 +241,7 @@ #define PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS 0xa223 #define PCI_DEVICE_ID_INTEL_KABYLAKE_PCH_H_SMBUS 0xa2a3 #define PCI_DEVICE_ID_INTEL_CANNONLAKE_H_SMBUS 0xa323 +#define PCI_DEVICE_ID_INTEL_COMETLAKE_SMBUS 0x02a3 struct i801_mux_config { char *gpio_chip; @@ -1038,6 +1040,7 @@ static const struct pci_device_id i801_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CANNONLAKE_H_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CANNONLAKE_LP_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICELAKE_LP_SMBUS) }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_COMETLAKE_SMBUS) }, { 0, } }; @@ -1534,6 +1537,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) case PCI_DEVICE_ID_INTEL_DNV_SMBUS: case PCI_DEVICE_ID_INTEL_KABYLAKE_PCH_H_SMBUS: case PCI_DEVICE_ID_INTEL_ICELAKE_LP_SMBUS: + case PCI_DEVICE_ID_INTEL_COMETLAKE_SMBUS: priv->features |= FEATURE_I2C_BLOCK_READ; priv->features |= FEATURE_IRQ; priv->features |= FEATURE_SMBUS_PEC; -- 2.19.1