Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1749002rwi; Thu, 3 Nov 2022 08:39:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49ugpVXMm7p96em7z1HiQCOErWv0OnHU6ak8EiOfPEwuKJwe3pPYAluUUeJtgOHLZt1KM7 X-Received: by 2002:a17:906:db02:b0:780:24e:cf9 with SMTP id xj2-20020a170906db0200b00780024e0cf9mr28942221ejb.460.1667489962392; Thu, 03 Nov 2022 08:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667489962; cv=none; d=google.com; s=arc-20160816; b=MMVLOzHqkpOqgMs2WjYStFK4SWzLizBDbWVxlU/3ujcYmIOCy7kzmeKoBJXH497g6S 3/27XatJBu9JnKscjNdrE0wwdHsi/K74tsHAWp6InS/qS1cdDRG/Nx9A/geWWHmdUovg 78zo5WQS3JOPHkN5oUGEtk+O8CbizMUmxSKVWoa8r1aGC7KCypWFIOdiJ9t7Eykf/mRy k7A2p9w+gEKJkeXHNv6mmsUwPadbpBVStRDCioYE0ndcHLMAKJCOe18YwJYTC/5zsLAI aJxkNvaBnFmsqT0xKmU0irp7HuEdOy9Gm9X9sU6ixFRJV542Oym7yZrep19B1pUlD9nu 5qZQ== 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:dkim-signature; bh=xzb3+L23hpRAb4KMc2Np7L1gdrecidJgDacxrrOPfIQ=; b=iJzv659FnmBqfot7WKv3pjK3DJ71NifiW+b3m9QS4lgd5nRTzrRCqoGa5omhnHV+KA YazSznU3UHBFhqpODS8X+VEmTVeuGugRhLrLEbmN7WfM3/ryXyy2+izmY+eUTZAcwYvu wpX1YCVEhN6Mbk04C4MouDVh5qAQH5COsaW78LsP5UdxmIyDTGsErHUOcCXMYT4goxeU dkIo3ZxDf41b2TmpUCwNap6j25DSsI9HU8qy2AZlbwBk+0uLgYlpFBt+n8ntzFBg43hj 8MeFckz2uOuxFZhemfNpkeOfe1V3K4dVy61XWbza2+wciaf3ZHNADSFZIhp1iw6/L0OZ Li9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nOVFgG2p; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020aa7c45a000000b004636ec90769si1515364edr.33.2022.11.03.08.38.58; Thu, 03 Nov 2022 08:39:22 -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=@kernel.org header.s=k20201202 header.b=nOVFgG2p; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231921AbiKCPa6 (ORCPT + 97 others); Thu, 3 Nov 2022 11:30:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231320AbiKCPad (ORCPT ); Thu, 3 Nov 2022 11:30:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE89C110B; Thu, 3 Nov 2022 08:30:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 660CB61F2D; Thu, 3 Nov 2022 15:30:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB804C433D6; Thu, 3 Nov 2022 15:30:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667489401; bh=6e8ruPJPD4sSHdabvzka5nsqzYWSReJCia4VC8DZ9CM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nOVFgG2pxHS9Fg7mzPDyqbmvyepYWB3Y3X2N8+EBwUlijrMPVpLJoiJVMBdgRwIXX 4HlUO6GU3oDEA8CwPGikMMybTagUvLONlIkaMjNb4pfwti5A7CgmB83C0VgDGLGQ04 sLfDc/20/O1uyAoz6AA6rYUmebq7/dyFlO0VSbNMa9/LUzSpMzOPBJShHu7PIUHJR9 oc64zKZqnKMHvD5Hd8VNlefEKteotP4zD1oYVGGlA+UpsmMMxYd/WDi/t5SbEvXppc W72EuztIQUVG3z/pImAUg3kHwDydmv+jo3keWGktKNrlYeV68tvsEnKyr/HdlULtQ5 ie6sLLiYT9Ztg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oqcA4-0004AX-C3; Thu, 03 Nov 2022 16:29:44 +0100 Date: Thu, 3 Nov 2022 16:29:44 +0100 From: Johan Hovold To: Marek Szyprowski Cc: Stefan Agner , Greg Kroah-Hartman , stable@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Matthias Kaehlcke , stable , regressions@lists.linux.dev, krzk@kernel.org Subject: Re: [PATCH stable-5.15 3/3] usb: dwc3: disable USB core PHY management Message-ID: References: <20220906120702.19219-4-johan@kernel.org> <808bdba846bb60456adf10a3016911ee@agner.ch> <86c0f1ee8ffc94f9a53690dda6a83fbb@agner.ch> <53e543e8-f895-d4f1-da94-d0baca528e79@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53e543e8-f895-d4f1-da94-d0baca528e79@samsung.com> X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Thu, Nov 03, 2022 at 04:18:12PM +0100, Marek Szyprowski wrote: > Hi Johan, > > On 03.11.2022 15:49, Johan Hovold wrote: > > On Thu, Oct 27, 2022 at 02:45:15PM +0200, Johan Hovold wrote: > >> On Wed, Oct 26, 2022 at 03:11:00PM +0200, Stefan Agner wrote: > >>> The user reports the S-ATA disk is *not* recognized with that patch > >>> applied. > >> I just noticed a mistake in the instrumentation patch I sent you. Could > >> you try moving the calibrations calls after dwc3_host_init() (e.g. as in > >> the second chunk in the diff below)? > >> > >> As mentioned in the commit message for a0a465569b45 ("usb: dwc3: remove > >> generic PHY calibrate() calls"), this may not work if the xhci-plat > >> driver is built as a module and there are some corner cases that it does > >> not cover. > >> > >> It seems we should revert the offending commit and then try to find some > >> time to untangle this mess, but please check if the below addresses the > >> issue first so we know what the problem is. > >> > >> I'll prepare a revert in the meantime. > > I've now posted the revert, but please do check if the below patch was > > enough to resolve the immediate issue. > > The below patch was a half-fix. It worked only if both dwc3 and > xhci_plat_hcd were compiled into the kernel. Afair Debian-based distros > used xhci compiled as a module, so this didn't work for that case due to > timing issues. Yeah, I mentioned that above too. The intention here was just to confirm the hypothesis that the regression was due to the missing calibration calls. Johan