Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3092334rdb; Wed, 13 Sep 2023 01:29:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqkuFr5AkaCRkMWlHUkEC4oG6p3nP2fPossCf4TotFx7A+mZ+oSErBie/RPLkCn7FeurHT X-Received: by 2002:a17:903:234b:b0:1bc:edd:e891 with SMTP id c11-20020a170903234b00b001bc0edde891mr7297460plh.1.1694593793954; Wed, 13 Sep 2023 01:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694593793; cv=none; d=google.com; s=arc-20160816; b=E+PJ/2GYuWlGq0LKA5yYyX4lC1YeJV2BxahjZBeRexxY7vwqyjSRbO6p31/ZvevKzB CW86QxDkhbiwBz8AbO+P8ACO46SUOBb6sV6tH1symRSDswBd0qVL1OMWfXOU5/dglIlF JTtGvxJsHudTxgCY/fEQcdtAKkBd7UrauIHRS1NwstYZVKkvE3LCGMCVvfZEoANcfx4r g9DVZblRhZJotzIJHDBScCnLZS9tALa8d0dD3f/JHHS3Dz/24xG3/Fz8a6Az8ZCr7DVS BXwVkAiI2P7fMTJTCEhATpyhQy3cSRx0HK8YCatkdFcSUEK8SYNLigdQH6hXt+8qwwFL Gifg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DSzx26HoAyzN5Yk13JGxDYUJUjoOKCSACQ0NPGAEqmw=; fh=pizGQmQsBhPFdG3wE+A4SsnYOqyRoQopqmsXCsoBAQ4=; b=j6ARHhguqUstyCmNGq3uSbj+UlmlNnjDFRvh5eoiHPridYv7nbx5NOupfJu7EvTace aaeGry6Cxt1ftQMs4y2rAnoIrKwoF3ZmfBKK2A2WBXnDgxcvHLDnNCowFSXtqPb3OtUH jLJRMuKhD7s8pPLbGuhhH16jPatgQJfEicGKfv+ek2zXbhMPJ1L0Edck+bpR7R1FKXCO qs+aknFmWnRw7HOLOjtc64tuwaSrb1d9Cl7P2KHrWpS1jRNu2cVKJ3UhrbC4M2kQKYsx dmN76JSsWf5E7TG0+J1aMfAT+9qeoZHRpZjUr9zvZdg42Bcj13WKqD7Haa9iEvSrFuGP dsiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id kx13-20020a170902f94d00b001bb9375b349si9595939plb.536.2023.09.13.01.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 01:29:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 67EA68069D81; Wed, 13 Sep 2023 01:27:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238823AbjIMI1S (ORCPT + 99 others); Wed, 13 Sep 2023 04:27:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233957AbjIMI1R (ORCPT ); Wed, 13 Sep 2023 04:27:17 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A24F4198C; Wed, 13 Sep 2023 01:27:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 03B028088; Wed, 13 Sep 2023 08:27:13 +0000 (UTC) Date: Wed, 13 Sep 2023 11:27:11 +0300 From: Tony Lindgren To: Julien Panis Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, vigneshr@ti.com Subject: Re: [PATCH] bus: ti-sysc: Use fsleep() instead of usleep_range() in sysc_reset() Message-ID: <20230913082711.GH5285@atomide.com> References: <20230821-fix-ti-sysc-reset-v1-1-5a0a5d8fae55@baylibre.com> <20230822092744.GT11676@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230822092744.GT11676@atomide.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 01:27:19 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email * Tony Lindgren [230822 09:27]: > * Julien Panis [230821 14:24]: > > The am335x-evm started producing boot errors because of subtle timing > > changes: > > > > Unhandled fault: external abort on non-linefetch (0x1008) at 0xf03c1010 > > ... > > sysc_reset from sysc_probe+0xf60/0x1514 > > sysc_probe from platform_probe+0x5c/0xbc > > ... > > > > The fix consists in using the appropriate sleep function in sysc reset. > > For flexible sleeping, fsleep is recommended. Here, sysc delay parameter > > can take any value in [0 - 255] us range. As a result, fsleep() should > > be used, calling udelay() for a sysc delay lower than 10 us. > > > > Signed-off-by: Julien Panis > > Fixes: e709ed70d122 ("bus: ti-sysc: Fix missing reset delay handling") > > --- > > Fix boot errors for am335x-evm in sysc_reset(), by using fsleep() instead > > of usleep_range() function. Thus, udelay() will be called if the configured > > sysc delay is lower than 10 us (which is usually the case, since the value > > set in the device tree is currently 2 us). > > OK, interesting. Yeah I've only ever seen values of 2 us needed here. Applied into fixes thanks Tony