gpio: Implement and utilize register structures for ISA drivers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/26 patches 1 replyIn review
- v4 posting 1/26 patches 1 replySuperseded
- v36 patches 4 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 2/2 | 6 patches | 8 replies | Superseded | |
| v2 posting 1/2 | 2 patches | 1 reply | Superseded | |
| v1 | 5 patches | 2 replies | Superseded |
Changes in v4 from the cover letter
- Cleanup superfluous header includes from drivers
- Add note to CONFIG_GPIO_I8255 Kconfig that if built as a module the name will be 'gpio-i8255'
- Remove 'const' from '__iomem' pointers
- Replace ambiguous 'group' terminology with more understandable 'bank'
- Use more natural '>= 4' expression to represent upper nibble
- Refactor i8255_set_port() to take more common pattern of mask and bits
Patches in v4 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | gpio: ws16c48: Implement and utilize register structuresdrivers/ | +84 | 0 replies | |
| 2/6 | gpio: 104-idio-16: Implement and utilize register structuresdrivers/ | +42 | 0 replies | |
| 3/6 | gpio: i8255: Introduce the Intel 8255 interface library moduleMAINTAINERS drivers/ drivers/ +2 more | +352 | 0 replies | |
| 4/6 | gpio: 104-dio-48e: Implement and utilize register structuresdrivers/ drivers/ | +75 | 0 replies | |
| 5/6 | gpio: 104-idi-48: Implement and utilize register structuresdrivers/ drivers/ | +61 | 0 replies | |
| 6/6 | gpio: gpio-mm: Implement and utilize register structuresdrivers/ drivers/ | +40 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Linus Walleij | Fred Eckert |
|---|---|---|
| 1/6 | R-b | |
| 2/6 | R-b | T-b |
| 3/6 | R-b | T-b |
| 4/6 | R-b | |
| 5/6 | R-b | |
| 6/6 | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RESEND PATCH v4 0/6] gpio: Implement and utilize register structures for ISA drivers
Rebased onto the gpio/for-next branch.
Changes in v4:
- Cleanup superfluous header includes from drivers
- Add note to CONFIG_GPIO_I8255 Kconfig that if built as a module the name will be 'gpio-i8255'
- Remove 'const' from '__iomem' pointers
- Replace ambiguous 'group' terminology with more understandable 'bank'
- Use more natural '>= 4' expression to represent upper nibble
- Refactor i8255_set_port() to take more common pattern of mask and bits
The PC104/ISA drivers were updated to use I/O memory accessor calls such as ioread8()/iowrite8() in a previous patch series [0]. This patchset is a continuation of the effort to improve the code readability and reduce magic numbers by implementing and utilizing named register data structures.
One of the benefits is that we can now observe more easily similarities in devices that share similar interfaces; such as the i8255 interfaces used by the 104-DIO-48E, 104-IDI-48, and GPIO-MM drivers -- as well as the similar interface used by the 104-IDIO-16 and PCI-IDIO-16 drivers.
A new module supporting the Intel 8255 interface is introduced to consolidate the common code found among the 104-DIO-48E, 104-IDI-48, and GPIO-MM drivers.
[0] https://lore.kernel.org/all/[email protected]/
William Breathitt Gray (6):
gpio: ws16c48: Implement and utilize register structures
gpio: 104-idio-16: Implement and utilize register structures
gpio: i8255: Introduce the Intel 8255 interface library module
gpio: 104-dio-48e: Implement and utilize register structures
gpio: 104-idi-48: Implement and utilize register structures
gpio: gpio-mm: Implement and utilize register structures
MAINTAINERS | 6 + drivers/gpio/Kconfig | 15 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-104-dio-48e.c | 249 ++++++++------------------- drivers/gpio/gpio-104-idi-48.c | 143 +++++++--------- drivers/gpio/gpio-104-idio-16.c | 60 +++++-- drivers/gpio/gpio-gpio-mm.c | 202 +++++----------------- drivers/gpio/gpio-i8255.c | 287 ++++++++++++++++++++++++++++++++ drivers/gpio/gpio-i8255.h | 46 +++++ drivers/gpio/gpio-ws16c48.c | 120 +++++++++---- 10 files changed, 654 insertions(+), 475 deletions(-) create mode 100644 drivers/gpio/gpio-i8255.c create mode 100644 drivers/gpio/gpio-i8255.h
base-commit: c4371c56397340134c1827ab70dbf817dbb1b99b
Signature · 1 line
2.36.1