Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp449119pxf; Thu, 18 Mar 2021 04:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWRRr9xR67a0x7TjtU2Oqhoc8LQwSkMRYxXT29pqLjra6KUIXaSX3sUOunZ23DdA9AILG7 X-Received: by 2002:a05:6402:312b:: with SMTP id dd11mr3052138edb.149.1616067449534; Thu, 18 Mar 2021 04:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616067449; cv=none; d=google.com; s=arc-20160816; b=DI/T0yRV78U/c/4vhBOHElOkTEI3K7d6JEibRowDrKZNW7/mtkVHmvhoy5jgz3yQt6 5rVQ+zlIfzOdYZNQC3K193pegURWxocfiZp52EEAMcFkKY1g6LNbGEz1CQ7a6glKNeER CI9aXBLM9rlX+aa1mtZJ+FB62iOAMZDyoIhfZL46bsTDWsZKvEBpFWQEqe98Sc4jxGnD SNe2Wa/4uTKFSDdxqMZwfvMdequsUMCU/zvUDW4F7PnZ7tdB+O0NUtcS34agBJl4i3zc WMnDlAnT/gAG8FmAbjHy6gI+3qScgUuj7LeX7ZBgbpMIsf1q160nPj78VL/QeCGInDNg IYhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QuXdB0GdqO4BnsTCFHrXbHK1kiPEGNByXci53YebJWY=; b=ez8IDEDWsQWZl10MiaTT4zvACGpX6b7xBIDcDZXY0ilNyj451myooZ7RlrVnGi87xr 2Yi/7s4UGNEBWMAz/XAuIccFzgv5DUHRFJA2/n3VqCJjJL2MOL2TFIH35mQLzORldEQh EYo+CDN7XSYI8X/m+TnbLPfqCvY1quXt6Bhp0GiI9ohTOjUGC9fsZgAPsfCF+ocwC8Sl /dP3m6SEpnRUS1gZlePpjpMvMi6eeQOymxybQALz9HnhFnI5LKYXQ5/ZnpQn1DLFzVLe fMhKSkeb+9t6lFDnMfBdFYFftXtLJNX/T5ezltadwS8zW9UVulo/qQ4VjF4ssnQSPK3X O1YQ== 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=REJECT sp=NONE dis=NONE) header.from=bme.hu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si1336466edw.458.2021.03.18.04.37.06; Thu, 18 Mar 2021 04:37:29 -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=REJECT sp=NONE dis=NONE) header.from=bme.hu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230118AbhCRLgL (ORCPT + 99 others); Thu, 18 Mar 2021 07:36:11 -0400 Received: from mail.sch.bme.hu ([152.66.249.140]:15944 "EHLO mail.sch.bme.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbhCRLfw (ORCPT ); Thu, 18 Mar 2021 07:35:52 -0400 Received: from Exchange2016-1.sch.bme.hu (152.66.249.140) by Exchange2016-1.sch.bme.hu (152.66.249.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.2; Thu, 18 Mar 2021 12:35:46 +0100 Received: from Cognitio.sch.bme.hu (152.66.211.220) by Exchange2016-1.sch.bme.hu (152.66.249.140) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 18 Mar 2021 12:35:46 +0100 From: =?UTF-8?q?Bence=20Cs=C3=B3k=C3=A1s?= To: CC: =?UTF-8?q?Bence=20Cs=C3=B3k=C3=A1s?= , Subject: [PATCH v3 0/2] Add i2c-cp2615 Date: Thu, 18 Mar 2021 11:52:08 +0000 Message-ID: <20210318115210.2014204-1-bence98@sch.bme.hu> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For a hardware project, I need the I2C master of SiLabs' CP2615 chip to be visible from under Linux. This patchset adds i2c-cp2615, a driver which sets up an i2c_adapter for said chip. Changes in v3: * Fixed SPDX header * Added I2C_AQ_NO_REP_START adapter quirk to i2c.h * Added I2C_AQ_NO_ZERO_LEN | I2C_AQ_NO_REP_START to CP2615's quirk flags * Made the driver only bind to the IOP interface * Return -ENXIO instead of -ECOMM when the device does not ACK * Formatting, fix almost all warnings and checks from `checkpatch --strict` * CamelCase checks remain. These identifiers were taken from SiLabs' Application Note, I thought it made sense to preserve these as-is. Bence Csókás (2): i2c: Add I2C_AQ_NO_REP_START adapter quirk Adding i2c-cp2615: i2c support for Silicon Labs' CP2615 Digital Audio Bridge drivers/i2c/busses/Kconfig | 10 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-cp2615.c | 279 ++++++++++++++++++++++++++++++++ include/linux/i2c.h | 2 + 4 files changed, 292 insertions(+) create mode 100644 drivers/i2c/busses/i2c-cp2615.c -- 2.31.0