Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1707004ybt; Mon, 15 Jun 2020 07:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZAc4UVy8id1y9anOlfcEW4I2iuY9nbRaGl1wPSURr7zvaMnjJD+NHEMnk3W0/V+r0si6J X-Received: by 2002:a17:906:6a4b:: with SMTP id n11mr24835172ejs.198.1592231178954; Mon, 15 Jun 2020 07:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592231178; cv=none; d=google.com; s=arc-20160816; b=oUb9BQ1bJsTXRH+w0ZdvxwZ0Cm/2SugDqLOWdgdK7wBsfBCF2Qk17amLVBe1GPkTGX jM6tBrKHcTIhc5TMoCheGFem5GxZ9sUAv5TjjS4fSorjaMC1nUpogzKovVquEyMIWc+F vpmrcpbTbp1yxpv1pfbHtHZcejt/h6vhthLuLR799LnbPBsqyNXWaxHjhCpUUfUJCV/Z cDBYvmery57tGux9RXSZ5dKs9mlJJMOslJeV/9Y7G0tFjSymMjIW0lUxeuQAKhIPnAXi BscdYO5CPIOeBeUnUhBqyPI4OcVflaqFlu6WIGmcJirbVleiQzlLE+UfrwPZF40xAcrz B0qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=H9r0/sULFGsJQ0VS718x6ZAIaeQpzmxSr4ry5tlo8dA=; b=Y3mNxmOCSo7QhbxVXYb0mu4bkYE0aIBP2W69tAqxRFhnChCNlEvedhwl5UoK+5dMM8 CjbPLHKXuLwRVWS3nbnxkPgDRfNbt5zjs+xaNJyUOESh4BfpMyelaVGhMdu0bQQ+l2cw cN+5EU7qm32xSXv0Z3QPaooAR2Af10sqGjRUAU49qApKFr5JwFPWzj2M4q9qKOg0SpCR qg89CBaSMxkVACWy4mJwz/0Hx18aYr6v4ezXwnYndHo+22uxcS5y1bTsyGfEZo/dQRLX xM+SjJrctOT1+vZubrZQHLrAxGe2Ky5h0cnZg5Y8tw4FAPBMayyKoBA6uLapBVLgu5pW 6ibg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iTGuFP6o; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si9228385eju.480.2020.06.15.07.25.56; Mon, 15 Jun 2020 07:26:18 -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=@gmail.com header.s=20161025 header.b=iTGuFP6o; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730313AbgFOOXm (ORCPT + 99 others); Mon, 15 Jun 2020 10:23:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729733AbgFOOXl (ORCPT ); Mon, 15 Jun 2020 10:23:41 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19887C061A0E; Mon, 15 Jun 2020 07:23:41 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id mb16so17659210ejb.4; Mon, 15 Jun 2020 07:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H9r0/sULFGsJQ0VS718x6ZAIaeQpzmxSr4ry5tlo8dA=; b=iTGuFP6o46kqSb7OX7uzryGWmBxBXqSo1GjexOIOIdYAkPEkR6ag3kHRccJgj51job IneqsherdA5JHsGp9gCUnITzRDzNGpHHUreaVA/swlF0+Z97dVzqwtpCZoLSPT21Ex+B oWOA3pkQ48zu3NtCgeg+0KkRHjQJYQtb7OqLkQwds3xGr5pGQNI20mRCIruFkZGFtHyg jJ77Ug1sfREkx0oD6ykfBDtCAIIIksvI16gYrJd0A+AZ022JH5wj6l+riUyZQTC6h+1b aS25R0XwLX8ltDveG25Y5DTzfdyxB8qo7hgE1p/5YjszAmaI7fDcewFKnXXKhfjTs8Hw k3bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H9r0/sULFGsJQ0VS718x6ZAIaeQpzmxSr4ry5tlo8dA=; b=ZQG0CnDlsf7Bkw9No2ZQT2MNUfzu+WvyYqxErP/4APq6eR+ziyiJOwhuhwy3OOPC5Z Tzyh5VP630t5sGAae2JWweEEMGjzCW/qWT5cppPF2RurKA7qp0m+Fvv7KteIi9lmP4E2 DU6vYlOQrxOvXSRRbEmZ7MkpS2+Vb2elWzH451+yfG8WGVrtMDLR+qiLOP/w4u9Ibrau RD1lcCer7UsCt/niTKT3uW1rms9jvvb9e9AKniCsPPNiRR4jCZ+nybG6pDHsD2YnEDE/ 0WOOjZJJk+xigzNJdT8SQIr9ih+foVdK92ouBwRbJ21WAlzC209dj7liHxYMMZ573D2M uHcg== X-Gm-Message-State: AOAM532mnKr4H5YAQsA3vGa2e92Dlynsk6oXTxWUnCY5ECZSF02ARErZ K3w7UL9hjv1HKo9BNUfNtfoQp6VvZqD597hDVaQ= X-Received: by 2002:a17:906:198d:: with SMTP id g13mr13150059ejd.281.1592231019420; Mon, 15 Jun 2020 07:23:39 -0700 (PDT) MIME-Version: 1.0 References: <1592208439-17594-1-git-send-email-krzk@kernel.org> <20200615123052.GO4447@sirena.org.uk> <20200615131006.GR4447@sirena.org.uk> <20200615134119.GB3321@kozik-lap> In-Reply-To: <20200615134119.GB3321@kozik-lap> From: Vladimir Oltean Date: Mon, 15 Jun 2020 17:23:28 +0300 Message-ID: Subject: Re: [PATCH v2 1/3] spi: spi-fsl-dspi: Fix external abort on interrupt in exit paths To: Krzysztof Kozlowski Cc: Mark Brown , Marc Kleine-Budde , Thomas Gleixner , Vladimir Oltean , linux-spi , lkml , Wolfram Sang , stable@vger.kernel.org, Pengutronix Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Jun 2020 at 16:41, Krzysztof Kozlowski wrote: > > 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. > > In few cases when I have shared interrupt in different drivers, they > were just disabling it during suspend. Why it has to be freed? > > Best regards, > Krzysztof > Not saying it _has_ to be freed, just to be prevented from running concurrently with us disabling the clock. But if we can get away in dspi_suspend with just disable_irq, can't we also get away in dspi_remove with just devm_free_irq? -Vladimir