Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8747146rwb; Thu, 24 Nov 2022 03:54:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4o556WjJA500OWtLtoTHpdi9QvbuT7k4Lw47mzN1y8nhlXdDEkvGfBv+BdKh6m+Gr43yuO X-Received: by 2002:a65:63d8:0:b0:477:172b:c350 with SMTP id n24-20020a6563d8000000b00477172bc350mr13180641pgv.313.1669290851919; Thu, 24 Nov 2022 03:54:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669290851; cv=pass; d=google.com; s=arc-20160816; b=CKt7bSj2RsvVmtn2W5yl2Z+RqKsGoYtibGf/Pu0jcWq/PFpW780aROKIxZY5mMcrwu F/cJVDOlmlf3EAiAR+ccLX+WqL8ri6TQcW1JhdjDV4f/I0zhIF+LvFnY4czwXsLzZdQ7 an9wvpdcgsL4OHIHPxRe3qDEvvuDbchnu8btXlVcC7ZpSorh63y3dQ3p9CHLUIehFjBv ifDig6+szKJkDtLL4dIvQVN4ujJ2TDPgZCZMHOVGSivTyB644rsTMV9Qef6Yoz7cIsTH Qjcs0aWuloCjWuwAJzLN6xnBsyZgy+L0n0wMx1aJFiV+kUfc6TM4MFARtCg5xmCoM/R7 /WHw== 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=u3KCeUxHu+9yXiuqYH6U2/Fhmu/Gc233exheznak8po=; b=q8Dl7UpLiCh80u3mVC/h5geh0V8UGmp4ZcgoTFY66L2r8bv9qMQ08zaIr0q6G5dVgq IdNAShlzrY8lwTznb3TqTIZMRVPUoV6U9aUT0X7GoXOKS93jxvk350oyA+ld1rfkGzKx kLzJx/giV4zBmaeePncRIXfJ3pJSPV5pnk5SHNyfYWSgvw3DCK+rrmvm+Fy59Ep6hszS kaZP3DoE4O1YTz6J8o/e8gYfeC69CUBDkUjcVKeGbNfjcWyRO4pNymaDiRI642VYEgFe yStqI3b0+qp0Bvxrvm7AgXkqapCyDv3aCBIpT9tCvnTtI6bahGeGa3RvgZYspoFQgCEK TQJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=XJGKDdxq; 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 n12-20020a17090a2bcc00b00218ceebbcafsi1512437pje.130.2022.11.24.03.54.00; Thu, 24 Nov 2022 03:54:11 -0800 (PST) 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=XJGKDdxq; 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 S229844AbiKXLHn (ORCPT + 87 others); Thu, 24 Nov 2022 06:07:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiKXLHk (ORCPT ); Thu, 24 Nov 2022 06:07:40 -0500 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2119.outbound.protection.outlook.com [40.107.22.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C476CDFD8 for ; Thu, 24 Nov 2022 03:07:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bGArxtKZIzlDKb2tbWkyk5jI39MDzF5D2hTE1nY9iMRS8KkzWOq1OQXlEc2Flz2ksWfDamTjdFjR/kTszsKAA4gPmOJxRSt61XCbhP4HC946C+SHYlfgfbAXod99UzsTqKMj9IqTSl0ActSTJdV5KDJ9MBnMzgLSqVRpS2gMvVndoLi4Zx9CQcH01gTK/YoaxclZzPpjZ0wL10FcqZJzF43ljduX0RuhYsYJxww5suhOQ9BQxef7vhD6f5l7PMJ/a3redgdEP8oJvjiletSY0iOUPje15ziuPwm15YBi4DDlSWiy/hxSoWQsxLnTEPUQA2LXNCGaCfHm/RRGTIMCJQ== 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=u3KCeUxHu+9yXiuqYH6U2/Fhmu/Gc233exheznak8po=; b=L2AyRCvXRdP35e6MiCbNdhudqR7j7BrAvcGD2i6Kq9+e+yUDcrgW3NoZ0ewtaLuADBcHy8Iz24ufHAlahijhzYPqOb33FCaiJt88DbZCwSe9VsIxe0sw710OcPoOEuYq75NMgyyY5Q6KIuaBB4hZZpgL1pqi31JGxxagj7NsFS95zB+IiO98QK4ALlvzYafVMT3mqIggVzuw9Yda5uFd6WFalOX8DRr813+rq8owpPefelJ9X8AVp0lGshcN/wcZJN71Tv1Ca2o3YEU0TxKXw9RUgzQUfIkw0UmGPfefM9rpnPjqmxcZJXx3YY35ctuSeH7NEDuaTyVuBfM2FjMPkQ== 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=u3KCeUxHu+9yXiuqYH6U2/Fhmu/Gc233exheznak8po=; b=XJGKDdxqG1jFuQZpIFFIQC795stwYjN9cfwp2flhO2jMzDxZBsMEGbb2rWo4SJp/SCNUhIS67bW/WCWqSQTe2ONxes7HLsrVd7txlCeDzpp63ObaSCKPHRPwZR2DT1UiGI9kY5OHV7uPuBRQ6BeiJQgXA6tDAcQnfuDGixTeceQ= 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 AS4PR10MB5394.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:4bc::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.19; Thu, 24 Nov 2022 11:07:36 +0000 Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::f209:bc86:3574:2ae6]) by PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::f209:bc86:3574:2ae6%4]) with mapi id 15.20.5834.015; Thu, 24 Nov 2022 11:07:36 +0000 Message-ID: <7761d66c-a8a7-c11a-9c09-a47f57bd1311@kontron.de> Date: Thu, 24 Nov 2022 12:07:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] drm/bridge: ti-sn65dsi83: Fix delay after reset deassert to match spec Content-Language: en-US To: Alexander Stein , Andrzej Hajda , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, Linus Walleij , linux-kernel@vger.kernel.org, Marek Vasut , Neil Armstrong , Robert Foss , Frieder Schrempf Cc: Christophe JAILLET , Jernej Skrabec , Jonas Karlman , =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Laurent Pinchart , Sam Ravnborg , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= References: <20221122081219.20143-1-frieder@fris.de> <9079928.rMLUfLXkoz@steina-w> From: Frieder Schrempf In-Reply-To: <9079928.rMLUfLXkoz@steina-w> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR01CA0117.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::22) To PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR10MB5681:EE_|AS4PR10MB5394:EE_ X-MS-Office365-Filtering-Correlation-Id: ba3ca9bc-9b96-4d99-6df6-08dace0c17c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CNMQAk/Rh/YW9SsoW89BoUfBPibd7ENb9MiGrHxK5EhkJAKhz0MA/VpGw4JGfZ/mOTIUgLruB958sIj7x6IOPrRnX/pD4H6jLQHoPibi/KnVbpEHaEhsDCM3cOaWBiliXqecv+PQqzBTAzBX2qtml+y5BseliV/e2IEapgqUpsVJC3mejdvHRuJS4/GGtaKrB/VqeM2nWU+u2j19wh5D7FxhrBoN4m1B41WaHsnckmbJaK4ukIgv0ToCoO4wDml5A9zIsmJtzuAav/FPmo5U28V3fTdsdBFiMd4Xq+9ZCKkWELiHgo1EHIHqpZjEJhVQcJ+bSKOsEp4pavZ1o5n3LQhl5JHyGe9wlSHX7Hs0wZ49fjsX3UKfDDgeDXvm1DLD4RAlCG7Fpn0fZ0sKoNtIbfX5Uz/bTYA4ZhPLv3hQFE46j2bhdnkxgytnKjHZZmyMBl0Zfklhkqe8gW3Oyps6L60R0inyOk1txflC1S3moioez+c1/iGAKkMQWZbOEGf9yHMWXhrS4OhRboVT/FvbpxKiBcxWcirC/qiWXQ6+CdkAXTBVlwT/tYRGOXAwk3g5lESDZdR229bodwYIsVZoerM16/HBhifa+eBdY7jJZFz1H3ZBz1KqVD2h/AS88PkrkJdFMrBANvg/6qUU+YycyledDsnzolfBAU/2QwqLQaJfgILqpFRMLzotEdzv9IykB2pd4+5+x+OUBwuMF9RVRbZMcilf2Sgs7TK2nAXpvDxZMuwQuVSm+6/9VOM8902D 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:(13230022)(4636009)(39860400002)(376002)(396003)(346002)(136003)(366004)(451199015)(6486002)(478600001)(38100700002)(31686004)(110136005)(921005)(83380400001)(6512007)(6666004)(2906002)(44832011)(36756003)(6506007)(7416002)(2616005)(31696002)(8936002)(53546011)(54906003)(186003)(316002)(86362001)(5660300002)(66946007)(8676002)(4326008)(41300700001)(66556008)(66476007)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TlBueWhudUNYa1l0cmtIbkVGcm5VM1grTHdWUWMrM1U3MURML3FhYlkyeXIy?= =?utf-8?B?Z1RzeGJNZHpqaUJXdDd2VnUwL0ZCeDU4aHBVMVd1djdkNjB3Tkl4dHg1L081?= =?utf-8?B?ZitNWG0zdE1FaDdTUmpPUFFKcE9ZR2ROQlU4aDBGeDY5V2J2SW9sRnRZbGU4?= =?utf-8?B?Y2Rna1ZJQ2Q4MXpCZWpNU3ZIZndSTS9NWnhjU1pJTGI2SittVllnTkIyajhz?= =?utf-8?B?ZG01YkdIVmowTjBucURzMis2dlhUbGlOUm9MdmZrMmo5ZlM5MEk1YXU0amZB?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ErbHp0MEVSNys1aEYzQmdaSmJH?= =?utf-8?B?VGxuRTBiNzVucnB6aDFFcHFKQVFTMFlsby9XdXcxR1BRS01pVmhadzYyRGhV?= =?utf-8?Q?+lnwdj0Ag7RgUrRG1l9hHnLdAgnbGeA6JxVU/Dtd+Vf2?= X-OriginatorOrg: kontron.de X-MS-Exchange-CrossTenant-Network-Message-Id: ba3ca9bc-9b96-4d99-6df6-08dace0c17c4 X-MS-Exchange-CrossTenant-AuthSource: PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2022 11:07:36.1118 (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: P7RgX/UHvTaUWmPx/CiwiCMi00MzrXoqj+n0XzVeJQ38xqVUBHDDjTPmcKs6W64urlryyWPWnSnAaAGT+Fmcrcl9uoaCMW0TvijOXO9f91Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR10MB5394 X-Spam-Status: No, score=-1.9 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 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 24.11.22 12:00, Alexander Stein wrote: > Am Dienstag, 22. November 2022, 09:12:18 CET schrieb Frieder Schrempf: >> From: Frieder Schrempf >> >> The datasheet specifies a delay of 10 milliseconds, but the current >> driver only waits for 1 ms. Fix this to make sure the initialization >> sequence meets the spec. >> >> Fixes: ceb515ba29ba ("drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and >> SN65DSI84 driver") Signed-off-by: Frieder Schrempf >> >> --- >> drivers/gpu/drm/bridge/ti-sn65dsi83.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c >> b/drivers/gpu/drm/bridge/ti-sn65dsi83.c index 7ba9467fff12..047c14ddbbf1 >> 100644 >> --- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c >> +++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c >> @@ -346,7 +346,7 @@ static void sn65dsi83_atomic_enable(struct drm_bridge >> *bridge, >> >> /* Deassert reset */ >> gpiod_set_value_cansleep(ctx->enable_gpio, 1); >> - usleep_range(1000, 1100); >> + usleep_range(10000, 11000); >> >> /* Get the LVDS format from the bridge state. */ >> bridge_state = drm_atomic_get_new_bridge_state(state, bridge); > > How about using fsleep? > > Either way: > Reviewed-by: Alexander Stein Thanks for the review! I didn't know about fsleep. Anyway this would probably be a separate change as the driver currently uses usleep everywhere else. But I will keep it in mind for the future.