lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aXOHm3tasb_yq7hq@smile.fi.intel.com>
Date: Fri, 23 Jan 2026 16:37:15 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Benoît Monin <benoit.monin@...tlin.com>
Cc: Andi Shyti <andi.shyti@...nel.org>,
	Mika Westerberg <mika.westerberg@...ux.intel.com>,
	Jan Dabros <jsd@...ihalf.com>,
	Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
	Clark Williams <clrkwllms@...nel.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
	Gregory CLEMENT <gregory.clement@...tlin.com>,
	Théo Lebrun <theo.lebrun@...tlin.com>,
	Tawfik Bayouk <tawfik.bayouk@...ileye.com>,
	Vladimir Kondratiev <vladimir.kondratiev@...ileye.com>,
	Dmitry Guzman <dmitry.guzman@...ileye.com>,
	linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
	linux-rt-devel@...ts.linux.dev
Subject: Re: [PATCH v5 4/6] i2c: designware: Implement I2C_M_STOP support

On Fri, Jan 23, 2026 at 03:25:24PM +0100, Benoît Monin wrote:
> On Thursday, 22 January 2026 at 17:25:58 CET, Andy Shevchenko wrote:
> > On Tue, Jan 20, 2026 at 10:28:04AM +0100, Benoît Monin wrote:
> > > Add the support of the I2C_M_STOP flag in i2c_msg by splitting
> > > i2c_dw_xfer() in two: __i2c_dw_xfer_one_part() for the core transfer logic
> > > and i2c_dw_xfer() for handling the high-level transaction management.
> > > 
> > > In detail __i2c_dw_xfer_one_part() starts a transaction and wait for its
> > > completion, either with a STOP on the bus or an error. i2c_dw_xfer()
> > > loops over the messages to search for the I2C_M_STOP flag and calls
> > > __i2c_dw_xfer_one_part() for each part of the messages up to a STOP or
> > > the end of the messages array.
> > > 
> > > i2c_dw_xfer() takes care of runtime PM and holds the hardware lock on
> > > the bus while calling __i2c_dw_xfer_one_part(), this allows grouping
> > > multiple accesses to device that support a STOP in a transaction when
> > > done via i2c_dev I2C_RDWR ioctl.
> > 
> > Does i2c-tools support this. I.o.w. can you put an example of user space call
> > to achieve the above?
> > 
> I posted a patch series for i2c-tools, adding support for message modifier
> flags including I2C_M_STOP to i2ctransfer:
> https://lore.kernel.org/all/20251223-msg-flags-v2-0-8d934a4366e2@bootlin.com/
> 
> I am working on version 3, following Jean and Wolfram's reviews.

Thanks, it would be nice to have this being mentioned in the commit message
that the user space tools are going to support this in near future.

-- 
With Best Regards,
Andy Shevchenko



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ