Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1020329pxb; Thu, 21 Oct 2021 14:10:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi1xLI91DkZjbpBvO82aF0XrnVCuIAgQdfQXH0O4zjmPx3obsPmvqZO9xbQudM0oVctZ/H X-Received: by 2002:a17:906:8a7b:: with SMTP id hy27mr3548236ejc.308.1634850657343; Thu, 21 Oct 2021 14:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634850657; cv=none; d=google.com; s=arc-20160816; b=UNb6YZsyI4a/1e/6P/1yGfka9TWh+jba0xaILd0ouNy8qajD7HMS75jXFbbDHUQKwa REea3vDsL4Aj2M9+7u4HR1sOhsPetTLAkFTaUgOFMXUzBYIpQ5QbbVs4IVp9t0BS6lBr Hn5NKjqykYmKILbXH9+PITGVbVkiolkzePrnabza4VAQbdZJaSbza8ZBAhhlrO+SnZls c6rKGP7zEuQFYfJB+XXuTIQR5simCsxuiQgD5tG+BxC4VK0k88MZGTcJXlAemuK8y7JY b9YwzDMpGJKGpMpcUDNL5rXgVJ/JNdeWjARBopRTPj605FPJXtyOk9J566zfMbnmkQe4 1KMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3yYwJb9ifQ9bmoE69QsAf8gqXf8CKWrMVHpOE+bbaoY=; b=sEKyxktl7A/w4CNYKoiUtP09XJfqVpWNppuQbBZH4CR0fzsW5jI9JsHo/2aXHci17p oiLIQ+E/YZxitUfITNfGRFFlyuu8yXbCVH8lKmkRjM5Eth4jb/SQXYq39LWSyKLOJyHe t+7fmJXDpgRgVA0HIS0m+GZfwFpMsJVTrTwPjRXXx9Hye2455DBs21/ksVDStzA9ESdl QyJQdREFTkSSezMySXir+icVylr9uro1qtXXh4ANPRaSYEqO/P/Un4Lt8oz+M1EnD/Ui omB4Y1GmUV9kFM9sw0Ls1GEKr1crb5rv+fSeIjn4YPlie9WdgL5DzPvXY5jtU7Lw9cwS pKNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hF6934KL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j8si9234167ejk.456.2021.10.21.14.10.33; Thu, 21 Oct 2021 14:10:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hF6934KL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232140AbhJUVJ0 (ORCPT + 99 others); Thu, 21 Oct 2021 17:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbhJUVJZ (ORCPT ); Thu, 21 Oct 2021 17:09:25 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91196C061764 for ; Thu, 21 Oct 2021 14:07:09 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id l201so2247425ybl.9 for ; Thu, 21 Oct 2021 14:07:09 -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=3yYwJb9ifQ9bmoE69QsAf8gqXf8CKWrMVHpOE+bbaoY=; b=hF6934KLm3FVSB1ofYwcdSTKcvZU3Z7gKkb+XbGqWMW34B48+xHPUmf9KYJtSBUNp3 tyT14Egp0c3eT5G2DandkyurtPePopEutOv3Nvkx7l0RRmj0qJrh3gqrDIR8F+ca5ehJ 8otBqYbXOIr+t6yaCAxdvp5QvvMruLCeVNq/8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3yYwJb9ifQ9bmoE69QsAf8gqXf8CKWrMVHpOE+bbaoY=; b=jXKp6T5vKag5D0vlqQtnFIEaDDqS6lNAloEWMNkd7kzo08uDjZKml3bv/6FYpQRHrM v6S0v6waUMZ/TpPB9b5ONiH9m3T7oB/xsrGnVcsQoHLonsDTWEeUfFKbz/QdD244LHWk Hqm2AGUGIKDGW9IZIzO63/BK2ZNy3LXhi3Tclm9cwQgtuVG3e4qIZ9w9t3V7qzg3/SAQ nNgUSlOtCKFxIrGGzgIvrAp8DmjvqNtg0ZLu/CkNuKVQly9FkFES5IGDwUpLqeh1+PVK FOBiMr9KtXyjoEC3bE4lR4yPic6NO/wVs+l3aCSIWQMVkXXNVRqTLh87RR1zr5sbVQww 9pSA== X-Gm-Message-State: AOAM5307umodcd1XhSDwr9xp+Hmq2Kv2QEPAA0seG/xsBuE+DWwRSbLo grw+T6zO4CVkZx7LoibHHutGEnoecK+YBVrNXuymWg== X-Received: by 2002:a25:c046:: with SMTP id c67mr758091ybf.388.1634850428382; Thu, 21 Oct 2021 14:07:08 -0700 (PDT) MIME-Version: 1.0 References: <20211016095644.1.I9d81c3b44f350707b5373d00524af77c4aae862b@changeid> In-Reply-To: From: Philip Chen Date: Thu, 21 Oct 2021 14:06:57 -0700 Message-ID: Subject: Re: [PATCH 1/2] drm/bridge: parade-ps8640: Enable runtime power management To: Doug Anderson Cc: LKML , Stephen Boyd , Andrzej Hajda , Daniel Vetter , David Airlie , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Neil Armstrong , Robert Foss , dri-devel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Doug, On Mon, Oct 18, 2021 at 1:43 PM Doug Anderson wrote: > > Hi, > > On Sat, Oct 16, 2021 at 9:57 AM Philip Chen wrote: > > > > @@ -319,81 +345,70 @@ static void ps8640_bridge_poweron(struct ps8640 *ps_bridge) > > */ > > msleep(200); > > > > - ret = regmap_read_poll_timeout(map, PAGE2_GPIO_H, status, > > - status & PS_GPIO9, 20 * 1000, 200 * 1000); > > - > > - if (ret < 0) { > > - DRM_ERROR("failed read PAGE2_GPIO_H: %d\n", ret); > > - goto err_regulators_disable; > > - } > > Above the "msleep(200)" I see a comment that says "and then check the > MCU ready flag every 20ms". That probably refers to the code that > you're moving here. Maybe change the comment above the "msleep(200);" > to something like this if you like it: > > /* > * Mystery 200 ms delay for the "MCU to be ready". It's unclear if > * this is truly necessary since the MCU will already signal that > * things are "good to go" by signaling HPD on "gpio 9". See > * ps8640_ensure_hpd(). For now we'll keep this mystery delay just in > * case. > */ > Thanks for the review. Added the comment in v2. PTAL. > Other than that this looks good to me, which isn't really a surprise > since I was involved in helping with / reviewing early versions of > this change. In any case, I'm happy with: > > Reviewed-by: Douglas Anderson