From patchwork Sat Sep 10 02:15:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 9324647 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E6DFA60869 for ; Sat, 10 Sep 2016 02:18:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7BD529FC8 for ; Sat, 10 Sep 2016 02:18:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC07229FF5; Sat, 10 Sep 2016 02:18:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 87E7429FC8 for ; Sat, 10 Sep 2016 02:18:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1biXql-00043m-7T; Sat, 10 Sep 2016 02:16:59 +0000 Received: from mail-pa0-f67.google.com ([209.85.220.67]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1biXq8-0003ps-3q; Sat, 10 Sep 2016 02:16:21 +0000 Received: by mail-pa0-f67.google.com with SMTP id gi6so4571847pac.1; Fri, 09 Sep 2016 19:15:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gj26dkv043KIQd/Be0kwYx6iZJLr3C+MK7pZpSeMjGo=; b=XrHlat5g9q9aLh6O8c7lfEaF/ehnfzcq3RvG+XeFjZSZ3AQyBM226vHeMYbBp697Ya O/4gYdDiwgS5vI333tXAvu2veJKwHWQJzXUrSQ1gpuPiUYhS0adMG+yH+kWnyyCIm8EL txnU57zr6c0nE+wnicFXAmZ41I2Gdmclu7vFz6dihh3Jr0GlxXFqhnhbDh+YR0ELeJUs UOo3ovwo1tF2MrLYTAaej/cFFeLGyt/AQezbEWAOuCIKJ09NjpRDecaFrfCoKp7N+pVN Cyg0lqe3kZpDlfq2IcFS14mFdUGEGpixKXd9gHG5UjcSQhq3QFUQPUN/XTpUlYwD9PBd MZnw== X-Gm-Message-State: AE9vXwODrxU3VjVkq45DAZjx0N5uDC2eEHB/54ZHC04rxTFG4AYceMfmK1HjGk/kTAG/tQ== X-Received: by 10.66.152.238 with SMTP id vb14mr12016598pab.78.1473473759476; Fri, 09 Sep 2016 19:15:59 -0700 (PDT) Received: from user5-HP-Z620-Workstation.corp.google.com ([172.22.52.170]) by smtp.gmail.com with ESMTPSA id p4sm8006029pfp.60.2016.09.09.19.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Sep 2016 19:15:58 -0700 (PDT) From: Chris Zhong To: dianders@chromium.org, tfiga@chromium.org, heiko@sntech.de, yzq@rock-chips.com, groeck@chromium.org, myungjoo.ham@samsung.com, cw00.choi@samsung.com, wulf@rock-chips.com, marcheu@chromium.org, briannorris@chromium.org, zhengxing@rock-chips.com, cychiang@chromium.org, hychao@chromium.org, broonie@kernel.org Subject: [PATCH v15 4/5] drm/rockchip: cdn-dp: support audio hot-plug Date: Fri, 9 Sep 2016 19:15:47 -0700 Message-Id: <1473473748-22331-5-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473473748-22331-1-git-send-email-zyw@rock-chips.com> References: <1473473748-22331-1-git-send-email-zyw@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160909_191620_295392_3A4B172D X-CRM114-Status: UNSURE ( 8.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Chris Zhong , linux-arm-kernel@lists.infradead.org, Mark Yao MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Issue hot-plug detection, EDID update, and ELD update notifications from DP drivers. Signed-off-by: Chris Zhong --- Changes in v15: None Changes in v14: None Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index 8d708d3..de1cf3e 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -233,6 +234,7 @@ static int cdn_dp_connector_get_modes(struct drm_connector *connector) drm_mode_connector_update_edid_property(connector, edid); drm_edid_to_eld(connector, edid); + hdmi_event_new_eld(dp->dev, connector->eld); } kfree(edid); } @@ -631,6 +633,7 @@ static void cdn_dp_encoder_enable(struct drm_encoder *encoder) out: mutex_unlock(&dp->lock); + hdmi_event_connect(dp->dev); } static void cdn_dp_encoder_disable(struct drm_encoder *encoder) @@ -647,6 +650,7 @@ static void cdn_dp_encoder_disable(struct drm_encoder *encoder) } } mutex_unlock(&dp->lock); + hdmi_event_disconnect(dp->dev); } static int cdn_dp_encoder_atomic_check(struct drm_encoder *encoder,