Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2785938pxa; Tue, 25 Aug 2020 03:18:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw95C1pb+y6Ihtz/fwYvfm0wZeRbvz2tmBuoqNBvQDx1inv79Pdpg4qjrVB83mv+9SHA4di X-Received: by 2002:a17:906:ce59:: with SMTP id se25mr10396618ejb.359.1598350681903; Tue, 25 Aug 2020 03:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598350681; cv=none; d=google.com; s=arc-20160816; b=LuZkvTTZg4ks/yL8Q76kRIMXGqSSwbvhwhhgon6Z3GXUTKgsbsRlpm4OWblh8K5c4c mnSOW6/ueINDqO4vjwm23knuTHJnEwgNnfJaxnipc2CWpPHS+hk4lQvz1owmtafsiXpL Mz3Bl7gMCFuGmzjLUbXq2nHk3Oh8xzFUXQsSiFTKYN2EG4mtV645XhpBeuzZ2UxoSQuP YIWIpMX+kmiUB6osjvc2XYilkhrJJqfLJvqj3IN5DIJbdHAis5L2SutyF4S4qHiukGHE gbuSEe0R4NUVsxIlQL+L4D+x8YKMh1Jmfxapp7qoM/wUl1Zz4NWaEAEn2OfsrWmyo5h7 QkwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=NK/rGdFzl/ZJ0ikUSNHqbk5FsBpl+Htmp3bLWdAh3jY=; b=USMX7IpjiyqmLdqSk3J526pOEnw84Jw3lgzlVruN4ziCXnxCtkSlJ+i4xukiEqJLa7 /tlLwsMsJZVOeNTrPIcQARzNuQvZuFtd2R5QtjRFZyq9isySJ5Iuhn/Awke6GerjCec9 BDlg+nuOj/FoQel3BfoyHQbME0hzmhvkRQkmRX9p50Mhr87Mwfw0Kno0qGIt+EoRk0DK qWqCiH52w7o7ls+QZ6VdBPzWSQPRNo8bEeK0VfiuctAjC46srIoEdd7g3ClxiBnFTzwS l0YfdFo+CPc3fbuJGu0GdRhbRcWRxzQDhXq1HVceSed2Tf27KX2UGAEEp3+XOV7ZHw0A Huzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SCvq4FUN; 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 ay9si4748772edb.150.2020.08.25.03.17.38; Tue, 25 Aug 2020 03:18: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=@chromium.org header.s=google header.b=SCvq4FUN; 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 S1729776AbgHYKOO (ORCPT + 99 others); Tue, 25 Aug 2020 06:14:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729761AbgHYKOL (ORCPT ); Tue, 25 Aug 2020 06:14:11 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5957DC0613ED for ; Tue, 25 Aug 2020 03:14:10 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id m34so6485023pgl.11 for ; Tue, 25 Aug 2020 03:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=NK/rGdFzl/ZJ0ikUSNHqbk5FsBpl+Htmp3bLWdAh3jY=; b=SCvq4FUNygb0mPDOTL9HsmV1XyflsHOwL6MGLFxggA22jrk3r0cUnTgiCypWwgft1T yZx8mVaFF/HA1b+iKbCRANmRux23s0+GG3gfMuBKEX/JZLD2VjmzCXc2/PTSFamz0VKQ w/f24Tt+ZBLC1s0+2dt24P5IOI3cswYZh/3XI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=NK/rGdFzl/ZJ0ikUSNHqbk5FsBpl+Htmp3bLWdAh3jY=; b=Nf46gxgbpXtqGyP9V651+ASNwjAWF4YUB5GwFl8lLNbUTbGUZ2gjpEle/scNepXqjf nKwZkrKHvRSJW/4AMGqSi6N3vxEoHLKf0ep+x4jlftKJovyMsQzL/G+Pvrzzb916DT0u ufw/XZoitvBJq9ctEqzW/jmJPLMRRFxA6KZEm7d5pMQYpDD1IPZh2bYqiy983yWrfABU LSGQrEoip4G7khyxLBsAG0YcjgBl8BoAK5GQK7Wac7FUKhZ1ylYDhzivSZ3omRNY7RuV S1bpUyVOdaciRa8CtAosuQWtAE0344EzVUZ5n7vtUIuj93CJaNhfW2zUXCSsGnMMwn9F UcRQ== X-Gm-Message-State: AOAM533PtzsfGOJI1YMyx8kgdV/grhXyZ6wfJD/NdUU5P+m2XPJwlhOb l4qw6/aj5VEGP1McDGjNjKu+SOLZe+T+wQ== X-Received: by 2002:a65:498f:: with SMTP id r15mr6392116pgs.410.1598350450231; Tue, 25 Aug 2020 03:14:10 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id x13sm6165505pfr.69.2020.08.25.03.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 03:14:09 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1598113021-4149-7-git-send-email-mkshah@codeaurora.org> References: <1598113021-4149-1-git-send-email-mkshah@codeaurora.org> <1598113021-4149-7-git-send-email-mkshah@codeaurora.org> Subject: Re: [PATCH v5 6/6] irqchip: qcom-pdc: Reset PDC interrupts during init From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, agross@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Maulik Shah To: Maulik Shah , bjorn.andersson@linaro.org, evgreen@chromium.org, linus.walleij@linaro.org, maz@kernel.org, mka@chromium.org Date: Tue, 25 Aug 2020 03:14:08 -0700 Message-ID: <159835044855.334488.7962570422326622972@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Maulik Shah (2020-08-22 09:17:01) > 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. >=20 > 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. Presumably they're not in use anymore if the kernel has been kexeced and replaced this one? >=20 > Suggested-by: Stephen Boyd > Signed-off-by: Maulik Shah > --- Reviewed-by: Stephen Boyd