Re: [PATCH v2 02/17] PCI: Add an offset-indexed store for saved capability registers
From: Lukas Wunner
Date: Sat Dec 05 2026 - 03:59:37 EST
On Fri, Dec 04, 2026 at 03:22:45PM -0800, David Matlack wrote:
> On Fri Dec 4, 2026 at 9:55 AM PST, Lukas Wunner wrote:
> > On Fri, Nov 06, 2026 at 12:42:03AM +0000, David Matlack wrote:
> >> +/**
> >> + * pci_write_saved_cap_word - change the saved value of a 16-bit register
> >> + * @dev: the PCI device
> >> + * @off: offset of the register in configuration space
> >> + * @val: value to save
> >> + */
> >> +void pci_write_saved_cap_word(struct pci_dev *dev, unsigned int off, u16 val)
> >
> > Another naming issue: "write" sounds like something is written to
> > config space. You're actually updating the saved config store.
> >
> > Same for pci_read_saved_cap_word(). Maybe "store" / "retrieve"?
>
> How about get/set?
>
> I'd like to avoid "retrieve" since patch 17 already uses it for Live
> Update, where it means something else
> (pci_liveupdate_retrieve_saved_state()).
get/set seems fine. My thesaurus otherwise only lists "fetch" (for
"retrieve") and "stash", "cache" (for "store") as viable alternatives.
Thanks,
Lukas