Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2952511rwd; Mon, 22 May 2023 06:45:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zs6ptE0AeQ0YdSQ0UHGEgbD8YvI1s7tTfFDvTzob4I3Gj6BfmLL49sU/6bu0sjkTbodgd X-Received: by 2002:a17:90b:1a8e:b0:250:a4f5:fb34 with SMTP id ng14-20020a17090b1a8e00b00250a4f5fb34mr10518535pjb.2.1684763156235; Mon, 22 May 2023 06:45:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684763156; cv=pass; d=google.com; s=arc-20160816; b=XbVdySkSLP1aNENdVN31gzEb1nX3gQ7lfyjgW/hLE7REubKTM3HtW2btNKDMkyuCS1 gsNYz+sDgxHZAQOQEaQiOHbi3e6xlHNlX2sfSPai5AODrvc4LZqgHJgDGk1B2wuhopNl xZDdU3Sa48B8uHA1l/DsmMLjfxYi/MqD4679wcfn3AMX5IE8M3h+FP+8p0ssi27k2A0O OlF7b5cML0ecG/UNkMeQ/PATJE5ZeG57N02A/8Y5s8o/sqrlMbnr+z+CFBNHV7uOprJB zmjVNaT68k0I7AdLsk6sj689gt1H22+qU0tT7gtELOsOUB7oGDEOsOA2MY6NbWbgRmX4 HvHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=OC9o0ifapU5wn0ZTVsPDRkWJiob5FG4zqWTHmSI5EuA=; b=qFZKz7NHjQODChDjTdpyMm2Ou7+xbpvJOQOZ5MVcLxu4OSzGE1sebed/nutYMgWPQF 3OFYH45lZ28O06G7/DPO7ATNCLSbD8tQ5aEsCw5gGHGBW2N06sAZQ2D9PhPbmMwDIUg9 FMkBuZp5IphVvlbncnFY1vNYiLHb+J6E6a0vbZRlXEQTZ8sO1NNpCUl2BpAjbtowL9gE 20Ooinc7wzVHZ/K+gaUfEre8y1zmjerZw08mouNRooT06HZYHhi3V6nFtjpvqf8Cyo+V 47Bm1/e/kGHbSVI9xYqvFgwPXcJs8nHywe/L/Ja+2tN8kJBoOHRfL/EmdyuZqbM+1gf8 ketw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=hDsDExni; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt18-20020a17090af2d200b00246b0bfcb5esi4718645pjb.144.2023.05.22.06.45.43; Mon, 22 May 2023 06:45:56 -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=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=hDsDExni; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233737AbjEVN3g (ORCPT + 99 others); Mon, 22 May 2023 09:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbjEVN3d (ORCPT ); Mon, 22 May 2023 09:29:33 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2128.outbound.protection.outlook.com [40.107.22.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CDF3188 for ; Mon, 22 May 2023 06:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mXpMvck6jljxhDmNXhgXtu6EviNIfYi5ENjl3i7juWLzFFSCc+ieYZ55jsLRkJzporhgakytKaxBNwiLcppw0bou8Ab+aeAsgk6OP1DV1cJ3CzXGzz6rRZxit+JEzhcFwhbtC+An80xm74PMYSzcAvTrkQuq7+xNAQ5Bp2NQYzSAyG0z/vgfs9TJeZrur2E2FB4kEzPw3py2HUuLKREvO4agTh9bdw1ah/FwPGW0N9rcaxRsPyj2Wh5OCoqUuF6Q/I0hKpmJiiQUWGsrlNsSkXAOh9P/1gq+GUnN3duRO7yjmssRAGzWOizWSA0XO8ENLR8MW/WjOiLLm6lZUuQkHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OC9o0ifapU5wn0ZTVsPDRkWJiob5FG4zqWTHmSI5EuA=; b=dx74YBNykkS2nW9IvE8foRFKD4NiwWqBeH1KLms3S2btkoQ9qiSW5o+LhkxV/hKxysDoJGMPYDi/6wjw/oqZE09PmD00vW8AVfsdQ6DI0WF/REaCQ0nCBJfXjSIgq+oTmiwA6+KFV7kzxEUP+4LIM7SCadKoItihgi4GaET1tToy9C0A5vBQzOHMu7bSEP0fqtcHbfncZbpwtJPZmvCfaUxvO+9pCSClyQqerYVLZx1NfqBS/3YD6nAl9MFoyVd1GXV6kP9IkA4VNklUrs7KTE6wnXtNtIyrlDNkHoQ8T1yrR/G6dG6PuZgkMD9yDjZOODTnarbxNOVN7thLXvdcpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kontron.de; dmarc=pass action=none header.from=kontron.de; dkim=pass header.d=kontron.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mysnt.onmicrosoft.com; s=selector2-mysnt-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OC9o0ifapU5wn0ZTVsPDRkWJiob5FG4zqWTHmSI5EuA=; b=hDsDExniLnvx3L9wsQGtD7NZLBEcwPpVEZ1V1GBI/4ioi7l9Voaebx1GkUKZ5Ri0Sq0BQQ2BrDchKO64Nqpf6OTGn1KhN34B4yx685tSae1gzttHBQhqLIFod/RPOP4JNV9JvcIj+pZIzes93l9KhSO/3FDWLP/HIVmqnfGx4yk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kontron.de; Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) by GV2PR10MB6983.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:d9::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Mon, 22 May 2023 13:29:09 +0000 Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::fe53:f0e3:72f4:6c80]) by PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::fe53:f0e3:72f4:6c80%7]) with mapi id 15.20.6411.028; Mon, 22 May 2023 13:29:09 +0000 Message-ID: <44988709-f04c-6ccc-1d8f-eed939a643ac@kontron.de> Date: Mon, 22 May 2023 15:29:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 2/2] drm/bridge: ti-sn65dsi83: Fix enable/disable flow to meet spec Content-Language: en-US, de-DE To: Fabio Estevam , 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 , Laurent Pinchart , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Sam Ravnborg References: <20230503163313.2640898-1-frieder@fris.de> <20230503163313.2640898-3-frieder@fris.de> <2225400.iZASKD2KPV@steina-w> From: Frieder Schrempf In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR3P281CA0071.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::7) To PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR10MB5681:EE_|GV2PR10MB6983:EE_ X-MS-Office365-Filtering-Correlation-Id: 53b2ab8e-5f28-4d80-0392-08db5ac8861f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WzCAS9nn2ZJoTOk53bg5+8b7OVOoiA0gS+4eMvfDnlJvQZhLshXVJPhfxCPcAW7YpyTgxBF6JytVMh1WQF/GZ85AxAkkvj0FNwg+XFbOg8QlNURKTWdJkIdhSXFfIrbK2yRsmjQIWSSxAuOZm1P+f4iIhTcHptVHnnrQOfh96Emct1+XSLUp36qY+b/t7iaT9fhgLJlkvgAf/Luwy0cNvDUTDFUqexW4aTsqzbmYfOZNlFwYbf3pF7bX7SeVklY/QIzSNyt1YuSLno6jlrpCXLPovSPUHe2SFySjIj3SOdMDfmXJv9+i3KNSOLxyykbrt34jEbm5AJwdxtEdj73jDVlum6RATJmG2RocZancZ6wyZ5i43g7rwe2LT2akaYZFu+XzC4S6XnyblPZDrjQJOtqFdxPHcL+p8BomjzVb+mp3wQ+u0ZVhl26Dt26OS45BNC0KUTcr1E8nA5SDd1BMQ3touuIFKT3eOMKHjYvLQMQCh7vU/GO1hzuz/NkcU/pTyU+YrTzVDzwX3OH6h6b5uRysCZclh2cpNDkcGGV9gvEi5YJGlZ37byU0swZ4yEUGdUalJ0h9YeErE54BgGbqaqZSeMB1BKwtO52Wiy5GPqag+1NeqBed4kEwGoN8/DNa7nTggz8K+SluQshdnhtiSw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(366004)(396003)(39860400002)(136003)(346002)(451199021)(110136005)(6486002)(86362001)(36756003)(478600001)(54906003)(31686004)(31696002)(83380400001)(6666004)(66476007)(66946007)(66556008)(38100700002)(316002)(4326008)(6506007)(41300700001)(2906002)(26005)(186003)(7416002)(8936002)(6512007)(8676002)(53546011)(5660300002)(2616005)(44832011)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L3BZNFBSSzlpWVE0akxwNXhtb29CZERSeUduLzdPRWk4RnpuNjNMRUF3VHdr?= =?utf-8?B?QTB5ak9kZG9HTUdRNjU4bjRqaHk5YnhNSUFLY1hvTXplbFp3Q0Z1Qm1vWWo4?= =?utf-8?B?VWkzVHQrN0MwZ2RMYW1jbmc0U3lvTkJ6UFF6enY5NUhzN0l0MmVSZXpUZU9F?= =?utf-8?B?dE5aVFVqSWROUGFIWThjY25FYzYvU29za1ZsQThTNEdFY3AzbTBQVEYrOWR5?= =?utf-8?B?Nlloem5uSjhYZ05UVnpKbDJPK0lURzU1L0YrbXZwbXhoSjBPRkFPRkdPSk1P?= =?utf-8?B?aFlERkpsUkRjdUJOejZXT3BhcmNHdGx0dTNhenRGaVN6VFUyejlIeUF3SWF3?= =?utf-8?B?dXhqaU1CMTlBSjBqRzg2U2VFQWtwSTFINT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X-MS-Exchange-CrossTenant-Network-Message-Id: 53b2ab8e-5f28-4d80-0392-08db5ac8861f X-MS-Exchange-CrossTenant-AuthSource: PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2023 13:29:09.4524 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8c9d3c97-3fd9-41c8-a2b1-646f3942daf1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GejC6qP7GpB1c5JnsMfaZyv434+fafxYAqW2cWD2Qdmnioj/lU+VLRXsZV8iC9ZHW2+4D7aVuGTkS4s9EM+jUS74/ED3UdKK042m5wWx0zo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR10MB6983 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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 17.05.23 00:22, Fabio Estevam wrote: > On Thu, May 4, 2023 at 6:12 AM 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/MBa8Mx > > Should this have a Fixes tag so that it could be backported to stable kernels? As this depends on the support for the pre_enable_prev_first flag, currently the only candidates for backporting would be 6.3 and 6.4. I can't tell if there are DSI host drivers which already implement the proper init flow and would benefit from a backport. Anyway, it shouldn't be a problem either so I guess the proper tags would look like: Cc: # 6.3.x, 6.4.x Fixes: ceb515ba29ba ("drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver")