Re: [PATCH v3 06/10] cxl/pci: Add @base to cxl_register_map
From: Dan Williams
Date: Fri Oct 15 2021 - 12:56:15 EST
On Fri, Oct 15, 2021 at 9:27 AM Jonathan Cameron
<Jonathan.Cameron@xxxxxxxxxx> wrote:
>
> On Sat, 9 Oct 2021 09:44:29 -0700
> Dan Williams <dan.j.williams@xxxxxxxxx> wrote:
>
> > In addition to carrying @barno, @block_offset, and @reg_type, add @base
> > to keep all map/unmap parameters in one object. The helpers
> > cxl_{map,unmap}_regblock() handle adjusting @base to the @block_offset
> > at map and unmap time.
> >
> > Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>
>
> I don't really mind them, but why the renames
> from cxl_pci_* to cxl_* ?
Primarily because we had a mix of some functions including the _pci
and some not, and I steered towards just dropping it. I think the
"PCI" aspect of the function is clear by its function signature, and
that was being muddied by passing @cxlm unnecessarily. So instead of:
cxl_pci_$foo(struct cxl_mem *cxlm...)
...I went with:
cxl_$foo(struct pci_dev *pdev...)
...concerns?