From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 809933EC2D1 for ; Mon, 18 May 2026 11:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779105339; cv=none; b=I+03xQbp+Wl7Fc781jsbQnczuQQi6/daN0Mu4Ga/a4BfTj/Kcc37IQHToqkWG7T8oGnk6XIopc2to2Lchu3V7vZVzj0QYI3ADLnDQSVG0Kh+vIGR5ivW9mxJB9dVB2WhvrKD/P/3cFOeeEubZcaZW5L5s0NMwK3O9UCi9iZKDRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779105339; c=relaxed/simple; bh=N1BVI4vCHN0idk5Tct9ApRQPRZ+noGVXctLqf2EgNI4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bghmGXdG+MOzKJdbzgb8QF6/oTp+6lkIb41KxYqrqTCA6WEBFTGDZ7qcUtv4lCKTE+UDQoAY6XaaNx2HEL4f6bJr5n7aUJjnDX/HdcDmRf7Ds1mnNb2ETr3aBnY7QAhfop1Khw3XAHBV1k3oIbyda5LSbst1erReNld0qUm10ow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LuSwRqxc; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LuSwRqxc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779105338; x=1810641338; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=N1BVI4vCHN0idk5Tct9ApRQPRZ+noGVXctLqf2EgNI4=; b=LuSwRqxco8yA1w8MzcffWkFL+NDMBPNFk/yuv/kX1APSbUR+8bjPivP5 7RfjcpaVmEx1UpXNUV4MhuDx/5oevX202PH0lALtPFdRcYPpzf3evs7Dt bryl9rzIDILy/6iPr4hDbQB0z/rsGawxSLyyohCR9vVPY+XDfqX1U9o7j qjshTY1n8TYwSpJx3UUT6aPEPSzB3bVNMIDkjhDf9lScijL13CbeftHBi smNUgN4y/4Fn55aEDOy8hCSlDOk4i6sNLWjCzDWF+cYXI9aU0MFz3JSjG aPWatB1PX0HAc8Z904s6HnQelGOjUotPKW4UyJsmInSPdACq5j4Jn3/G8 g==; X-CSE-ConnectionGUID: Q3sR+X+PRr2PsbdGbb4/pQ== X-CSE-MsgGUID: +G6oNAfvQYqGhLwQLHbqBg== X-IronPort-AV: E=McAfee;i="6800,10657,11789"; a="91347027" X-IronPort-AV: E=Sophos;i="6.23,241,1770624000"; d="scan'208";a="91347027" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2026 04:55:37 -0700 X-CSE-ConnectionGUID: oEsSGbmPTRqlGFNEOegzJA== X-CSE-MsgGUID: h8hl3YPURGOEjd1HjokW4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,241,1770624000"; d="scan'208";a="239663391" Received: from egrumbac-mobl6.ger.corp.intel.com (HELO ahunter6-desk) ([10.245.245.220]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2026 04:55:34 -0700 From: Adrian Hunter To: alexandre.belloni@bootlin.com Cc: Frank.Li@nxp.com, david.nystrom@est.tech, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/8] i3c: Hot-Join improvements and MIPI HCI Hot-Join support Date: Mon, 18 May 2026 14:55:11 +0300 Message-ID: <20260518115520.98335-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit Hi This series tightens the I3C core's handling of Hot-Join across system suspend, shutdown and unregister, consolidates the per-driver Hot-Join worker into the core, and finally wires the MIPI I3C HCI driver into the new Hot-Join framework. It applies on top of: https://lore.kernel.org/linux-i3c/20260504113352.38490-1-adrian.hunter@intel.com/ Patches 1-2 fix latent races in the existing Hot-Join machinery (suspend vs. Hot-Join work, and concurrent sysfs writers). Patches 3-5 consolidate the per-driver Hot-Join worker into the core and add proper teardown via an i3c_bus_type shutdown callback. Patch 6 defers driver-model registration of newly discovered devices out of the DAA caller's context, so resume-time DAA does not push device probing into the controller's resume sequence. Patches 7-8 add Hot-Join support to MIPI I3C HCI. Changes in V2: i3c: master: Make hot-join workqueue freezable to block hot-join during suspend Add Fixes tag Add Frank's Rev'd by i3c: master: Serialize i3c_set_hotjoin() with the maintenance lock Add Fixes tag i3c: master: Consolidate Hot-Join DAA work in the core Add Frank's Rev'd by i3c: master: Ensure Hot-Join operations are stopped on shutdown Add dependency note to commit message Add Fixes tag Add Frank's Rev'd by i3c: dw: Drop redundant Hot-Join cancel_work_sync() in shutdown Add Frank's Rev'd by i3c: master: Defer new-device registration out of DAA caller context Add comment about reg_work use Add Fixes tag i3c: master: Export i3c_master_enec_disec_locked() Add Frank's Rev'd by i3c: mipi-i3c-hci: Add Hot-Join support Add Frank's Rev'd by Adrian Hunter (8): i3c: master: Make hot-join workqueue freezable to block hot-join during suspend i3c: master: Serialize i3c_set_hotjoin() with the maintenance lock i3c: master: Consolidate Hot-Join DAA work in the core i3c: master: Ensure Hot-Join operations are stopped on shutdown i3c: dw: Drop redundant Hot-Join cancel_work_sync() in shutdown i3c: master: Defer new-device registration out of DAA caller context i3c: master: Export i3c_master_enec_disec_locked() i3c: mipi-i3c-hci: Add Hot-Join support drivers/i3c/master.c | 129 ++++++++++++++++++++++++++------- drivers/i3c/master/dw-i3c-master.c | 15 +--- drivers/i3c/master/dw-i3c-master.h | 2 - drivers/i3c/master/i3c-master-cdns.c | 14 +--- drivers/i3c/master/mipi-i3c-hci/core.c | 50 ++++++++++++- drivers/i3c/master/mipi-i3c-hci/dma.c | 5 ++ drivers/i3c/master/mipi-i3c-hci/hci.h | 1 + drivers/i3c/master/mipi-i3c-hci/pio.c | 5 ++ drivers/i3c/master/svc-i3c-master.c | 14 +--- include/linux/i3c/master.h | 16 +++- 10 files changed, 179 insertions(+), 72 deletions(-) Regards Adrian