Linux-i3c Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v8 0/7] I3C mastership handover support
@ 2020-05-31  7:11 Parshuram Thombare
  2020-05-31  7:11 ` [PATCH v8 1/7] i3c: master: master initialization flow document Parshuram Thombare
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Parshuram Thombare @ 2020-05-31  7:11 UTC (permalink / raw)
  To: bbrezillon, vitor.soares
  Cc: mparab, Parshuram Thombare, praneeth, linux-kernel, pgaj, linux-i3c

Main changes between v7 and v8 are:
- Document format changed from table to DOT diagram
- Appropriate names for few functions
- Moved mastership request process entirely to the driver
- Reuse of i3c_master_add_i3c_dev_locked in core defslvs
  processing

Main changes between v6 and v7 are:
- Added separate functions for main and secondary
  master initialization
- Secondary master initialization don't wait for
  DEFSLSVS.
- Change to use I2C device information from DTS,
  and corresponding changes in controller driver
  and I3C core DEFSLVS processing to ignore I2C
  devices received in DEFSLVS
- Reverted bus_init split
- Fixed formatting issues in document

Main changes between v5 and v6 are:
- Moved populate_bus() hook to master subsystem code.
- For secondary master initialization i3c_master_register
  spawan separate threads, as secondary master may have to
  wait for DEFSLVS and bus mastership.
- Populate bus info is based on DEFSLVS data and take care
  of hot plugged / unplugged I3C devices.
- Split bus_init into bus_init and master_set_info callbacks
- Moved mastership aquire and handover to separate state 
  machines.
- Added DEFSLVS processing code.
- Moved back all locks in side the subsystem code.
- Secondary mastership support to Cadence I3C master
  controller driver
- Sysfs key 'i3c_acquire_bus' to acauire bus.
- NULL check for pool pointer in i3c_generic_ibi_free_pool.

Main changes between v4 and v5 are:
- Add populate_bus() hook
- Split i3c_master_register into init and register pair
- Split device information retrieval, let add partialy discovered devices
- Make i3c_master_set_info private
- Add separate function to register secondary master
- Reworked secondary master register in CDNS driver
- Export i3c_bus_set_mode

Main changes between v3 and v4 are:
- Reworked acquire bus ownership
- Refactored the code

Main changes between v2 and v3 are:
- Added DEFSLVS devices are registered from master driver
- Reworked I2C registering on secondary master side
- Reworked Mastership event is enabled/disabled globally (for all devices)

Main changes between initial version and v2 are:
- Reworked devices registration on secondary master side
- Reworked mastership event disabling/enabling
- Reworked bus locking during mastership takeover process
- Added DEFSLVS devices registration during initialization
- Fixed style issues


Parshuram Thombare (7):
  i3c: master: master initialization flow document
  i3c: master: use i3c_master_register only for main master
  i3c: master: add i3c_secondary_master_register
  i3c: master: add mastership handover support
  i3c: master: add defslvs processing
  i3c: master: sysfs key for acquire bus
  i3c: master: mastership handover, defslvs processing in cdns
    controller driver

 Documentation/driver-api/i3c/index.rst        |   1 +
 .../i3c/master-initialization-flow.rst        | 190 +++++++
 drivers/i3c/master.c                          | 486 ++++++++++++++++--
 drivers/i3c/master/dw-i3c-master.c            |   4 +-
 drivers/i3c/master/i3c-master-cdns.c          | 329 +++++++++++-
 include/linux/i3c/master.h                    |  23 +-
 6 files changed, 964 insertions(+), 69 deletions(-)
 create mode 100644 Documentation/driver-api/i3c/master-initialization-flow.rst

-- 
2.17.1


_______________________________________________
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, back to index

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-31  7:11 [PATCH v8 0/7] I3C mastership handover support Parshuram Thombare
2020-05-31  7:11 ` [PATCH v8 1/7] i3c: master: master initialization flow document Parshuram Thombare
2020-05-31  7:12 ` [PATCH v8 2/7] i3c: master: use i3c_master_register only for main master Parshuram Thombare
2020-05-31  7:13 ` [PATCH v8 3/7] i3c: master: add i3c_secondary_master_register Parshuram Thombare
2020-05-31  7:14 ` [PATCH v8 4/7] i3c: master: add mastership handover support Parshuram Thombare
2020-05-31  7:15 ` [PATCH v8 5/7] i3c: master: add defslvs processing Parshuram Thombare
2020-05-31  7:15 ` [PATCH v8 6/7] i3c: master: sysfs key for acquire bus Parshuram Thombare
2020-05-31  7:16 ` [PATCH v8 7/7] i3c: master: mastership handover, defslvs processing in cdns controller driver Parshuram Thombare

Linux-i3c Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-i3c/0 linux-i3c/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-i3c linux-i3c/ https://lore.kernel.org/linux-i3c \
		linux-i3c@lists.infradead.org
	public-inbox-index linux-i3c

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-i3c


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git