From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4BEC3C433EF for ; Fri, 15 Jul 2022 21:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=IlCF1kB186mDxksnFtqSTOIznvCh84AOJZbXtVXMC2Q=; b=nG78Xi628SUpHl e6jjjFgiWKIascOdOdXMzovG7eILyD2hXqB3Y06ftpt3fjWldFwuZxLfvq3lTInkfuQSx8gje56Rm UKhy86nWrZa0bvcIH2DDd+vyiOKV7Lr9z4f2ywGfpzvzPwHaO3CIgcBMS1gCAxu2q3CxEz+XnmR9E 4qk1us7raUkUpkwBCArcBSHLsa27C1hJgUlshyDbH+qhxlLMbIiWBrgYB4i+W488UlAMG6/2qnVzG 7/s9ckgygsustjhNMhH4AgJ+xHk4V++8ySFZojVCFDvBARMRDyNYRA/6L5I7QqEYjQ6lWwfdfvktv M4hY+aP7RjccBeAwwb2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oCSW4-00AMN5-Ie; Fri, 15 Jul 2022 21:06:28 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oCSW1-00AMM5-8s for linux-arm-kernel@lists.infradead.org; Fri, 15 Jul 2022 21:06:26 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 70A0CB82E58; Fri, 15 Jul 2022 21:06:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4A98C34115; Fri, 15 Jul 2022 21:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657919182; bh=3rMAJ2lVe/XGnRSOvqbNg+N96brIGh5qsH92ulpVn00=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=RN3wplA05RkAtDtZSdAWzbo5g67gU4NFy+F+e7ZQXWxQqiInonor1+zpUUbOeK29L NqH5IQ4vGRM1QGzNkc4tDLfHLYGDBBr1OcZ/EEwfdyrQBZIfAzSqWWkStM/+6DuziL cBuiRDZNiuNPSznKzKcZKMVcJzyJJPZ/GuDUuSps4ANKLcWI83hhgaQOc8zqXktqa2 D0KDzTfu35ip4DitN9zjOZePcX62LrOzdhpCN5Kb/aCYSRfdZqIZTfk97+WMRhpdN1 xk4oF1qAjOEeq9j80hK+NLArigGm09MoNJRI15EIOcvKgQ2cnVMoOtCXM1S+ed7cfZ O2bqUEFGWhNmg== Date: Fri, 15 Jul 2022 16:06:19 -0500 From: Bjorn Helgaas To: Frank Li , Jon Mason Cc: maz@kernel.org, tglx@linutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kw@linux.com, bhelgaas@google.com, kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, peng.fan@nxp.com, aisheng.dong@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, ntb@lists.linux.dev Subject: Re: [PATCH v2 4/4] pcie: endpoint: pci-epf-vntb: add endpoint msi support Message-ID: <20220715210619.GA1190861@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220715192219.1489403-5-Frank.Li@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220715_140625_485955_B8AEFB89 X-CRM114-Status: GOOD ( 14.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org [+to Jon, since I guess he will apply or at least review this, not me] On Fri, Jul 15, 2022 at 02:22:19PM -0500, Frank Li wrote: > This patch add msi support for ntb endpoint(EP) side. > EP side driver query if system have msi controller. > Setup doorbell address according to struct msi_msg. > > So PCIe host can write this doorbell address to EP > side's irq. > > If no msi controller exist, failback software polling. s/This patch add/Add/ s/msi/MSI/ (several) s/ntb/NTB/ s/irq/IRQ/ s/failback/fall back to/ Rewrap commit log to fill 75 columns to make it easier to read. > +static int epf_ntb_db_size(struct epf_ntb *ntb) > +{ > + const struct pci_epc_features *epc_features; > + size_t size = 4 * ntb->db_count; > + u32 align; Replace tabs with spaces in these declarations , since that's what code below does, e.g., in epf_ntb_db_bar_init(), etc. > + dev_info(dev, "Can't allocate MSI, failure back to poll mode\n"); s/failure/fall/ > + return; > + } > + > + dev_info(dev, "vntb use MSI as doorbell\n"); > + ret = devm_request_irq(dev, virq, > + epf_ntb_interrupt_handler, 0, > + "ntb", ntb); > + > + if (ret) > + dev_err(dev, "request irq failure\n"); s/irq/IRQ/ (or spell out "devm_request_irq()"). Capitalize all messages or none of them. Match the prevailing style of the file. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel