Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1324009rwd; Tue, 16 May 2023 15:38:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60AqYeW17fhpdanujTxx35EegF9yA6VRuqo0zIA7Ny6k6npfAC6CpfLi9sHQa6AWX438px X-Received: by 2002:a17:903:22c9:b0:1aa:cf25:41d0 with SMTP id y9-20020a17090322c900b001aacf2541d0mr54254368plg.33.1684276694772; Tue, 16 May 2023 15:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684276694; cv=none; d=google.com; s=arc-20160816; b=TzFZda7uwsNvPl6XxSCRKpX2r3Rv00doM8hre+yHJ5jvMFqcjH936PLq1lVPTfdYFC mU+O/BzM3m6i43b7RiXFpDUAyY2/mCkx/rlovD+7rCyNqN4XAt7e0Vl7ZdG2OacutliR VuJFPWagt4TSS2SS/fQEVTfko3BvJ5TRmMvpwLAu/3qBYdLHoQkDO7A1KWPOqujlF84j TxJdrl8jLZW5M5vpEP2Lzt6f+zZhj+EhDs5hoHDud3PqfamLscjfubNUnVl10Fn9r1Wt l3fCivrm55Abh+Ifezsl/wqt8S9iL75Ki/m1uOROdrI/ez/OL/bJuvwXemJjLV5oY8Aq rdJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dgndSkZWPUZJRd5SeDV+wesFmdRbBGGTSW23rdoFQhk=; b=y9c5Gnh/ReOy1nKip7oWjAz2/Rm3i6BHVMG7V2KDts/RzrNynOJ54JSsGCGJhRqT4P pZw9jkCaG5nBB1rFQ16ASURHOn45HvfJF0I6X9ZiqBtR1aPl5TkC3L1vEeNsW0IiDp2U GogKkB3cxP2pUnX5FoAdllp17I6Q74WpJj1Kk2EjLA37OMv1mfn52NeznpmEPZUyWoqy A5oPQhGUfXh/HnVSB3kv4It+98SVXSYd+MzD3moDQyTCj6hexcDzfm0ihBhPVrf7DJlK kbvIJZszwyAG0v1kmLhIgDGPjUNZ5gTgehYCG0Z+QzRmZ5YIeYX2SHaGfTqiTPdX0LzW M9Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bJ9hO2Nl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a170903024800b001ae38227983si2468113plh.199.2023.05.16.15.37.59; Tue, 16 May 2023 15:38:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bJ9hO2Nl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230115AbjEPWXA (ORCPT + 99 others); Tue, 16 May 2023 18:23:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbjEPWW4 (ORCPT ); Tue, 16 May 2023 18:22:56 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94066587 for ; Tue, 16 May 2023 15:22:53 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-51f405ab061so1468087a12.1 for ; Tue, 16 May 2023 15:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684275773; x=1686867773; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dgndSkZWPUZJRd5SeDV+wesFmdRbBGGTSW23rdoFQhk=; b=bJ9hO2NlZEa91lmCBa3cYU8I14iS+hJWAybKXcc7FB03ddDm4YR8cS/rc6QvI0dFgC FqebizI4rr55xrt5xaDss3aSzeIIjKJmpoAwW/Pgf2iXF4H1oJ2aoNScfMLNlSi7nOox CxeB8TUHSPRIf/FPwiDScm7LvUnl/uVClFNLHLB8KkKKArRAMkwf9kKmXViSzmIzvT4F mDd2izzOK7GNQrMDHF8BahFMmsma/ebBFIssqypHaJQKO+Soy9zwv+/H31WTS+e9ugu8 dT+5AGLq1hMmffSfvDXlEVZ49QADAte8VVqvXSPSi950I+r1hoh659pHQfjXyWVFzNWZ fNog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684275773; x=1686867773; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dgndSkZWPUZJRd5SeDV+wesFmdRbBGGTSW23rdoFQhk=; b=LlYkr2pA1Hx5CrXASIQbkRzG8HqSqtP7DexoMd6dmp4+/1s9mwbW765DFwIE1mdb/G V2evzn1jH9npG1mwXEkkHpq4gupUcf2X2Y7GNPlrIRGHztfeDRy4CNeSpQzg26azOKLN K5HCuxcAQLKZOgHztLmrLccmKjUtLM8JOrdr5QLk45vrQQ65lqGtMkwa6ar+t+S3hDsZ mqmYvIVaZcD+dlsYkXHin8slFDwioIWkBpPpy2LFRJwF6uJu9AMqgNnNjd7Ih3r32/KQ HeyLQw0wE8VVnTIJckz62QjsgjKmj+5Aq2GSUH5GhvK+ir6fsuUVcnIYmBvTo6Uu9GL7 HESg== X-Gm-Message-State: AC+VfDy/wwceXmcZ3Vm1uO+lRdTObFbVjchPDLE0A+3yvvDrRBW7vYVD jsnEtOdrGH+PEaZF8NBhrLZ57tFrrPEtpTyJF2s= X-Received: by 2002:a05:6a00:2489:b0:64a:ed6d:53ac with SMTP id c9-20020a056a00248900b0064aed6d53acmr683963pfv.2.1684275773179; Tue, 16 May 2023 15:22:53 -0700 (PDT) MIME-Version: 1.0 References: <20230503163313.2640898-1-frieder@fris.de> <20230503163313.2640898-3-frieder@fris.de> <2225400.iZASKD2KPV@steina-w> In-Reply-To: <2225400.iZASKD2KPV@steina-w> From: Fabio Estevam Date: Tue, 16 May 2023 19:22:41 -0300 Message-ID: Subject: Re: [PATCH v2 2/2] drm/bridge: ti-sn65dsi83: Fix enable/disable flow to meet spec To: Alexander Stein Cc: Andrzej Hajda , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Neil Armstrong , Robert Foss , Marek Vasut , Jernej Skrabec , Jonas Karlman , Frieder Schrempf , Frieder Schrempf , Laurent Pinchart , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Sam Ravnborg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 4, 2023 at 6:12=E2=80=AFAM Alexander Stein wrote: > > Am Mittwoch, 3. Mai 2023, 18:33:07 CEST schrieb Frieder Schrempf: > > From: Frieder Schrempf > > > > The datasheet describes the following initialization flow including > > minimum delay times between each step: > > > > 1. DSI data lanes need to be in LP-11 and the clock lane in HS mode > > 2. toggle EN signal > > 3. initialize registers > > 4. enable PLL > > 5. soft reset > > 6. enable DSI stream > > 7. check error status register > > > > To meet this requirement we need to make sure the host bridge's > > pre_enable() is called first by using the pre_enable_prev_first > > flag. > > > > Furthermore we need to split enable() into pre_enable() which covers > > steps 2-5 from above and enable() which covers step 7 and is called > > after the host bridge's enable(). > > > > Signed-off-by: Frieder Schrempf > > Tested-by: Alexander Stein #TQMa8MxML/M= Ba8Mx Should this have a Fixes tag so that it could be backported to stable kerne= ls?