From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2E0E2FD7D3; Tue, 14 Jul 2026 08:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.200.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784018082; cv=none; b=O3mJeiqqW5DvV4sHgr68sABf4mAzbqSW/A4FSI1Bijb9BD1RDKc8QtlRjKowiLGfNOSrZ9pJ4jnitUmrM5WMJtZTzmZK6odQYBpAXVuFKx2oc9Os6LiDrvsHrtUVTHm5yrX3Q3Qb7br7/Z4y2Qlr5qXA4zRo0GdXRinW8PSDD84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784018082; c=relaxed/simple; bh=nAw5WXfDYrIiKxb6xntrpoofY6Sl50zOilEzOa/JhTY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I2NLhr6H17mhUW2VYN6CWK211VonSMNqsE9+GlRHUsIa7u9SbamnaJ0ttvNRnjPPbOdf4Zy6Yqt9PMCOwGLssjpFBh/gNnc59zlVzaStXlFQu8L3nymn/gFocFLolkO0caG+T1owj4+lqppVvTyMjiXDnPPEehHowA896UJSHr8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.200.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de (drehscheibe.grey.stw.pengutronix.de [IPv6:2a0a:edc0:0:c01:1d::a2]) (Authenticated sender: relay-from-drehscheibe.grey.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 4D672201A03; Tue, 14 Jul 2026 10:34:27 +0200 (CEST) Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wjYax-001k2o-0k; Tue, 14 Jul 2026 10:34:27 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1wjYax-000000092BP-0TJa; Tue, 14 Jul 2026 10:34:27 +0200 Date: Tue, 14 Jul 2026 10:34:27 +0200 From: Oleksij Rempel To: Jonas Jelonek Cc: Kory Maincent , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Golle , =?utf-8?B?QmrDuHJu?= Mork Subject: Re: [PATCH net-next v7 3/4] net: pse-pd: realtek-pse-mcu: add I2C transport Message-ID: References: <20260712192251.1413279-1-jelonek.jonas@gmail.com> <20260712192251.1413279-4-jelonek.jonas@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260712192251.1413279-4-jelonek.jonas@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain On Sun, Jul 12, 2026 at 07:22:49PM +0000, Jonas Jelonek wrote: > Add the I2C/SMBus transport for the Realtek PSE MCU core. It registers > the MCU on an I2C bus and provides the send/recv callbacks the core > uses to exchange the 12-byte frames. > > The MCU firmware expects one of two framings on the I2C bus, and which one > is part of the compatible: '-smbus' (reads carry a leading command byte > and a repeated start) or raw '-i2c' (bare block writes and reads). The > match data flags the raw-I2C case; SMBus is the default because that's > what the majority of devices uses. > > Because i2c_master_send()/i2c_master_recv() may DMA, the raw-I2C path > bounces each frame through a heap buffer rather than the core's stack > buffers; the SMBus path is unaffected. > > Signed-off-by: Jonas Jelonek Acked-by: Oleksij Rempel Thank you! -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |