Skip to content

PNP: convert resource options to unified dynamic list, v2

Bjorn Helgaas linux-acpi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 12 repliesIn review

Change between v1 and v2 from the cover letter

- rewrote 8250_pnp modem identification (first patch in series)
- used bitmap_copy() rather than explicit loop to copy IRQ bitmaps
- added "(optional)" note in /sys/.../options for IORESOURCE_IRQ_OPTIONAL
- split out ISAPNP ENDDEP bug fix into a separate patch
- restored "clear auto resources" when auto-assignment fails
- removed 0x100 from option priority
- allocated 12 bits for dependent option priority, 16 bits for set number
- restored check for invalid dependent function priority
- fixed AD1815 quirk (set OPTIONAL flag in the correct "flags" field)
- fixed ioport.h ISA PnP comment (replaces Rene's pnpacpi-fix-irq-flag-decoding-comment-fix.patch)
- rename "pnp_dependent_option()" to "pnp_new_dependent_set()"

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18PNP: add pnp_possible_config() -- can a device could be configured this way?drivers/pnp/resource.c drivers/serial/8250_pnp.c include/linux/pnp.h+71 -171 reply
2/18PNP: whitespace/coding style fixesdrivers/pnp/interface.c+8 -70 replies
3/18PNP: IORESOURCE_* flags are PNP-specific, not ISA PNP-specificinclude/linux/ioport.h+3 -31 reply
4/18PNP: define PNP-specific IORESOURCE_IO_* flags alongside IRQ, DMA, MEMdrivers/pnp/interface.c drivers/pnp/isapnp/core.c drivers/pnp/pnpacpi/rsparser.c +3 more+14 -130 replies
5/18PNP: make resource option structures private to PNP subsystemdrivers/pnp/base.h include/linux/pnp.h+48 -481 reply
6/18PNP: introduce pnp_irq_mask_t typedefdrivers/pnp/base.h drivers/pnp/interface.c drivers/pnp/isapnp/core.c +5 more+17 -150 replies
7/18PNP: increase I/O port & memory option address sizesdrivers/pnp/base.h drivers/pnp/interface.c drivers/pnp/resource.c+29 -180 replies
8/18PNP: improve resource assignment debugdrivers/pnp/manager.c+8 -20 replies
9/18PNP: in debug resource dump, make empty list obviousdrivers/pnp/support.c+6 -10 replies
10/18PNP: make resource assignment functions return 0 (success) or -EBUSY (failure)drivers/pnp/manager.c+22 -190 replies
11/18PNP: remove redundant pnp_can_configure() checkdrivers/pnp/manager.c+0 -30 replies
12/18PNP: centralize resource option allocationsdrivers/pnp/base.h drivers/pnp/isapnp/core.c drivers/pnp/pnpacpi/rsparser.c +2 more+195 -2460 replies
13/18PNPACPI: ignore _PRS interrupt numbers larger than PNP_IRQ_NRdrivers/pnp/pnpacpi/rsparser.c+10 -30 replies
14/18PNP: rename pnp_register_*_resource() local variablesdrivers/pnp/resource.c+47 -470 replies
15/18PNP: support optional IRQ resourcesdrivers/pnp/interface.c drivers/pnp/manager.c drivers/pnp/quirks.c +1 more+39 -423 replies
16/18PNP: remove extra 0x100 bit from option prioritydrivers/pnp/isapnp/core.c drivers/pnp/pnpacpi/rsparser.c drivers/pnp/pnpbios/rsparser.c+7 -91 reply
17/18ISAPNP: handle independent options following dependent onesdrivers/pnp/isapnp/core.c+7 -21 reply
18/18PNP: convert resource options to single linked listdrivers/pnp/base.h drivers/pnp/core.c drivers/pnp/interface.c +8 more+565 -6352 replies

Reviews trailers per patch

All 18 patches have a Reviewed-by or Acked-by.

PatchRene Herman
1/18A-b
2/18A-b
3/18A-b
4/18A-b
5/18A-b
6/18A-b
7/18A-b
8/18A-b
9/18A-b
10/18A-b
11/18A-b
12/18A-b
13/18A-b
14/18A-b
15/18A-b
16/18A-b
17/18A-b
18/18A-b

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

Read the v1 thread

Cover letter [patch 00/18] PNP: convert resource options to unified dynamic list, v2

This patch series converts the PNP resource option structures to a unified linked list. This preserves resource order, which is important for some devices. The bulk of the series is in the last patch, and it has more a more detailed changelog.

Rene Herman did some testing of ISA devices and reviewed v1 of this series. I think I addressed all his comments. Any comments would be welcome.

This depends on some patches that are in -mm, but not yet upstream. In mmotm, these would probably go after pnp-dont-sort-by-type-in-sys-resources.patch

Note that I incorporated Rene's ioport.h comment fix (pnpacpi-fix-irq-flag-decoding-comment-fix.patch) into this series, so you should drop that if you pick up this series.

Change between v1 and v2:
- rewrote 8250_pnp modem identification (first patch in series)
- used bitmap_copy() rather than explicit loop to copy IRQ bitmaps
- added "(optional)" note in /sys/.../options for IORESOURCE_IRQ_OPTIONAL
- split out ISAPNP ENDDEP bug fix into a separate patch
- restored "clear auto resources" when auto-assignment fails
- removed 0x100 from option priority
- allocated 12 bits for dependent option priority, 16 bits for set number
- restored check for invalid dependent function priority
- fixed AD1815 quirk (set OPTIONAL flag in the correct "flags" field)
- fixed ioport.h ISA PnP comment (replaces Rene's pnpacpi-fix-irq-flag-decoding-comment-fix.patch)
- rename "pnp_dependent_option()" to "pnp_new_dependent_set()"

Bjorn