Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp462973imu; Wed, 16 Jan 2019 02:00:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN5m3ROqOZLS2Zr+bL5Bl2NisB6AoIfWjHpotIGa99bDk0aykgEuyQ1MLR1mwWiwG/N21BZH X-Received: by 2002:a65:5387:: with SMTP id x7mr8139182pgq.412.1547632834858; Wed, 16 Jan 2019 02:00:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547632834; cv=none; d=google.com; s=arc-20160816; b=czo29sglpe/AfhwwIvvc6/UDaUqWRbfUvgoM4Q+h95Em0uKhKtiRdAHseWT8lObWRr KrtRTIoB/cSu+Y771J74Pn84lA7K/SnuIPwnOknJ1ELmBXgfyuUGPFKyXtIWJgjgen0R L1lBJ+pKKwHUrXXZRsZ0f/YPgUTX1wfNJ1iti+xLbIpxvsghcmSZXtFOCAfpAovojwns CavlOx+VcGWz8DsSUqH/LPXFE7kNzMgpDHuMqfbGccrTEtlA0/5ETyQR4GgJeBKwi71h J04GoIkfAppDpUB48+Gk1sbOJU+p3GvQaX0ZVeGnQVcA0HP2tE5Hp5GC/MUZT1AUKVCG 4jmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rxNP1q8+fbj2Rfo5AJpAyB+dKT5q/pWZSAwzdx78u1g=; b=0PuZfF4QMgkAMch1VxEIGXc/hgV3HGXJ8mw74sEY7inAQghWBmXJwPUD7kv/QvAmzn g7qFxu2j8TDCYr0SK2y7qjsXyWsaDSIPDv1mATj3TkjQsjr8exmbxl9vsoT6C/1ZNaaV FVHGebEB+bQcZZnslemeTCR5m3DGAzkvjC1+1nc7JVXxJLwW+Fk4krRXbsv43/t/pUvU iactOf5oUvotxzWUvzo5DxU5hgDL2DmSikOXtb1oKaQ9Up0ff/g+lY8nJqtFqPeL6fNQ giGq7B9apngIH/g2SDxAy72ydGq+Xmb2wY7giaS5gANamn2Fk9qK/6o+zmzZoBKNEKts 42mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=gHDiQz3v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si5499734pgi.218.2019.01.16.02.00.19; Wed, 16 Jan 2019 02:00:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=gHDiQz3v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389321AbfAOT1X (ORCPT + 99 others); Tue, 15 Jan 2019 14:27:23 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:60372 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728780AbfAOT1W (ORCPT ); Tue, 15 Jan 2019 14:27:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rxNP1q8+fbj2Rfo5AJpAyB+dKT5q/pWZSAwzdx78u1g=; b=gHDiQz3v2jnvuHB5ynTAKDtT3 oKUfhczQDajHuIH2vN7KjnttnvgbX9gWL6+ycczfLCLav3cahc+LSDe4Rut3krt7eV3l2MCT8juj0 6Jto+mjK/SYhUxws2LJGvG/5ZYG410GnggvZW5hyttPh37Af/LExhyf0kIzgTeu912+jk=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gjUMn-0002MG-8l; Tue, 15 Jan 2019 19:27:17 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id D847C1127848; Tue, 15 Jan 2019 19:27:16 +0000 (GMT) Date: Tue, 15 Jan 2019 19:27:16 +0000 From: Mark Brown To: Jon Hunter Cc: Martin Sperl , linux-tegra , Linux Kernel Mailing List , linux-spi@vger.kernel.org Subject: Re: Regression: spi: core: avoid waking pump thread from spi_sync instead run teardown delayed Message-ID: <20190115192716.GH5522@sirena.org.uk> References: <7C4A5EFC-8235-40C8-96E1-E6020529DF72@martin.sperl.org> <20190115151009.GC5522@sirena.org.uk> <313fc9d6-a142-91c2-8868-188bc70c019f@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J/zg8ciPNcraoWb6" Content-Disposition: inline In-Reply-To: <313fc9d6-a142-91c2-8868-188bc70c019f@nvidia.com> X-Cookie: Violence is molding. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --J/zg8ciPNcraoWb6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 15, 2019 at 04:09:14PM +0000, Jon Hunter wrote: > On 15/01/2019 15:10, Mark Brown wrote: > > On Tue, Jan 15, 2019 at 02:26:02PM +0000, Jon Hunter wrote: > > Right, I think with the current code we just shouldn't be checking for > > busy in teardown, since there's now a fairly big delay between idle and > > actually turning the hardware off the name is just super misleading and > > the logic confused. I don't have time to test right now but does > > something like the below which changes it to a flag for the hardware > > being powered up work: > I tried your change but the same problem still persists. OK, I feared as much with the stats not showing any activity. I do think it needs a cleanup still but probably won't help here. --J/zg8ciPNcraoWb6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlw+NBQACgkQJNaLcl1U h9AjPwf/aq7uDvdaZWuPtnn04wHdQBQ6qt2pWHW9rQkd3gzm2K6t7I/K5bskpW6+ 2D2brkBj9WluGaMbnUW1bzCc8Pfgeesifrb0vy0rjP8m+lMcFboCjjOYB0tloefp 17opY7PqAnk8476IFv7Am3g+InAoOhr3DdXDx2ETPRBCHDhTEd4wiHEVLG5+qkke XGmjBKS1JHkhRT9TVvkiploszqO04E8Ff26T8hAgePEog8R7N0WoetrPsrwq1YAk rn3YQcSLARLHkeLorTqM5C+49FKbj5JRtgNp6cNeo5WwZbSge0Kr470cCj4iTAS2 4mvqCuNjma2OumepNnm/EJuaMOgMtw== =YvPD -----END PGP SIGNATURE----- --J/zg8ciPNcraoWb6--