Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2658663ybb; Sun, 22 Mar 2020 04:47:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtuVabeiw7KCZ34xT5Us15aG0h1bcz0VkYRNFEytmFH36pJoZfLAKzkv8pvWY8z/ZYE9uTa X-Received: by 2002:a9d:6009:: with SMTP id h9mr844630otj.168.1584877634006; Sun, 22 Mar 2020 04:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584877633; cv=none; d=google.com; s=arc-20160816; b=itkSNpIowojnI4oimIRE3j4QV31CjGwgCKG/HBJ4qILYIAmJi8kxSFmeQ+hNf8B8Jh kzB4oxKeLCIZ/YQJr3UTwIRHG6NL85TDwud8XJb6G7gXs0ul9e9W28gqIx51SWhqs7TU 23hYmSqLcIMfK2/0O2g6Y116Lh/taxdOvyaQBR/TIFX5zM85vi+/kg9PLYS9N5OLOxMz VpI+BryA2lbNdgp1IlI/lfR6UPOjeR3K7XYdlADyFFjOoXTNlH7EUi90SbQIXiVOfc3B olNp5vGENOdDcniooBJsiXjZqM1MZCvqlsENR1yLH98R9sZemAmlf81kY+5CXHz52N5w ld1A== 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=wvkwniGOgLV8mB9CWYJP/ZbTdJL82BLIEY1BcTY1Qto=; b=lAUVuQ/op8siEpK99NTAGFcmJvi/3e1gi8EZxDep9gcmc2eqjRcMOmCuyHrQvtwbPb pXUaM3Ps0FzGbD+3VUvgo8V+7KW8dyPC6V4g24F8mXiNZFYSuCdlsiEB2rZk4y6KNC1Z JQa5zhRNGGGs09mjzVfo3DdhKcFGOgBRh1BhvISr3PDFf5CbK00cptiBx3LzZ1id632+ cSBmMxWb47LMl5xw6yl1RsFRg73o2w3WSFbGSCSiyc/elQ0SpwBY4TIhjPs4tQYwKEai /5BD/+IsRGrdfPHlyToeuYJiG/e/Xqfdv5wYSYbZG+nz5Jn0cA77wR6m/cmjkyyKkCd/ PdzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YEBV9C++; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c133si6207190oif.272.2020.03.22.04.47.00; Sun, 22 Mar 2020 04:47:13 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=YEBV9C++; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbgCVLpm (ORCPT + 99 others); Sun, 22 Mar 2020 07:45:42 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:33943 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726940AbgCVLpm (ORCPT ); Sun, 22 Mar 2020 07:45:42 -0400 Received: by mail-lj1-f193.google.com with SMTP id s13so11395471ljm.1 for ; Sun, 22 Mar 2020 04:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wvkwniGOgLV8mB9CWYJP/ZbTdJL82BLIEY1BcTY1Qto=; b=YEBV9C++ndScMxatDthA+7c/f8KKuvfqHltiGzT/Jc2ZHPU1tE227G0/kAb2z60WP+ tCkZtG0LYyh89fSCUGOCOuSHrushC6Kuo1nBUPKiHVbwgog5bDAnMkK1DDXTzqLbbkao uC2xZTER+EwG7GN0qOrBq9pX2sFNst9ayS+K9GtKWWY4BSlZ8srH1+HnmajSF0ikQDG8 xJKMCr/0rDN486nzu53ft/63SkVj4DkAKkblD88kmaUoP/BofYCVVgREFD13eXHBH9jf iILEc0VBhXKw8zus2J2RFO+uZi8GDlj2bZHAHqbeDCEuJKQi0Qu1qkIHkQZqZRFoN9UK TRoQ== 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=wvkwniGOgLV8mB9CWYJP/ZbTdJL82BLIEY1BcTY1Qto=; b=eg9luKN+DqoOi23o/srZfY9jvq1dFpnqYvboV16BO3xUj2Ws0DMJFXsgRiSNhQapC2 VEnGUopr33Jd6nLxDEId4bARXviYi/LaAujnyA9/2QfMeNpc4jAsSKoaXLhZXvt0EZLa 8qMqQtIC6Dz3O0YDTrhOi+i5CBufAF4cM17o2PpcQS5+sUWbUmfpRosCeYDrpB5fFs8H qsiDkktbgCrIykSIskREPBsfL7cY95xe/FGubCk8C8YSImH2tB3tS39IGXAvN1czy4k+ cpmmAfBkgOayjnkqxFH33CHiZnCC15vLMI/tnWZE44rP1NMLn6DIbSnFVz5XZjeOWUYA aqdg== X-Gm-Message-State: ANhLgQ1owCw95FQiIEGcvAspr1LXqrkQmOquUjoUMlJaEYY+9VyPT1iq omDRo1HsUZ+A0PhCLK512bkDG9L7HpzBQgVrTat+wQ== X-Received: by 2002:a2e:8ecf:: with SMTP id e15mr11158856ljl.223.1584877540117; Sun, 22 Mar 2020 04:45:40 -0700 (PDT) MIME-Version: 1.0 References: <20200321133842.2408823-1-mans0n@gorani.run> In-Reply-To: <20200321133842.2408823-1-mans0n@gorani.run> From: Linus Walleij Date: Sun, 22 Mar 2020 12:45:29 +0100 Message-ID: Subject: Re: [PATCH] irqchip/versatile-fpga: Apply clear-mask earlier To: Sungbo Eo Cc: linux-oxnas@groups.io, Thomas Gleixner , Jason Cooper , Marc Zyngier , Linux ARM , "linux-kernel@vger.kernel.org" , Neil Armstrong , Daniel Golle 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 Sat, Mar 21, 2020 at 2:40 PM Sungbo Eo wrote: > Clear its own IRQs before the parent IRQ get enabled, so that the > remaining IRQs do not accidentally interrupt the parent IRQ controller. > > This patch also fixes a reboot bug on OX820 SoC, where the remaining > rps-timer IRQ raises a GIC interrupt that is left pending. After that, > the rps-timer IRQ is cleared during driver initialization, and there's > no IRQ left in rps-irq when local_irq_enable() is called, which evokes > an error message "unexpected IRQ trap". > > Fixes: bdd272cbb97a ("irqchip: versatile FPGA: support cascaded interrupts from DT") > Signed-off-by: Sungbo Eo > Cc: Neil Armstrong > Cc: Daniel Golle Good catch! Reviewed-by: Linus Walleij Marc: Cc stable? Yours, Linus Walleij