From patchwork Mon Nov 1 09:03:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Johnston X-Patchwork-Id: 1549041 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HjRtT08v4z9sX3 for ; Mon, 1 Nov 2021 20:04:32 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbhKAJHD (ORCPT ); Mon, 1 Nov 2021 05:07:03 -0400 Received: from pi.codeconstruct.com.au ([203.29.241.158]:44034 "EHLO codeconstruct.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbhKAJHD (ORCPT ); Mon, 1 Nov 2021 05:07:03 -0400 Received: by codeconstruct.com.au (Postfix, from userid 10001) id 556962022E; Mon, 1 Nov 2021 17:04:28 +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 0/6] MCTP I2C driver Date: Mon, 1 Nov 2021 17:03:59 +0800 Message-Id: <20211101090405.1405987-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: linux-i2c@vger.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 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