Skip to content

AsoC: Phase out hybrid PCI devres

Philipp Stanner linux-sound lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 3/38 patches 1 replyApplied 8/8
  2. v3 Latest4 patches 1 replyIn review
  3. v2 posting 2/34 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/328 patches1 replyApplied
v18 patches5 repliesSuperseded

Changes in v3 from the cover letter

- Remove two forgotten calls to pci_release_regions(). (Amadeusz)
- Adjust commit titles to common format. (Amadeusz, Cezary)
- Apply RB by Czeray (not everywhere, two patches changed, see point 1 above)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ASoC: sof: Use pure devres PCIsound/soc/sof/sof-pci-dev.c+3 -130 replies
2/4ASoC: intel: avs: Use pure devres PCIsound/soc/intel/avs/core.c+2 -60 replies
3/4AsoC: intel: atom: Use pure devres PCIsound/soc/intel/atom/sst/sst_pci.c+24 -350 replies
4/4AsoC: intel: atom: Return -ENOMEM if pcim_iomap() failssound/soc/intel/atom/sst/sst_pci.c+5 -50 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchCezary Rojewski
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] AsoC: Phase out hybrid PCI devres

Changes in v3:
- Remove two forgotten calls to pci_release_regions(). (Amadeusz)
- Adjust commit titles to common format. (Amadeusz, Cezary)
- Apply RB by Czeray (not everywhere, two patches changed, see point 1 above)

Changes in v2:
- sof: simplify return. (Andy)
- intel/atom: simplify return. (Andy)
- Send a separate series for AsoC. (Andy)
- intel/atom: Add another patch that switches EINVAL to ENOMEM. (Andy)

Hi,

a year ago we spent quite some work trying to get PCI into better shape. Some pci_ functions can be sometimes managed with devres, which is obviously bad. We want to provide an obvious API, where pci_ functions are never, and pcim_ functions are always managed.

Thus, everyone enabling his device with pcim_enable_device() must be ported to pcim_ functions. Porting all users will later enable us to significantly simplify parts of the PCI subsystem. See here [1] for details.

This patch series does that for sound.

Feel free to squash the commits as you see fit.

P.

[1] https://elixir.bootlin.com/linux/v6.14-rc4/source/drivers/pci/devres.c#L18

Philipp Stanner (4):
ASoC: sof: Use pure devres PCI
ASoC: intel: avs: Use pure devres PCI
AsoC: intel: atom: Use pure devres PCI
AsoC: intel: atom: Return -ENOMEM if pcim_iomap() fails

 sound/soc/intel/atom/sst/sst_pci.c | 59 ++++++++++++------------------
 sound/soc/intel/avs/core.c         |  8 +---
 sound/soc/sof/sof-pci-dev.c        | 16 ++------
 3 files changed, 29 insertions(+), 54 deletions(-)
Signature · 1 line
2.48.1