Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4649988ybi; Mon, 3 Jun 2019 14:46:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmxXXUcE+Y2C6qTFH+mjmytnPe0aLt7hAwCNa99Nm0NWJeZJiWHJLZSCAda6iCzKurmuGx X-Received: by 2002:a63:4813:: with SMTP id v19mr32158033pga.406.1559598399783; Mon, 03 Jun 2019 14:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559598399; cv=none; d=google.com; s=arc-20160816; b=hgp6aQhQOUqkOSgzP200j9fNzi2NbwFSXfJZ+eGqAwVAn21VUEjih75/DymaDlxcz9 3L3j4QZQlrXcgRm6MMHcRR08uOAIahCVTxRqeBo8+BC3zi036tUVkwj3e+za+Gd8a6qY Tbd8vU2VOXHl90V6XUctHLJgVsR8XuWW64BGn1d1++20WhCuv8ufKE2sIO/9MaSu1H6m 7Stz88sQezOm2tgDdLesu009ermg6mrFySSgY1gwhsk0Pujx/uei6LEhx2JGJYJhZ1uX B8w1RXG/wpzoE77ZXJstzGtYc/ej6lO93AMUKmGSEyY/yk3mIlWlHh0BaDHWZpHhvXMe L3XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=abYS+Uz7A281R7NvC6O8zM/sshSHcswm8DbDdd1frRg=; b=PB1xgkNRkQ/ya8e44k3JeyHpKtJ2wVr4geBiJWd5z/MUGpmSGfW+oAKuFv3Br64EFr h6qys8iuBRwmw9D6l6z4Ks5pG1c8IK8sWovN+oK3Pis7P1Mnq7UE/FYPDsqz9in7OZMd IAdBMuMf8469gPZCqKAMezam69vL+agZX7lXL5QaK2fuFG7trEwtFi8WO0ZwYTzQ5S5D aezVXKcqvXNfg8jORzw5EkcI1+OjhslUOA4BYrTVd9+tqtZevusSimEEgWtXwKhmnPWs mHYRXD9aWvyGYzAvWx5FMEP+X3xPf/zwiQ/JbQc0EPdLnH2FJXgICE5DsoBHHJNjHDX1 5AaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YI3bF1wx; 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 k18si22468380pfd.233.2019.06.03.14.46.23; Mon, 03 Jun 2019 14:46:39 -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=YI3bF1wx; 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 S1726490AbfFCVpL (ORCPT + 99 others); Mon, 3 Jun 2019 17:45:11 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:36531 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfFCVpL (ORCPT ); Mon, 3 Jun 2019 17:45:11 -0400 Received: by mail-ua1-f65.google.com with SMTP id 94so7065131uam.3 for ; Mon, 03 Jun 2019 14:45:10 -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; bh=abYS+Uz7A281R7NvC6O8zM/sshSHcswm8DbDdd1frRg=; b=YI3bF1wxRrFFyQe1fOOz0HEeP24BXNJUB5WaMcuJQiiEXYicZaZjP+RDPlt4vZZTFG eXNqIAopT3I9G6yVvErYwCBjRHaou0mmLJA3k221pf03KQ0A+QkDPr4pbAevxP3HQjos ANB17tDD0zu4EM4sRMHhzs02e9QgRsbY7hTmc= 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; bh=abYS+Uz7A281R7NvC6O8zM/sshSHcswm8DbDdd1frRg=; b=HkD5E4jbJNGvpJ9wy+Ea9vWhoGQT3xU2yvhPFSnsc5ZMqDUxMxWasrKHXF5bBpCw8a BzGTLb4PvIFYi89Qtrzu7FD2s1N04UyXYJtErt5h/jClbGnU4x8XcWFrhc0hkoAUuuqB QUHtrUL7r46NBHYyI9X+tLg+qGSxlVEDNaAoaWf6zX1oBLUiCET/0Ki7c7pDp6xOXvqL Bc/lNnJiVFuemohS7YdmimDouysIUQLQpwfWiNydX+fgFLPajs6qZk/MCr91uZlJaup0 WHmykM0FSWAU12cWVZ+GviSbWA/xuKWFfYnVGcjoYrScFTQx3OyksIAt5Krk4uXFkt3M Z3Wg== X-Gm-Message-State: APjAAAWIc2lc1lyYPO9AO4Su77+I2QHpOaHXxJLDAFoe8BrItaR7qYg6 jRMSbQkrTMbIn0R176aupjuzdjrFgoM= X-Received: by 2002:ab0:1849:: with SMTP id j9mr7768803uag.75.1559597841541; Mon, 03 Jun 2019 14:37:21 -0700 (PDT) Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com. [209.85.222.48]) by smtp.gmail.com with ESMTPSA id s24sm5494835vsj.26.2019.06.03.14.37.19 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 14:37:20 -0700 (PDT) Received: by mail-ua1-f48.google.com with SMTP id 7so7061191uah.1 for ; Mon, 03 Jun 2019 14:37:19 -0700 (PDT) X-Received: by 2002:ab0:670c:: with SMTP id q12mr13608918uam.106.1559597839129; Mon, 03 Jun 2019 14:37:19 -0700 (PDT) MIME-Version: 1.0 References: <20190516214022.65220-1-dianders@chromium.org> In-Reply-To: <20190516214022.65220-1-dianders@chromium.org> From: Doug Anderson Date: Mon, 3 Jun 2019 14:37:07 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] drm: bridge: dw-hdmi: Add hook for resume To: Laurent Pinchart Cc: "open list:ARM/Rockchip SoC..." , Neil Armstrong , Matthias Kaehlcke , Sean Paul , Jonas Karlman , Sam Ravnborg , dri-devel , LKML , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , David Airlie , Daniel Vetter , Heiko Stuebner , Andrzej Hajda , Sandy Huang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Laurent, On Thu, May 16, 2019 at 2:40 PM Douglas Anderson wrote: > > 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. > > As part of this change we'll refactor the hardware init bits of > dw-hdmi to happen all in one function and all at the same time. Since > we need to init the interrupt mutes before we request the IRQ, this > means moving the hardware init earlier in the function, but there > should be no problems with that. Also as part of this we now > unconditionally init the "i2c" parts of dw-hdmi, but again that ought > to be fine. > > Signed-off-by: Douglas Anderson > --- > > Changes in v2: > - No empty stub for suspend (Laurent) > - Refactor to use the same code in probe and resume (Laurent) > - Unconditionally init i2c (seems OK + needed before hdmi->i2c init) > - Combine "init" of i2c and "setup" of i2c (no reason to split) Are you happy with this now? Even if you feel like you don't want to give it a full Reviewed-by, it'd good if you could confirm that I handled your suggestions properly. Thanks! :-) -Doug