Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3605704imu; Tue, 18 Dec 2018 00:52:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/WfA4w55c3WIUiI/YC2A8KFCCaedSeZDmXooWjQzeVRP2xQFy5osngNoMscoNLmxOQ3sqXU X-Received: by 2002:a17:902:b18b:: with SMTP id s11mr15614304plr.56.1545123178978; Tue, 18 Dec 2018 00:52:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545123178; cv=none; d=google.com; s=arc-20160816; b=TTn2p6aYzkYXGe4rx5UHPF0+7lCnT/raYt3jNspXTR8xpuJSelxTnfxvX3DWOY8Jys LQnUvGvu+C5Gwg+GfP2bYQHmhvw79fMIG37LF+TQZaeZ5SmyGnJ6KfU7ryD5HDChhCr8 +7K/SG82MnfyhPCNC1MCiK2QnVcE4OCd0oc30efQs4JR02+7b36xIQaKQscuf841Osea dBNAzmz4CL7hHo3Z1bqAqCFVIh/9aYQNhVDcjK7pVE4aXz/8uQVyLoswtAS0VSl6jY2x UvcLOT0zVdF97sG3pNfsnIlAe9RSzKqkGdqW110zvFDQklCCNV7143SG8HuC6gJaWh4s E0mg== 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=c8CVInH/SbEiauJpAH+701m4etUfcrFaiMTk9o+WaXM=; b=RV18gz8nPwFAAHBc0zCC3rJH0EqU2NJYL9kWsZulZR16rt9Y5Sk2SUTSEDxM13PbWq Ln45E+JalJxKhVcjq1VMOyIXjBZCei6c3Hr3YnEpla7dsuQL6RiBV8FBgzEK6F0ILxo3 1eabkZoUnO8q05wBDFVGPVcyIlUA6oUFE2rtirXo/jpRCdFXQhs6Ru3L6CTBjJkFEvuw u+NR9kgQArLNRWHiwbFPjoVMhe8pO+5cnbVfOMFsasYSdtyOZ2u5RcOV7/Y+orrGVGSK WdFyr6oCz3dhaKDJuaL17IQziqfLo0H7UCzgsNi2YVmyErduzDssf7SxSmv8G8jZfTBT YGAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=XfODicEZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si12559612pgz.395.2018.12.18.00.52.43; Tue, 18 Dec 2018 00:52:58 -0800 (PST) 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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=XfODicEZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726663AbeLRIuY (ORCPT + 99 others); Tue, 18 Dec 2018 03:50:24 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40221 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbeLRIuY (ORCPT ); Tue, 18 Dec 2018 03:50:24 -0500 Received: by mail-wr1-f65.google.com with SMTP id p4so14991908wrt.7 for ; Tue, 18 Dec 2018 00:50:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c8CVInH/SbEiauJpAH+701m4etUfcrFaiMTk9o+WaXM=; b=XfODicEZuXglLaLhb0Mx6r7CDHrVRQnpjHtTqVFRqLzKs93Q0/5G4JzUMttOtwTm3o gc2OMYxj7QZGuMJcOljt/AmxYq3qXSQRbXsBouoG7CGwqx+r5TYjJAd54HEmGzSSWA0l j3zRwkHxrZK2ueV2l+hIUopDlMjeTc8jeUkvUiEUjryHrQp/UaFMNPzgHSgtXoX8EelP FyADUBTcXXqbIL4usyRZUeQaDXeB9rhIgdH9w6eyeY1BwR0g1DL1XdpuTbv7kmTvUCCl 2KONdXA43hKkLnPm+0cSMGvigCY0P2CdWvAjKlkTxERmGZ+SuGE+l0YKyQg461siaRpH sCCg== 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=c8CVInH/SbEiauJpAH+701m4etUfcrFaiMTk9o+WaXM=; b=Ip1BN3tX5ssgS4FffE+gTrBznFHa9KDRqPGW72lzc0pFBLbo/V0AvIQqdv3iseU+di fkeYD03rIjljJRhOrHdDQG5O/wQLNCivLpiFnnrCwvmz7y8jYS6mQw6sNLw0o+Xfowoz nhDyzVVowosIp8D8uH6hoJ/kV/s4zBDSPJF5Xr6lgU3NaPaPKN0ORWBQNJpV5NkjHoGa itcidYPN/Uem6UUf0K99CglCHZnroxjBBJa/LVZIMqthDQJWwHIMO1YutRn4hODaAwwo swf+UlJSg7mD3Y4otgEeWpHBXPHZFMOjpfv2ZcIj8XQ+N+aHULKC/DHG8pAyg8uz481p dqlA== X-Gm-Message-State: AA+aEWalh9B7o+J82e95TpVmGwumCgebg1PXjN8796P0VpMJQ17iYlKz cpjYZ9/alZ0agWylEmFTCvwo58g0w6AdLWAD8AQztg== X-Received: by 2002:adf:f785:: with SMTP id q5mr14616682wrp.9.1545123021978; Tue, 18 Dec 2018 00:50:21 -0800 (PST) MIME-Version: 1.0 References: <20181130080207.20505-1-anup@brainfault.org> <20181130080207.20505-4-anup@brainfault.org> <20181217182719.GC7086@infradead.org> In-Reply-To: <20181217182719.GC7086@infradead.org> From: Anup Patel Date: Tue, 18 Dec 2018 14:20:10 +0530 Message-ID: Subject: Re: [PATCH v3 3/6] irqchip: sifive-plic: More flexible plic_irq_toggle() To: Christoph Hellwig Cc: Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Atish Patra , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" 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, Dec 17, 2018 at 11:57 PM Christoph Hellwig wrote: > > > -static inline void plic_toggle(struct plic_handler *handler, > > - int hwirq, int enable) > > +static void plic_toggle(struct plic_handler *handler, int hwirq, int enable) > > { > > u32 __iomem *reg = handler->enable_base + (hwirq / 32) * sizeof(u32); > > u32 hwirq_mask = 1 << (hwirq % 32); > > @@ -92,27 +91,27 @@ static inline void plic_toggle(struct plic_handler *handler, > > raw_spin_unlock(&handler->enable_lock); > > } > > > > -static inline void plic_irq_toggle(struct irq_data *d, int enable) > > +static void plic_irq_toggle(const struct cpumask *mask, int hwirq, int enable) > > It also removes inline statements which seems rather unrelated to > the patch description. Actually these functions should not be inline because plic_toggle() uses raw_spin_lock() and plic_irq_toggle() uses for-loop. > > Also the actual addintion of the single cpumask argument is simple > enough that it should probably go into the patch that makes use of it. OK, I will have separate patch for removing "inline" and move addition of cpumask argument to last patch. Regards, Anup