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 ABBE342A79D for ; Fri, 17 Jul 2026 14:32:22 +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=1784298743; cv=none; b=BorPI+tiuxnubABjcepnmaZFlYB+lpTqoncbWs+Xw5UG9GK5DHFJzHoycL/XOX2FEvw+xaSP3ZHQvFaP2+VohiWFEsR23Z12SZDcCR1vGEgigV61TDVW7RU1BbXvRw3oNNcGqNc7XJc3lWd/FUtqiwmKy3sWbuE4QLUmvEfSgsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784298743; c=relaxed/simple; bh=3BU/ybC0DWwQRahVhaR++o/0afW6SCva4pHCfpPD9rM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KvmBx1sxidoRvk10nl0LXhocof99PxR18QhGb4oF1U5GXE8yF2JjeQdlzZrPeCKRCzmt/42wsDzc0u+iZF76c1/tfhq6QLKiW5/5QLMgnQGzDMQyyKplw46bzMqUKxgCktPro4YLAqBaszsPOlcjlIeZMqSoCSsslSAgLw0RhNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cvR6fNsu; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cvR6fNsu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71D511F00A3A; Fri, 17 Jul 2026 14:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784298742; bh=Hvs+gSWZNMPPuyV9xoOKEHmCPYvljPZSyMmo2TUU9wI=; h=From:To:Cc:Subject:Date; b=cvR6fNsuykGtPvUwc/9XJDzUmWri51iY/N5IHDeIEITY13EI7L49/EK6yqIc3RxjB oQ5HEDifNB4Y2fgstJnDYf6J+CJcwx+bayZFmVicY9YLmoDksVNXaikX4n9+E2MmVZ yCkQM/GXZySLfoHnwu+s2BIORPiy8qixyRzA9Ngviq8zA3AmO0Snk6F62CiLcu1ci2 iren6Zi8XkPX76M1JNVAHK/RvPJ/bfqlY1Q8K8Pn122BASxum28w5eLxNcchuKyOfE DSvNkGG8cr7tc7NQ2KbqFqlEwJ4VPP4jdb7pUZOxI12fYEu67M0Yv0JaPfCSQnZ7AN PXVd0GtScKlkg== Received: from johan by xi.lan with local (Exim 4.99.4) (envelope-from ) id 1wkjbw-00000007cDB-0iSo; Fri, 17 Jul 2026 16:32:20 +0200 From: Johan Hovold To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: David Airlie , Simona Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 0/2] drm/panel-edp: take i2c adapter module reference Date: Fri, 17 Jul 2026 16:31:17 +0200 Message-ID: <20260717143119.1815106-1-johan@kernel.org> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The i2c subsystem currently blocks during adapter deregistration whenever there are consumers holding a reference. Switch to using of_get_i2c_adapter_by_node() which also takes a reference to the adapter module so that an attempt to unload the module while in use fails gracefully instead of blocking uninterruptibly. Johan Changes in v2: - fix a pre-existing leak in a corner case flagged by Sashiko that Doug thought was worth fixing - rebase module reference patch on top of that fix Johan Hovold (2): drm/panel-edp: fix i2c adapter leak on probe failure drm/panel-edp: take i2c adapter module reference drivers/gpu/drm/panel/panel-edp.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) -- 2.54.0