From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 8F19A360ED6 for ; Wed, 22 Jul 2026 00:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784681972; cv=none; b=OCqgyfVDsLNOG4ea+M31sZf36OQjTw91587Jw7XYCSZ8ags1z/yHc4QdzwOjWpw1RsFSAM53NF6n+84apVDEYopbV7hUxorsLItPkIV6e0tPkTFW2LuuHZH04Z7dtjFhbckTRVpUtVULDnRafdUrh5EPGg7dTlGHO1wlUtGjxAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784681972; c=relaxed/simple; bh=xqgI+pKYGT8fZgsfbsMvAA/ehq5ZqseNvAV3GFP8G2s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UFI4f/Lfu8yLlKyt+D9GmN3sQhJBlocS/d3GMTpB353VK+8Hb7YOWkmmrxKCLt/pJlPIgFE/SfMSQ3KCpDPb9Iax8h0V/Hu87MKcyhliclJKAOVadvXtT1sED5j5eJp2jsN9/0TMl1/J0UjdGONc+8Wmq4fr2rQ8JMavo9mjZS4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.99) (envelope-from ) id 1wmLIy-000000000yY-1plf; Wed, 22 Jul 2026 00:59:24 +0000 Date: Wed, 22 Jul 2026 01:59:21 +0100 From: Daniel Golle To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Matthias Brugger , AngeloGioacchino Del Regno , Hermes Wu , Allen Chen , Pin-yen Lin , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Chen-Yu Tsai Subject: [PATCH v4 2/5] drm/bridge: it6505: disable runtime PM on remove Message-ID: <59d6066b37a33878c8673bf1659e16fd2624cae4.1784681487.git.daniel@makrotopia.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: it6505_i2c_probe() enables runtime PM but it6505_i2c_remove() never disables it, leaving the device with an unbalanced disable depth after unbind. Binding the driver again then triggers the "Unbalanced pm_runtime_enable!" warning. Disable runtime PM in remove() after all work items have been cancelled (the extcon work calls pm_runtime_get_sync() and pm_runtime_put_sync()) and before powering the chip off manually. Fixes: 10517777d302 ("drm/bridge: it6505: Adapt runtime power management framework") Signed-off-by: Daniel Golle --- v4: new patch drivers/gpu/drm/bridge/ite-it6505.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c index 7873ae6df3af..2a8298ee6c03 100644 --- a/drivers/gpu/drm/bridge/ite-it6505.c +++ b/drivers/gpu/drm/bridge/ite-it6505.c @@ -3655,6 +3655,7 @@ static void it6505_i2c_remove(struct i2c_client *client) cancel_work_sync(&it6505->hdcp_wait_ksv_list); cancel_delayed_work_sync(&it6505->hdcp_work); cancel_work_sync(&it6505->extcon_wq); + pm_runtime_disable(&client->dev); it6505_poweroff(it6505); it6505_remove_edid(it6505); } -- 2.55.0