Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1671902ybt; Mon, 15 Jun 2020 06:36:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9GKtXd4j0g8B0jTyGcIEINwS1yQ+jNyAsMlAGB1GJi3ZbciFdoAImd6ADbIYWB7VCRk1e X-Received: by 2002:a17:906:7696:: with SMTP id o22mr24609298ejm.245.1592228208903; Mon, 15 Jun 2020 06:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592228208; cv=none; d=google.com; s=arc-20160816; b=QI3SPMSkANa2VBaIw1I5wxfgigrwa8R4HzOz/NDenGyRPVJv9MzecvkYeC6UwzfDDm ylUHshIuQ7wc1FyGhaLB0lYES9XxowiFrHgT/GfEDXr/CSpJMvrbKzZ5r5E0Fkf7q2sq TQ03thUdPDpItbu4XLyNc1UNxqbcD4LnX1m7R0Tw012u5tMEmImSmTJJoqBOsOvNFpo8 BegACmpFYRjINlRZpwfPFcajpmw6PiIlXc3SH/oYWklueCwGoWCDPE200JmZ+yphLN8Z ZN57APnqpWAPprDmOHa8CfU/ok1jGupsQBSRpMsmhkLS9CMHa6qHqjMJ4eHHDDLTbCdE 2Wmw== 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=D2V1qAE11MNlrSXseMOlYDGmQZmq5VRcnjVpJmM7yzg=; b=Fl/pgmFVxikqlWS2LNIldbbVFc65xBEsuxohGFiRI+6Efe1hBEdWXHFFNWZD3xspyA gIvU1l7k3Um7GDXYKy3htQa3h2e5140PCKwn8aUAqG9DAtbREgTN/2X4umN33HCcks5v NXuQbkADQZ3FTsiaT6UjGSrHWHO65aI5OxWpnC791sHIhaRoIKeLzrYtG3HGyYwJel7j nXl+Js25Glki1z4Vt6WZQqzO0/bccdsoT08W2Otsq52gyOpYCLguNSUA/tc0xN5HElb9 3Rl7A0E4rartWzfiASLuW9BbmqogcyuaFjBvfct1fjvP5ckKi5/kX6R3PI9ear+iUlqD mWZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GbIldhCd; 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 dd22si9043318ejb.754.2020.06.15.06.36.26; Mon, 15 Jun 2020 06:36:48 -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=GbIldhCd; 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 S1730558AbgFONeL (ORCPT + 99 others); Mon, 15 Jun 2020 09:34:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730638AbgFONeH (ORCPT ); Mon, 15 Jun 2020 09:34:07 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29051C061A0E; Mon, 15 Jun 2020 06:34:07 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id f7so17468338ejq.6; Mon, 15 Jun 2020 06:34:07 -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=D2V1qAE11MNlrSXseMOlYDGmQZmq5VRcnjVpJmM7yzg=; b=GbIldhCdOCVrXEk+ONIEUVLgT0UsbDx8tLCIdwL2uVK0L8Ezi/vkURRR4WlfbiCfht x/F/qgWd21c9PhWl6xCe99JQ1RZw1/+2cxirrPJC9s7GybkalRLGVnHdkRSzOmNjCA1H /S1J7Qda5Y4rgJPjIGX2uum2NncaCTNtYaNmAjyKN4/w38uVr1F928XE8iRGv6cwzU22 XXtrdgDqU9/rUGwnrmfy9sUjc66dfTbOEuh891oRPkDExQUNYjKl3Vj9IZCBBZsHDxi6 8bSSEDrtNV704lENX5H5ZRAi8a1Z3ny7cUBzhsD/vhjZk4InSqYrSdrtbIvJeLezThfb 3NHw== 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=D2V1qAE11MNlrSXseMOlYDGmQZmq5VRcnjVpJmM7yzg=; b=MQ9CP2FGBeVn8g5eyobuRrbU3aT1Vm4AJ3CTLjrzpG0DGwWJkONUR0xjq0ILIKMLeg G84QA+VHAy2nxfqopg8+1GXYeR/Lju42AScfJ0LLfloF3kCQglyO78PtCv7/l0wfcUaq SLuDilA+um+a1u0BpI67eMwT25LWiQ1R0XrzVRMCZDnQ7WKYKzDCxsda/Y4Fk91bd5RB PIsWaFcxyO6Xo1SUd3d7y250MBcWbA5J38TyZBU1JE7tbod5X7kGXZBuMq6+dHCxfeAk 3kt3BdBw+KyjdNMVbSVbYUAL5DlVHVUvyrrVebdmxtpbUKGRcS2QVDNlBwWzLoezjhTN Cqzw== X-Gm-Message-State: AOAM532N1migWf/LQ/CWOC57cyh5DQqQsC7UK6BSZvHu8t6e8A+O37lC KOcFcpsVBJUGVxkqUJVTx/qqtuze8Rhai6DXZFg= X-Received: by 2002:a17:906:198d:: with SMTP id g13mr12938685ejd.281.1592228045820; Mon, 15 Jun 2020 06:34:05 -0700 (PDT) MIME-Version: 1.0 References: <1592208439-17594-1-git-send-email-krzk@kernel.org> <20200615123052.GO4447@sirena.org.uk> <20200615131012.GB2634@kozik-lap> <20200615132842.GA3321@kozik-lap> In-Reply-To: <20200615132842.GA3321@kozik-lap> From: Vladimir Oltean Date: Mon, 15 Jun 2020 16:33:54 +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:28, Krzysztof Kozlowski wrote: > > On Mon, Jun 15, 2020 at 04:14:06PM +0300, Vladimir Oltean wrote: > > On Mon, 15 Jun 2020 at 16:10, Krzysztof Kozlowski wrote: > > > > > > > > > > > It is a slightly different bug which so this patch should have a follow > > > up. > > > > > > Best regards, > > > Krzysztof > > > > > > > Why is it a different bug? It's the same bug. > > One bug is using devm-interface for shared interrupts and second is not > caring about suspend/resume. > > Best regards, > Krzysztof > The problem is that you don't have a way to stop servicing a shared interrupt safely and on demand, before clk_disable_unprepare. So it's exactly the same problem on suspend and on remove. Avoiding to think about the suspend problem now means that you'll end up having an overall worse solution.