Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1519686imm; Fri, 6 Jul 2018 01:24:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeAYUcHVpTeMpNKyEDdyc2MmR4V44YVOU5ztTY1PQlCFlX6U8fXrC1VtGiewCE6L2WGPP2Y X-Received: by 2002:a65:5b08:: with SMTP id y8-v6mr8374255pgq.297.1530865460943; Fri, 06 Jul 2018 01:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530865460; cv=none; d=google.com; s=arc-20160816; b=yTX6uSnAq0/NhiJfb+lBb52Vu5RUl2aLIj4mebxFTHWSsB81pisPv2AZlQKptFQcl7 UOM5+nRHcjaAi+oRS+EA6xnOFNTkJDl+16g7JG563l81mbkPz1m0K1heH0MYMeioyHhE R9N0cCmFSPBiz6cR7bPAxzstu9+fhvN3X1IgiEiiojU22N2dTVj2t4HRwa3lz7wke8Oe QWmpyvOJjSsV68EEoAQcMQe8LKAV30bRdD92JlwQQsnTizPhHbhK+n+hpGgdQUQF7QmW aoW/KVxQceGl4GYNbOl/sWsKUWfMLFKdtro6rzuDl33yrUdaFHQrLuFdlKCJh2tsfZ8Y bVRg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=CU8vMdT0tdTTSdlSyG2h3EYW/0h+m4Lj1SFLR5c2pm0=; b=H3uEzDGeXm7eP3+izsOkr18qQIqhLtUuCj83BmKmjzfYYt1rEM5ZJI13jWYKC/3Lbq S/jPaJIrHBuZlsbaNN6pBr5ZmU/QYdvimPJV8y0mxUWk522EIzsph6HG6Hqr1YGOnBvS Ah810kq60T+lVjxR7kpD+TIbtR+1gCMRNeK4iSA2MovU4evuaRm02gEdDCJu6Iovruwf PnXw7h0tVYGnLktY1bWzQZYt5CY2NNgAMdy8gNT1DhTNhGegfDJqlmrFVnF6o72kVpFX vVdjBg+oJd4Hhxn8qw0jqx4T77lIutJwuD8cWmfpHCEfX7kDdQsdry2GB+5opzX835mP yTjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SF3x0/55"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14-v6si6202437pgp.155.2018.07.06.01.24.06; Fri, 06 Jul 2018 01:24:20 -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=@linaro.org header.s=google header.b="SF3x0/55"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753732AbeGFIWq (ORCPT + 99 others); Fri, 6 Jul 2018 04:22:46 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:37130 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753690AbeGFIWo (ORCPT ); Fri, 6 Jul 2018 04:22:44 -0400 Received: by mail-oi0-f65.google.com with SMTP id k81-v6so21972829oib.4 for ; Fri, 06 Jul 2018 01:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CU8vMdT0tdTTSdlSyG2h3EYW/0h+m4Lj1SFLR5c2pm0=; b=SF3x0/55SUWQBo2CR6WQI6+2f1wdIP5AGvbqK1q6jnT2V+rwXQE+XB2N2eAakT2XKQ QkCedCa4/r3WiHWHv12E+2Uf+fDMolV5s5gnshHe4t17R/iVV39bbWYoyg9UJ3JHk0Rv kTKqX8yxRT2uFkmWqp4xIu4u4gmOy5nonUV9U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CU8vMdT0tdTTSdlSyG2h3EYW/0h+m4Lj1SFLR5c2pm0=; b=j5OXOdiBGDSgpfh/qSQ7vuYCh1R0e+Uzp49G15pXS6mT9l5vyMD2Lw09e1yapFrrtg 3pKWwjoFCpUMVeb5neEKzcPqcPx3NrgdO0G3jeBxG7/7qa0ooh/Ovv2+yZNsYw2wunJa HLCEa03HQFqC/qUQrjWDg6lqvQ/QWnfHbhNvwT3fQO1FLDkY1Ikmb8qDX800mVmUP72h D64UBISgAfA5c8UfzzpinHPjG2dezJFK2WcAw3lTtr3aMNrBp+6y/MXrkKD/k1ydYpAg FGTOTmQjBdVc5KZgYr6ahR3dbUOc5+FrrtV+zOWpOzSjT7xwCZ05LUirJmcmnYQON7ci dVoA== X-Gm-Message-State: APt69E1L3fTb+TNmO5rpHC8GTWBf0iq3BItBYCrfU+6vkWL/nKyfIi12 y5pZfTd70likLPavdlr88V6b32Dr1Xi3QQPlQPPQP/mjL2g= X-Received: by 2002:aca:f401:: with SMTP id s1-v6mr11162480oih.269.1530865363608; Fri, 06 Jul 2018 01:22:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:192d:0:0:0:0:0 with HTTP; Fri, 6 Jul 2018 01:22:43 -0700 (PDT) In-Reply-To: <1530271355-5608-1-git-send-email-yannick.fertre@st.com> References: <1530271355-5608-1-git-send-email-yannick.fertre@st.com> From: Benjamin Gaignard Date: Fri, 6 Jul 2018 10:22:43 +0200 Message-ID: Subject: Re: [PATCH] drm/stm: ltdc: rework reset sequence To: Yannick Fertre Cc: Philippe Cornu , Vincent Abriou , David Airlie , dri-devel@lists.freedesktop.org, Linux Kernel Mailing List 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 2018-06-29 13:22 GMT+02:00 Yannick Fertre : > Reset must be properly assert before deassert. > This is important if there is an early boot splash screen > before the kernel start up. > > Signed-off-by: Yannick Fertre Applied on drm-misc-next. Thansk, Benjamin > --- > drivers/gpu/drm/stm/ltdc.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c > index 96d20c2..8f4606d 100644 > --- a/drivers/gpu/drm/stm/ltdc.c > +++ b/drivers/gpu/drm/stm/ltdc.c > @@ -1130,8 +1130,11 @@ int ltdc_load(struct drm_device *ddev) > } > } > > - if (!IS_ERR(rstc)) > + if (!IS_ERR(rstc)) { > + reset_control_assert(rstc); > + usleep_range(10, 20); > reset_control_deassert(rstc); > + } > > /* Disable interrupts */ > reg_clear(ldev->regs, LTDC_IER, > -- > 1.9.1 >