Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp763951yba; Wed, 15 May 2019 09:31:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6kJ3gLp5AGqNLHujM+8IayMbRXAtDn+OMmpafxZU2aSklOwAZdqVvLhCDizDtF5WbXhRF X-Received: by 2002:a17:902:e183:: with SMTP id cd3mr44785008plb.233.1557937867465; Wed, 15 May 2019 09:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557937867; cv=none; d=google.com; s=arc-20160816; b=j4jnOn4eFbCvhqr52/c2i9Z8jc5ukrbwamBwFjaWq6d/LM/vjluDS/4TU4GJPWwDga Wkjy4Ws5R9ncwfgZCr74A+0FHlHV6Im82iKquwAJXG5OyxI6ozbSi7JjYGXMzjWPdRXW fRAQvTT7HeNgjckXeHsR3GMJvBBb045OwNPEoqDkcEcqt30zQsNWw9fVvD63M+8T5oIV WNfvim0SKOkdw9/mi3+X1jYJiCzuoxa7SHK5XODBEBZa9NeIS/ZE+ujCuTKp4aFUgT+8 3xyfS1gXRRwwS5oBHTfAuPs/YShCpqFrUA6Sc1Qw2SkmAllCZIygipaS8Zp82MXZCvmj 7ckw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=XibrizVK+x4gwJRznLKLxYNtzx6v60+igfS3HoIEayQ=; b=u3MhhD50OWLt6RgO5mk81ypWnI9DnMDG3NGVOBP8A+flIg/8maTh8y8j/RbLoLKd7s qEp4xbvmnzY0wyZNCTUkGHyVGHYMPRXcADk/TO7A2lh3JI9XyagfPX0g4FU2nxGyquuq Rnj5ReyMaqIwDqdkY6Xqn3lWPweCmvLoy1F/3W3RZc9GDyATs9Sw4BSwAYe4nuV5c2fD 0oaAruyLiCS/VNzacQMKeH4DprvhWgQJti4QTR/m2IYtvfYrCxKMR3XjqVeC9qv36b8C xYJt1deKbcHzu8+4vtzIRDRJOfo98PeBtK5LeV0z9uM9J+0DuNsH1mcfkFNuCFXFsaq0 On5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=czft9FTm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19si2047714pls.124.2019.05.15.09.30.53; Wed, 15 May 2019 09:31:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=czft9FTm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727250AbfEOQ2a (ORCPT + 99 others); Wed, 15 May 2019 12:28:30 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:40380 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbfEOQ2Z (ORCPT ); Wed, 15 May 2019 12:28:25 -0400 Received: by mail-ua1-f65.google.com with SMTP id d4so82500uaj.7 for ; Wed, 15 May 2019 09:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XibrizVK+x4gwJRznLKLxYNtzx6v60+igfS3HoIEayQ=; b=czft9FTmE5tMVE8dOINVb8LBbsa35P48tLVdr892dOMLRa4VB1coebG0BKnTxX5Cka 6m1J4wFkHSi7VzolqLIgckMP6rlJbSJD+yfgb6Cih4Pe7Mqr04yeQhzIn8xXjqs0SOoI ZmDyr6hSfcx3TYTP7yv3gAaimFJ6Y3azQMq+g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=XibrizVK+x4gwJRznLKLxYNtzx6v60+igfS3HoIEayQ=; b=Uv/Kp31v7SLhP4NQtmOGiCR9t84p5FOr8p1yLxfa+k6JdB80DHmdf6stobNaUcVve9 DeK80UhO4XOsKmpDCqSFLBT/hByj79GNugxOwPJ8uzh+87BrLQe3irHxzXDd6yVluWKc rVVCXeDsA9LhcLcMwvOZP1OyJSrMIG+zVNpZ6FKs+jWV4r099EV3ZSjR0hrZRbE7gu0Y ozYPVMFrT8qCLX/3FburqbR0tKD4H6qeqxtks9WqVAifxivmFkxEMvalvIhFhCtEC/Xd +SJxcTkSda3jyv527+fzhKaa9q9MtyangK2TB8/RLLGH5o5t14Kmxh09qnA2e9uzxGN8 LcpQ== X-Gm-Message-State: APjAAAVhmK91lIl6eIiVpbiOP0Tc8uhteslOyXKPsg2dWlah7iklSFCx UWsZEqM/KE6ZGjRXznfE9io/NxjsfBk= X-Received: by 2002:ab0:7019:: with SMTP id k25mr4230500ual.49.1557937704301; Wed, 15 May 2019 09:28:24 -0700 (PDT) Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com. [209.85.217.46]) by smtp.gmail.com with ESMTPSA id c39sm8864393uac.3.2019.05.15.09.28.24 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 15 May 2019 09:28:24 -0700 (PDT) Received: by mail-vs1-f46.google.com with SMTP id o5so342983vsq.4 for ; Wed, 15 May 2019 09:28:24 -0700 (PDT) X-Received: by 2002:a67:f60b:: with SMTP id k11mr13708286vso.111.1557937389222; Wed, 15 May 2019 09:23:09 -0700 (PDT) MIME-Version: 1.0 References: <20190502223808.185180-1-dianders@chromium.org> In-Reply-To: <20190502223808.185180-1-dianders@chromium.org> From: Doug Anderson Date: Wed, 15 May 2019 09:22:56 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] drm: bridge: dw-hdmi: Add hooks for suspend/resume To: Heiko Stuebner , Sandy Huang , Andrzej Hajda , Laurent Pinchart Cc: "open list:ARM/Rockchip SoC..." , Neil Armstrong , Matthias Kaehlcke , Sean Paul , Zheng Yang , Sam Ravnborg , dri-devel , LKML , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , David Airlie , Jernej Skrabec , Daniel Vetter Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi From: Douglas Anderson Date: Thu, May 2, 2019 at 3:38 PM To: Heiko Stuebner, Sandy Huang, Andrzej Hajda, Laurent Pinchart Cc: , Neil Armstrong, , Sean Paul, Douglas Anderson, Zheng Yang, Sam Ravnborg, , , Ville Syrj=C3=A4l=C3=A4, David Airlie, Jern= ej Skrabec, Daniel Vetter > On Rockchip rk3288-based Chromebooks when you do a suspend/resume > cycle: > > 1. You lose the ability to detect an HDMI device being plugged in. > > 2. If you're using the i2c bus built in to dw_hdmi then it stops > working. > > Let's add a hook to the core dw-hdmi driver so that we can call it in > dw_hdmi-rockchip in the next commit. > > NOTE: the exact set of steps I've done here in resume come from > looking at the normal dw_hdmi init sequence in upstream Linux plus the > sequence that we did in downstream Chrome OS 3.14. Testing show that > it seems to work, but if an extra step is needed or something here is > not needed we could improve it. > > Signed-off-by: Douglas Anderson > --- > > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 21 +++++++++++++++++++++ > include/drm/bridge/dw_hdmi.h | 3 +++ > 2 files changed, 24 insertions(+) Did anyone have any thoughts on this patch series? Thanks! :-) -Doug