From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E20503F4829 for ; Fri, 4 Sep 2026 04:37:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788496638; cv=none; b=m2m3geWGDpVmCyEW0uAuJLgVR67vKCrXRLnnTzUX+ISX2yDXQOsz/7IersYwJmEOk0/o6NfuMlfxcCyR93X+zt2h8HRiq0/bWAeRNX2lOpGMHOF4IGxS5xh3oUzCC7/iRGKWr2Lz6Hqcd2RiAvHWNOCwW31USIQKkMfxS1hg/es= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788496638; c=relaxed/simple; bh=vcUosnKz9weGeBx4YxtLQ7bE9jZMMGlmscTnUVGOGHY=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=pya/7WuFg1xZORuwkH6dm7IVuHGaQMEWu2b8zbVUsw5t5uDmU+HdR+Y544QEQJovoL35N/bFdsyoEYlsoRDxRG+UriVJ48InHlnNytpnDddmMjygEh3Oen+N91PaA9J3Q7SD3gwvtWfwEQKZXihmfUoqJBwdffreRTWD74JIp7M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fkelfEZh; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fkelfEZh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E22AD1F00A3D; Fri, 4 Sep 2026 04:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788496636; bh=XgrtIu23cMPPEo4dLHlaOF+WVAFNSuOugqyOvGdDhXY=; h=Subject:To:Cc:From:Date; b=fkelfEZhoCdyelzwOGk16oyyiijaGfc5N/OLvhRrxqcT+DGYnYopgRObco4q16Uzm 8vWO8SNKLlXeCdAA0lfOHvj+yOj0QWCn2rvV/w2AcYkIjBMnjhRI1KIj0L/a1oURfk oMcNUZQjoLJTb5DwnvC1Y/N7cqszyjRlszQTHYSo= Subject: FAILED: patch "[PATCH] i3c: master: Do not treat master device as a duplicate target" failed to apply to 7.2-stable tree To: adrian.hunter@intel.com,Frank.Li@nxp.com,alexandre.belloni@bootlin.com,mukesh.savaliya@oss.qualcomm.com Cc: From: Date: Fri, 04 Sep 2026 06:37:10 +0200 Message-ID: <2026090410-overcast-tightrope-31f2@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 7.2-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.2.y git checkout FETCH_HEAD git cherry-pick -x 4dc1b3eeba7991905a5b5b8129ebea51be7d87b7 # git commit -s git send-email --to '' --in-reply-to '2026090410-overcast-tightrope-31f2@gregkh' --subject-prefix 'PATCH 7.2.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 4dc1b3eeba7991905a5b5b8129ebea51be7d87b7 Mon Sep 17 00:00:00 2001 From: Adrian Hunter Date: Fri, 7 Aug 2026 17:56:27 +0300 Subject: [PATCH] i3c: master: Do not treat master device as a duplicate target i3c_master_search_i3c_dev_duplicate() searches the bus for another I3C device with the same PID as the reference device. The search can match master->this, causing the controller itself to be returned as a duplicate. Since the controller is not a target device, it cannot be a duplicate of one. Exclude master->this from matching so that the function only returns real duplicate target devices. Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure") Cc: stable@vger.kernel.org Signed-off-by: Adrian Hunter Reviewed-by: Frank Li Acked-by: Mukesh Savaliya Link: https://patch.msgid.link/20260807145638.168865-4-adrian.hunter@intel.com Signed-off-by: Alexandre Belloni diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index c7bb52b71d88..abb582645a2e 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -2545,7 +2545,8 @@ i3c_master_search_i3c_dev_duplicate(struct i3c_dev_desc *refdev) i3c_bus_for_each_i3cdev(&master->bus, i3cdev) { if (i3cdev != refdev && i3cdev->info.pid && - i3cdev->info.pid == refdev->info.pid) + i3cdev->info.pid == refdev->info.pid && + i3cdev != master->this) return i3cdev; }