From patchwork Mon Nov 15 02:49:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Johnston X-Patchwork-Id: 12618595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 776C5C433F5 for ; Mon, 15 Nov 2021 02:50:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 58C1A61355 for ; Mon, 15 Nov 2021 02:50:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbhKOCwv (ORCPT ); Sun, 14 Nov 2021 21:52:51 -0500 Received: from pi.codeconstruct.com.au ([203.29.241.158]:51300 "EHLO codeconstruct.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbhKOCwj (ORCPT ); Sun, 14 Nov 2021 21:52:39 -0500 Received: by codeconstruct.com.au (Postfix, from userid 10001) id 97B3C2022C; Mon, 15 Nov 2021 10:49:40 +0800 (AWST) From: Matt Johnston Cc: Zev Weiss , Wolfram Sang , Rob Herring , "David S . Miller" , Jakub Kicinski , Brendan Higgins , Benjamin Herrenschmidt , Joel Stanley , Andrew Jeffery , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Jeremy Kerr , linux-i2c@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH net-next v3 0/6] MCTP I2C driver Date: Mon, 15 Nov 2021 10:49:20 +0800 Message-Id: <20211115024926.205385-1-matt@codeconstruct.com.au> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Hi, This patch series adds a netdev driver providing MCTP transport over I2C. It applies against net-next using recent MCTP changes there, though also has I2C core changes for review. I'll leave it to maintainers where it should be applied - please let me know if it needs to be submitted differently. The I2C patches were previously sent as RFC though the only feedback there was an ack to 255 bytes for aspeed. The dt-bindings patch went through review on the list. Cheers, Matt Signed-off-by: Matt Johnston --- v3: - Added Reviewed-bys for npcm7xx - Resend with net-next open v2: - Simpler Kconfig condition for i2c-mux dependency, from Randy Dunlap Matt Johnston (6): i2c: core: Allow 255 byte transfers for SMBus 3.x i2c: dev: Handle 255 byte blocks for i2c ioctl i2c: aspeed: Allow 255 byte block transfers i2c: npcm7xx: Allow 255 byte block SMBus transfers dt-bindings: net: New binding mctp-i2c-controller mctp i2c: MCTP I2C binding driver Documentation/devicetree/bindings/i2c/i2c.txt | 4 + .../bindings/net/mctp-i2c-controller.yaml | 92 ++ drivers/i2c/busses/i2c-aspeed.c | 5 +- drivers/i2c/busses/i2c-npcm7xx.c | 3 +- drivers/i2c/i2c-core-smbus.c | 20 +- drivers/i2c/i2c-dev.c | 93 +- drivers/net/mctp/Kconfig | 12 + drivers/net/mctp/Makefile | 1 + drivers/net/mctp/mctp-i2c.c | 982 ++++++++++++++++++ include/linux/i2c.h | 13 + include/uapi/linux/i2c-dev.h | 2 + include/uapi/linux/i2c.h | 7 +- 12 files changed, 1209 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/mctp-i2c-controller.yaml create mode 100644 drivers/net/mctp/mctp-i2c.c