From patchwork Wed Oct 11 21:47:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 732637 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C558C46CA1 for ; Wed, 11 Oct 2023 21:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233582AbjJKVrO (ORCPT ); Wed, 11 Oct 2023 17:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233578AbjJKVrM (ORCPT ); Wed, 11 Oct 2023 17:47:12 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A42C9B7 for ; Wed, 11 Oct 2023 14:47:08 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-503065c4b25so492008e87.1 for ; Wed, 11 Oct 2023 14:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697060827; x=1697665627; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ob6zHKwHJe5DxnJ96DbFvUViHrwYllqlwZyDWW9S4Hw=; b=quZs8jD2+LRk/TT6qSlsDPU5c+HHFPFdNld1p9AoxowvVnTO09oPh01ZHGmSstUzA+ PgjhFAJL2ORKr6KnpgX9H7DhU5bwoKLVOlNIskmSfBguU+bp7orcVUWXRF+OoKpXjqfl 4FR0Zw5Np5H7BMYUet3esUDRfQB2RNceSX/jvnpSnrnV1WqifDHR9UvqKBCnV+F+yClx 6EHa0fJiOQgfbiFu6wmPikfKtlEQkaXBTk4m8Ll5zKM/stNpCoiq0CA0HV200rXhWpvO NdcN2mOsPewp2X7hSStL8R0T2Z0Qamm93e2XlxN8Ws2bW1JL+N8lugvKsWeophtaD9fT 1d+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697060827; x=1697665627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ob6zHKwHJe5DxnJ96DbFvUViHrwYllqlwZyDWW9S4Hw=; b=hVUzuiLKzPjUr3GGpFHRAZl4lRRqJtKTo1gNj+ld8NGk4ayO6xmEcZC/UgOP+D1i8V ARsAF6uXCk3B91Q8tco6g2ObIFeKjjlOP/LFMxy5h+8EXFbRGfi5z95Cl7lqwMNnYyVj 4AmfyQkg/Y8VK42G1CrL3JqV+pzbQQ2+mrs29SAvjjDpUBDkMJp/x8nTmAbYX213VF/h WT/aeZlT555SYQP+f8sfDU4KBfnNTqGlj78IxSQdLhHnnLX0bf1oJEQuUlYkJ6Dz9wBj yXIjdq3O6n54VY76gm4HgBsA+f9RpDzvyrzKlkvExRR7o8zH/iNE8i/NVJyIbkYX8Ntg GI7A== X-Gm-Message-State: AOJu0Yw3+IS6DAi5Nf9qKUhc6cJ1LLY1UbsJZLvltrbXUIM5MtN+LZpo ErxocuPM1aeGFwFGX6/ExVh0Iw== X-Google-Smtp-Source: AGHT+IG+Jx7gvthKXOrv1eS5yhlvxjJN951Md2sT933/0bkGwRR9gQgLcgv3WVHRKMFaSmnk0mnxSQ== X-Received: by 2002:ac2:5443:0:b0:503:34b8:20b with SMTP id d3-20020ac25443000000b0050334b8020bmr16731665lfn.65.1697060826927; Wed, 11 Oct 2023 14:47:06 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id o15-20020a056512050f00b004fbab80ecefsm2452485lfb.145.2023.10.11.14.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 14:47:06 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten Cc: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 1/3] drm/msm/dsi: use correct lifetime device for devm_drm_bridge_add Date: Thu, 12 Oct 2023 00:47:03 +0300 Message-Id: <20231011214705.375738-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011214705.375738-1-dmitry.baryshkov@linaro.org> References: <20231011214705.375738-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The lifetime of the created drm_bridge is attached to the drm_device rather than the DSI's platform_device. Use correct lifetime for devm_drm_bridge_add() call. Fixes: 5f403fd7d5c2 ("drm/msm/dsi: switch to devm_drm_bridge_add()") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c index 17aa19bb6510..896f369fdd53 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_manager.c +++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c @@ -485,7 +485,7 @@ int msm_dsi_manager_bridge_init(struct msm_dsi *msm_dsi) bridge = &dsi_bridge->base; bridge->funcs = &dsi_mgr_bridge_funcs; - ret = devm_drm_bridge_add(&msm_dsi->pdev->dev, bridge); + ret = devm_drm_bridge_add(msm_dsi->dev->dev, bridge); if (ret) return ret; From patchwork Wed Oct 11 21:47:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 732638 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25454CDB483 for ; Wed, 11 Oct 2023 21:47:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235170AbjJKVrN (ORCPT ); Wed, 11 Oct 2023 17:47:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233582AbjJKVrM (ORCPT ); Wed, 11 Oct 2023 17:47:12 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D0FBBA for ; Wed, 11 Oct 2023 14:47:09 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5031ccf004cso429055e87.2 for ; Wed, 11 Oct 2023 14:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697060827; x=1697665627; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wPUGWW275MYstsSHxHHUDypFjqdrph9V1YvKG1p4fyc=; b=hpyXAJjFIEDztKMK49Y7Ciy89/L+ZQbTRsS/mRfIzTYFNw3JD84FpCdbWZk8hF47lP 2ia4ftYOKOSzRTnLnLCdeGB9K/odA/2yFFx70DpzHweNggE9rpGsyQzDH41RVMy6Ovz2 89Eui8uq09CyFdZNJpRU+h5Bj+6ZcCTEjEYk0yg8hYMCfa9wrczL7HjfZtQ5QFOWy4Xd QxmuVz9wDNWHUHee/c2sK754CZHR1Q3haXYAVV5gIwymCdvLHP6SfCmIW+iruGO0itD7 GkbXLnFqWY9CBglx/zho2162aQRzvz+tpaB+iXNTSXbuZmzx/qyDmYyMXeRtXTyf698r k+HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697060827; x=1697665627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wPUGWW275MYstsSHxHHUDypFjqdrph9V1YvKG1p4fyc=; b=ahV1+HPJ3wN0oW4P5CRKtCCUhI+z87VXHdrVhgdiVqNxY0fsg7/U/Bd5qESOF8+w1y sFOv5BnM6JtTNZbIznwwJgvgLk1KYkxZFiePh3XZGrWVkFdJIbtNkfQcjiF2pKTRGqBr U9VJbxdO92NFIzB5QuJLR5/w1FQZ2LZmOP7KUNXemMjOmzRnmPe9SXAkp044Q4Ecvlif N5mLmwOmULG0xC9p4VFONLZYRuFMRhnZVNhIyWYR97Mak7dIqhi0aTTi9vNnRBp8W+5A eMapxRFRei5g8b5iHEul7XVSZMpBo6eEF0bqLMnhZNOl3rHR6b3Ptps7FW9Dwtykv7dj bDzQ== X-Gm-Message-State: AOJu0YzSz296xk+UdvSySZFPEGQBujQBhcLyNkav20dD2WgjUP5HEStC 9nuZZunZdipNNzVQGwuLG4y25A== X-Google-Smtp-Source: AGHT+IHAQzCJ2KIdfIvr74FJ4FmySCFQSZAxPAtlfM1u4q0G9LMI7SdYKf1D9vU2z0PW+GjWV/UsDg== X-Received: by 2002:a05:6512:e9f:b0:500:d960:8b6d with SMTP id bi31-20020a0565120e9f00b00500d9608b6dmr23912348lfb.33.1697060827655; Wed, 11 Oct 2023 14:47:07 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id o15-20020a056512050f00b004fbab80ecefsm2452485lfb.145.2023.10.11.14.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 14:47:07 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten Cc: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 2/3] drm/msm/hdmi: use correct lifetime device for devm_drm_bridge_add Date: Thu, 12 Oct 2023 00:47:04 +0300 Message-Id: <20231011214705.375738-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011214705.375738-1-dmitry.baryshkov@linaro.org> References: <20231011214705.375738-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The lifetime of the created drm_bridge is attached to the drm_device rather than the HDMI's platform_device. Use correct lifetime for devm_drm_bridge_add() call. Fixes: 719093a67c7f ("drm/msm/hdmi: switch to devm_drm_bridge_add()") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c index 0b7a6a56677e..f5e01471b0b0 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c @@ -331,7 +331,7 @@ int msm_hdmi_bridge_init(struct hdmi *hdmi) DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID; - ret = devm_drm_bridge_add(&hdmi->pdev->dev, bridge); + ret = devm_drm_bridge_add(hdmi->dev->dev, bridge); if (ret) return ret; From patchwork Wed Oct 11 21:47:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 732046 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D586BCDB47E for ; Wed, 11 Oct 2023 21:47:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233527AbjJKVrO (ORCPT ); Wed, 11 Oct 2023 17:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233616AbjJKVrM (ORCPT ); Wed, 11 Oct 2023 17:47:12 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2007FC4 for ; Wed, 11 Oct 2023 14:47:10 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5041cc983f9so424861e87.3 for ; Wed, 11 Oct 2023 14:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697060828; x=1697665628; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8NowKG+uxNaCu9ectHj5Raem53l31lC3gwF/MNNR9FI=; b=zUOrzK5gC77tx3uja2iTP2MNjKlYQJH1Er0R3tu/OI5rKbQof/vs3prTUoQ1PJwDr9 rMtugrI3w0dvg54fdxsWj07FrVxDiuPUDTJPYCM03sYr0yIwOYtizFpiaF13ob77dSXZ rgyNQi0DwnihZjFnT5JTWuTlsVhEC1qrMMWlXUopasQYAdBnr1ezVnzc1uBCFo2Fc1Qb DHrwUakaD+EGmZF/sunKd2KuDxFKXkVmQxqDwiDnIssn5AJvXNB97sQNlgTufMooHbuB sJUlqOfb+AJ2DHkvvAGeK8mOii8M1f5gA8RKiexOHBuqeQxoJkzsbsaTnUfO7NfNoH4K KPhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697060828; x=1697665628; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8NowKG+uxNaCu9ectHj5Raem53l31lC3gwF/MNNR9FI=; b=uqhpcXnscDKukwh5n1/lMM3q75YJm89pdkHaPytI29lWT8wp2EyEHEfvTOlecbyjPW MdR2ov6UbuyKGFt3v7z72JSoxbBvKJ/UKbVGp6cMzx3Fp50B05sNEAOKl+L/iT3mxyzU FVT6mk3q3cTGCket2lHrh/tEiVPDAa2v6EHKGoVcOH/WV+lLu+if6YHD9krxSBqvWfIz 4sPZjDhHmC3LOVZPYznml/RVYGVv3r6LSJuxsENnvhyOcGBPOrfrzrs1rP5BA/84ELV5 oqa1XYLANAlIPRXjLKqlDJO11h8ULTlY8MG/UWUq+Ru1RQqRaACTLIa0+owJegEPg2aO kMEw== X-Gm-Message-State: AOJu0YyuQQNQCrrbfTM1UvpvgDBhuyR2Cqfymo7C4TDr8wvZIjNHMETn EAszqEZ/Io/ofiFKkM2d4xQADg== X-Google-Smtp-Source: AGHT+IEP+I6YA9pAFP7bcd4lqSHrBa9fvXnpEuDyIcwcYbYyLPFB6oI7N62F8hACTs5u5PBR627VZQ== X-Received: by 2002:a05:6512:b23:b0:503:1913:ed8e with SMTP id w35-20020a0565120b2300b005031913ed8emr18628281lfu.61.1697060828355; Wed, 11 Oct 2023 14:47:08 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id o15-20020a056512050f00b004fbab80ecefsm2452485lfb.145.2023.10.11.14.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 14:47:08 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten Cc: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 3/3] drm/msm/dp: use correct lifetime device for devm_drm_bridge_add Date: Thu, 12 Oct 2023 00:47:05 +0300 Message-Id: <20231011214705.375738-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011214705.375738-1-dmitry.baryshkov@linaro.org> References: <20231011214705.375738-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The lifetime of the created drm_bridge is attached to the drm_device rather than the DP's platform_device. Use correct lifetime for devm_drm_bridge_add() call. Fixes: 61a72d5efce5 ("drm/msm/dp: switch to devm_drm_bridge_add()") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_drm.c b/drivers/gpu/drm/msm/dp/dp_drm.c index 284ff7df058a..40e7344180e3 100644 --- a/drivers/gpu/drm/msm/dp/dp_drm.c +++ b/drivers/gpu/drm/msm/dp/dp_drm.c @@ -307,7 +307,7 @@ int dp_bridge_init(struct msm_dp *dp_display, struct drm_device *dev, DRM_BRIDGE_OP_MODES; } - rc = devm_drm_bridge_add(&dp_display->pdev->dev, bridge); + rc = devm_drm_bridge_add(dev->dev, bridge); if (rc) { DRM_ERROR("failed to add bridge, rc=%d\n", rc);