[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <af4dd1db-dc24-1797-a43a-8487a95e47f9@synopsys.com>
Date: Thu, 9 Mar 2017 11:55:01 +0000
From: Joao Pinto <Joao.Pinto@...opsys.com>
To: Christoph Hellwig <hch@...radead.org>,
Joao Pinto <Joao.Pinto@...opsys.com>,
Kishon Vijay Abraham I <kishon@...com>
CC: Bjorn Helgaas <bhelgaas@...gle.com>,
Jingoo Han <jingoohan1@...il.com>, <linux-pci@...r.kernel.org>,
<linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-omap@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <nsekhar@...com>
Subject: Re: [PATCH v2 08/22] PCI: dwc: designware: Add EP mode support
Hi Christoph,
Às 7:14 PM de 3/8/2017, Christoph Hellwig escreveu:
> On Wed, Mar 08, 2017 at 03:32:03PM +0000, Joao Pinto wrote:
>> #define PCIE_GET_ATU_INB_UNR_REG_ADDR(region, register) \
>> ((0x3 << 20) | (region << 9) | \
>> (0x1 << 8)
>
> Can you turn this and any similar macro into inline functions?
>
Use an inline functions instead of macro is fine by me. In the initial patch I
implemented as a macro since it only does simple bit shifts and nothing else and
seemed simpler as a macro.
Thanks,
Joao
Powered by blists - more mailing lists