Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6028772pxv; Thu, 29 Jul 2021 04:50:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjO8sHjbMvPCggvZ8C4Qu3z4TxhXajMCB1x6zoRdGEiAr8IAR54jwx9paYGIIIklKtiP85 X-Received: by 2002:a05:6402:2154:: with SMTP id bq20mr5517207edb.111.1627559447021; Thu, 29 Jul 2021 04:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627559447; cv=none; d=google.com; s=arc-20160816; b=iTv12DPpQZMTpXgBAjMuYNDjRiIr4xw8HqulCJEwkjhp0RKvvO+ZeOfvLZSYv4GO4R uLeCvYvrOdcIanEGDGjjtcbQYNe99llffk4xnlNNKymfqFD26D+guxwD0JPspcVj10qr dTFHg3AwkKczAIJAFB7IHCZ0VBLRYVkh6QbLVJFLCi1lfSfK5b0/e0HoUM2fOO+/TxfX O+c1fVChRovnXmoqchJ9dkmaf6BJ/CNauBleyyoyHpghMmLAVIgndtYl/lgedI/YSJTa JhAeZWqcZTgNuRjtHG3rWCcLpsmgpoRZLUTJmH0wnvdNV1qwtwqp5umSq6/b89QazJFR /5mQ== 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=vxhHsDrYpm2kI+mPYAlWy7FpBAReDvQpjfpTvihE1ZE=; b=Dj3mAgcyID+YYZGkLaKGylf/MlxV9E87OWRFDX2gHA595NzJpe8D4mAizawG1XEsw3 y7ARwAjSWUfZ/UMpB4gBTcZGs6A/FpXRApIFPqUPgnzu5tylQ89QpJ4W2Jy/vNkVr4Aq rzOkmTMe8Nw8L9BmZMH9Nhbl0LFg8JRPL/G1FiOsNBOz4iZlpLBJ91ux0WAR5YPU79Ih DV9lk1t9GcUXPW9lr9y4XepFaxIKzNitfxj8pHprrlq0vzuI4rBSd5lekgo8hCn17t7A 5rGPj6P4e4hh1tT4aES3/V+axV8ih39AYgDR8BhUvgNMiCD7hv1ePYKn+fhfpgXQ24lG NycA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XQRdVrXr; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si2391574edx.584.2021.07.29.04.50.24; Thu, 29 Jul 2021 04:50:47 -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=@linaro.org header.s=google header.b=XQRdVrXr; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232122AbhG2Lsu (ORCPT + 99 others); Thu, 29 Jul 2021 07:48:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232149AbhG2Lst (ORCPT ); Thu, 29 Jul 2021 07:48:49 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E13F9C0613CF for ; Thu, 29 Jul 2021 04:48:46 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id f13so6695636plj.2 for ; Thu, 29 Jul 2021 04:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vxhHsDrYpm2kI+mPYAlWy7FpBAReDvQpjfpTvihE1ZE=; b=XQRdVrXr9ifqpbu6q9ewzE9YUmb4YMlVLGs9JHdGfMbmKe4kAYHSv4WY20+0qdxfGm 5BRybZX5w7SbfyvL9iAXSPOh+xRz8VcvSemDzrTqs4EYxxlH1Eyy7MYcKqSFAWUcrANW iCFxE6oY/wFgElEjL5ktNZGFCcUNqiWgxMdKfhmiVshMAGlHBWppJ0DsRjBLnNKMr0qi osBMKIoO2gsGMbqJSgLmJHcoHZnWU/xvWKoPelN7JheEAJoSsQG8hGpE3X5LyqjG0cgT n8MTJSIDHwUhsK7k+/z9x1Kx2RmeM+/xweoby9TWdXrHItl342LoXyD+wooRp4gOpf+1 MCKQ== 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=vxhHsDrYpm2kI+mPYAlWy7FpBAReDvQpjfpTvihE1ZE=; b=VmQLXkDoR9jRYNra2FINXXoUrj1c5skyTLkvfNi2rd1N2iRykNm7JY0ZAo+//f9Vak FNomnki5Io/DaBS9EUx84Hhqcg0xFkvcEFkB24CQqCN9o5plYyzpFVUScwEpxwjzogii qGnGG5jE0k5Q7cBSnzZ0DUHakTHMUsXsrleo3FeYnffiEXCNCuJsdw9pPEt5PWxIB5YJ ZCUCfT/tuSTPDbOYj3HG/fpcO/d0ZMPgQBlQZ7m9oeBvYMttXWXKyfP5TEaSCNbM0/ek ZbEKK5qOt3ta3cI/OwczAbhzJ7BS/44d3Wxutd74PSQi0EWWn9Drpy7CKUdrXs1N6oH8 1KGQ== X-Gm-Message-State: AOAM5324jh3Ubcy3NMyKm5wiUXBxsHeI6ibuC+1Bvb8nZ0AL++7aaaLp 5n056TVAB4Xrkvv2k5asQLf3+EDSISAKVDUbVXW5Ig== X-Received: by 2002:a17:902:da8a:b029:12c:4261:a2d6 with SMTP id j10-20020a170902da8ab029012c4261a2d6mr4372829plx.50.1627559326287; Thu, 29 Jul 2021 04:48:46 -0700 (PDT) MIME-Version: 1.0 References: <20210728164557.1882787-1-dianders@chromium.org> <20210728094511.3.I842d483139531aa4651da8338512fdf0171ff23c@changeid> In-Reply-To: <20210728094511.3.I842d483139531aa4651da8338512fdf0171ff23c@changeid> From: Robert Foss Date: Thu, 29 Jul 2021 13:48:35 +0200 Message-ID: Subject: Re: [PATCH 3/6] drm/bridge: ti-sn65dsi86: Add some 100 us delays To: Douglas Anderson Cc: dri-devel , Thomas Zimmermann , MSM , Andrzej Hajda , Sam Ravnborg , David Airlie , Bjorn Andersson , Daniel Vetter , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rodrigo Vivi , Jonas Karlman , Neil Armstrong , Laurent Pinchart , Jernej Skrabec , Maxime Ripard , Linus Walleij , Maarten Lankhorst , rajeevny@codeaurora.org, Lyude Paul , Thierry Reding , Steev Klimaszewski , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Doug, Thanks for submitting this. On Wed, 28 Jul 2021 at 18:46, Douglas Anderson wrote: > > The manual has always said that we need 100 us delays in a few > places. Though it hasn't seemed to be a big deal to skip these, let's > add them in case it makes something happier. > > NOTE: this fixes no known issues but it seems good to make it right. > > Signed-off-by: Douglas Anderson > --- > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c > index 5e932070a1c3..cd0fccdd8dfd 100644 > --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c > +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c > @@ -307,6 +307,9 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device *dev) > return ret; > } > > + /* td2: min 100 us after regulators before enabling the GPIO */ > + usleep_range(100, 110); > + > gpiod_set_value(pdata->enable_gpio, 1); > > /* > @@ -1096,6 +1099,9 @@ static void ti_sn_bridge_pre_enable(struct drm_bridge *bridge) > > if (!pdata->refclk) > ti_sn65dsi86_enable_comms(pdata); > + > + /* td7: min 100 us after enable before DSI data */ > + usleep_range(100, 110); > } > > static void ti_sn_bridge_post_disable(struct drm_bridge *bridge) > -- > 2.32.0.432.gabb21c7263-goog > Acked-by: Robert Foss