Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3156865pxa; Tue, 25 Aug 2020 13:03:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAsBDr4L/ZgR3aqfakIvMs8hAd78ksY1jA3GwiMB496bjzVAgB7Gm5DrmLa6/qXERzHPDT X-Received: by 2002:a17:907:2805:: with SMTP id eb5mr12952282ejc.254.1598385836840; Tue, 25 Aug 2020 13:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598385836; cv=none; d=google.com; s=arc-20160816; b=XpWKqy3TU8Vaz3slZwPI+Iy0fJdoz6sA0ngpSDMo16GZC3kNp/zERHbWh4q7lvtZrK NH+SUsM+qLOLOA72YQc703dB9xS0RG7gIkOkQ2kcpVl0v5g8k7JssIcrBXramhvs6brZ V4CM5ca7UnchA1flBDQhB2yplKvNbSUKFr3GyW1ov5pCQA6RT5D7C0y0LXnQp8TSbfeD hVjp6UWwAa0Oy3hgGjCsnSNwv28EXiSQFA+y5InVoM/GezY9QvrJURA1NiO37odCVVIr A2eS/RjQ8vXhlwvC9HYuqjCXGYJBBu/lXOpUIf0gKCnxqWyJKwYxSfICo0X9GBx4DnwN /pYQ== 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=Vx1r2CNa1rBAm3wMcMuYtNO0QstZgyCPzPi8kkUlIz4=; b=tIPF7Uk8qJR/kJHGm/7LlE3VnYIp6xQ1PFFYw5ZQCjQnL+PHYyFbMxfGe3ldXDe+GG ox2FT9Cwr1OGkeggV0jQZ0d7DFehFMcgu4WNjz/6pAPMuvJhFRB+7s6YgjZAq8C0a5uV JZmt3C3Wj5cqhQYEF3XiHlUiKHdz+7UjT/dZhc9q3udDwYUvtaxPlxnHPNVdtHqjABRI /JM2Vk8yWuwNE2sNQdKuVhdTtiINETyAXTiy5eqZS3hRTr2vEVkw7l1kre5bz3I2F/Vs QlrjZIyszMNaf1CYQ2Z65KvhnXvHkhnnSUK+i+FdBnCgsy4OGpZILxSW6rRMLVcztHws eG6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KZ3pczex; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y23si38235ejd.544.2020.08.25.13.03.33; Tue, 25 Aug 2020 13:03:56 -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=@chromium.org header.s=google header.b=KZ3pczex; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbgHYUAS (ORCPT + 99 others); Tue, 25 Aug 2020 16:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbgHYUAS (ORCPT ); Tue, 25 Aug 2020 16:00:18 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE3EEC061574 for ; Tue, 25 Aug 2020 13:00:17 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id a13so41974vso.12 for ; Tue, 25 Aug 2020 13:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vx1r2CNa1rBAm3wMcMuYtNO0QstZgyCPzPi8kkUlIz4=; b=KZ3pczexEVfIWGV0IPWdQYQBqYBChCLEGtApRH3QfnlBWqlOq7DlgnonpQmEeHUr9Q CcDjp+GBQCLuy08q0QefeFt/oMhUiuz7IYGYn7y53OmbbjhagUOyhSljtDmaGrh+QCYk IBApJr1K/C8AUJcz5Qn0It9c7W46C0PZP4bo0= 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=Vx1r2CNa1rBAm3wMcMuYtNO0QstZgyCPzPi8kkUlIz4=; b=Jwa5J5azqUUEOGX3TRdrIXS+w/GVz0gtA0m1OD5cTIlX6E5tvxJtDu9Q+GH1PLto3O lThVsA+97vpoBgZaLlyqaioBzHExMXB2AOozP9p/sLkIyQ8Quq5/eBzO9O7MXH0RL1Qp PJ1++os+zYOBrj1eoZgeBna05XxIa+/d9stxOTlQKbvxjxs9F/QtYw/Fn4IYWi8IB2UD O/YsjFdsRW5lTJwbW3qEZc7rR09xPAoQLi5ZDAz2yf8lhHEEilqYMw6TIEwc1+IOxP2/ d0AE7UQA/7g77FYgxM10/eoSipOuh8ChS+ZdL1Jmgldsg7j3RTSjTofFGzxnID0MTV4B rB6Q== X-Gm-Message-State: AOAM533f1ECoMSlPDoiSrzBn5VdTqvmZ8hGBOJ2CygfKsECLF0LJ41w4 yDzciwBiCbQiAFFVNThM4Qybj5kD6zKghw== X-Received: by 2002:a67:e3c3:: with SMTP id k3mr6851574vsm.189.1598385616877; Tue, 25 Aug 2020 13:00:16 -0700 (PDT) Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com. [209.85.221.171]) by smtp.gmail.com with ESMTPSA id t136sm14896vkb.38.2020.08.25.13.00.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Aug 2020 13:00:16 -0700 (PDT) Received: by mail-vk1-f171.google.com with SMTP id s81so29790vkb.3 for ; Tue, 25 Aug 2020 13:00:16 -0700 (PDT) X-Received: by 2002:a1f:9b8f:: with SMTP id d137mr7014781vke.97.1598385615556; Tue, 25 Aug 2020 13:00:15 -0700 (PDT) MIME-Version: 1.0 References: <1598113021-4149-1-git-send-email-mkshah@codeaurora.org> <1598113021-4149-7-git-send-email-mkshah@codeaurora.org> In-Reply-To: <1598113021-4149-7-git-send-email-mkshah@codeaurora.org> From: Doug Anderson Date: Tue, 25 Aug 2020 13:00:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 6/6] irqchip: qcom-pdc: Reset PDC interrupts during init To: Maulik Shah Cc: Bjorn Andersson , Marc Zyngier , LinusW , Stephen Boyd , Evan Green , Matthias Kaehlcke , LKML , linux-arm-msm , "open list:GPIO SUBSYSTEM" , Andy Gross , Thomas Gleixner , Jason Cooper , Rajendra Nayak , Lina Iyer , Srinivas Rao L 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 Hi, On Sat, Aug 22, 2020 at 9:18 AM Maulik Shah wrote: > > Kexec can directly boot into a new kernel without going to complete > reboot. This can leave the previous kernel's configuration for PDC > interrupts as is. > > Clear previous kernel's configuration during init by setting interrupts > in enable bank to zero. The IRQs specified in qcom,pdc-ranges property > are the only ones that can be used by the new kernel so clear only those > IRQs. The remaining ones may be in use by a different kernel and should > not be set by new kernel. > > Suggested-by: Stephen Boyd > Signed-off-by: Maulik Shah > --- > drivers/irqchip/qcom-pdc.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) Reviewed-by: Douglas Anderson