Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1664663ybt; Mon, 15 Jun 2020 06:27:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9Kh1N1Kib533YsFTt3yBUDzqVRAY9sQkcaOxboxnVSKgnGM68K+8CS3Hb+0n79msMY/kj X-Received: by 2002:a50:9b14:: with SMTP id o20mr24251410edi.371.1592227621110; Mon, 15 Jun 2020 06:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592227621; cv=none; d=google.com; s=arc-20160816; b=KXDWfuFSQDnbTTpjFUvAzDb+JquNNb2OZAtHBWTfdvtP43kqOA29J708Y3L3UuHsgi kkci0lIpPdhlFG/qVMZ0SAgfwFbDs0f/0aunjLqukdvb6M53i+hrzDVwbpLpZtXRhKqf tNowPe8ggZkorHlvhPfHzQ1xKeiE23fp7DvrZczHdqp09/bGLiNEnHrZISGXJYuUVrQD WOu14oPgTzpNbvz938Je/GW3nldLV0McY4xvCom4WBvI4YQgVchj4VrAQSoJCW1QyACc ibi0rhrMJEyIk7Nt+n5SYgF35KKZzqzVNIE1SAb1tPavZanIjndxsdPv4G5trXvwygZW Q19g== 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=KrWIBF37hGQzctf9HIqX8647J7sEfpLkcA1ptCk+t/Q=; b=UYyjjDrB7P2lN6hxgiDPdxM3ptATYLfvNpg73YeLwRHVehuGHDAqZkq8UEnA6uxovd sQPlpwTVWjLsBH1f3g91vdUK3VmAf2sDF2XJwHqw+oo1KW9xfL0ByCUHB2eArsq5hcyL 2fLKPmKTvM60AhU8hJjy2irmOG0NDDC20ZTIHaan48kHs/AgqSV5mDRoqQKdz6kv5AtR aE/xvqBi/mLx0ubJn7RZxP5dWcNA1mxmE+lPXe0418b1xE576hTgE1f+g2nhTIwdjqZJ uXEeL1EgtRKJinhwVnPu8gCVGNO9u9eG3tZbhqb8FJP5FmvVwtMqnGOvMiJvbtaqiiat nSyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t6MngLWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si8182882edj.329.2020.06.15.06.26.38; Mon, 15 Jun 2020 06:27:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t6MngLWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730182AbgFONYo (ORCPT + 99 others); Mon, 15 Jun 2020 09:24:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:57822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730043AbgFONYo (ORCPT ); Mon, 15 Jun 2020 09:24:44 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 10E802076A; Mon, 15 Jun 2020 13:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592227483; bh=bqX1ozenFRae/r9wyA5J47at6vYcCkVYO8dbmr9c2P0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t6MngLWC5aDomduESoTEtDrKX8VoWBqS3vmbPPajFduTYMnWH+uaEbWfuyPrzt2+A NG5Tt0EW2x6gEMcFxWKu+8zhtdeFSDuU1J94sh37v074z0hcou0j7GB86SAUlDHr4D oW31DO8iFj3n+sSP6ZMwTjFFEG+Afht9IyvINook= Date: Mon, 15 Jun 2020 14:24:41 +0100 From: Mark Brown To: Vladimir Oltean Cc: Marc Kleine-Budde , Krzysztof Kozlowski , Thomas Gleixner , Vladimir Oltean , linux-spi , lkml , Wolfram Sang , stable@vger.kernel.org, Pengutronix Kernel Team Subject: Re: [PATCH v2 1/3] spi: spi-fsl-dspi: Fix external abort on interrupt in exit paths Message-ID: <20200615132441.GS4447@sirena.org.uk> References: <1592208439-17594-1-git-send-email-krzk@kernel.org> <20200615123052.GO4447@sirena.org.uk> <20200615131006.GR4447@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6pbY/KU4ayLo+qis" Content-Disposition: inline In-Reply-To: X-Cookie: Offer may end without notice. 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 --6pbY/KU4ayLo+qis Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 15, 2020 at 04:12:28PM +0300, Vladimir Oltean wrote: > On Mon, 15 Jun 2020 at 16:10, Mark Brown wrote: > > It's a bit unusual to need to actually free the IRQ over suspend - > > what's driving that requirement here? > clk_disable_unprepare(dspi->clk); is driving the requirement - same as > in dspi_remove case, the module will fault when its registers are > accessed without a clock. I see - this could be fixed by having the interrupt handler bounce the clock on, there's a little overhead from that but hopefully not too much. That should also help with the remove case I guess so long as the clock is registered before the interrupt is requested? --6pbY/KU4ayLo+qis Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl7ndpgACgkQJNaLcl1U h9BUcgf/VzR+PRLWRTMg/gGQBftAw+yKEACOAdw8HxYwJw4eaK7326GSdVE6qWwo t/aZTKrRKSSid1YvuquFNG39qeEiWp3t8ZZSmd8EyYhvdFq6mwEdQ36uuPg5/27C Dff+yXcHU39inkRIPxF6uI655J+L+/6IC+0B3EX8FmjcFngDxcnDomnqldhnXQCX WaTRTKYrUHnvEQ7skEQJFzttM7sgs3tOPhYfLuz7eQSSAUqo02fNLseRZhP1VZY5 f+HxXawJLRuf0/wD/IOTjvwEWEERjVte6OyT71Y/pbYPg+QnshDtYOsTF+14W8FF 8XAQwxWofipni82ASNlssY48IXD9uA== =ouiV -----END PGP SIGNATURE----- --6pbY/KU4ayLo+qis--