Skip to content

Modernization and fixes for NuBus subsystem

Finn Thain linux-fbdev linux-m68k lkml netdev 5 versions – Applied

Status from this message: Thanks, applied and queued for v4.16.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest14 patches 1 replyApplied
  2. v414 patches 4 repliesSuperseded
  3. v314 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v213 patches7 repliesSuperseded
v114 patches10 repliesSuperseded

Changes in v5 from the cover letter

- Addressed some code style issues.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/14nubus: Avoid array underflow and overflowdrivers/nubus/nubus.c drivers/nubus/proc.c include/linux/nubus.h+27 -240 replies
2/14nubus: Fix up header splitinclude/linux/nubus.h include/uapi/linux/nubus.h+23 -270 replies
3/14nubus: Use static functions where possibledrivers/nubus/nubus.c include/linux/nubus.h+2 -30 replies
4/14nubus: Fix log spamdrivers/nubus/nubus.c+56 -730 replies
5/14nubus: Validate slot resource IDsdrivers/nubus/nubus.c+20 -60 replies
6/14nubus: Call proc_mkdir() not more than once per slot directorydrivers/nubus/proc.c include/linux/nubus.h+8 -30 replies
7/14nubus: Remove redundant codedrivers/nubus/nubus.c drivers/nubus/proc.c include/linux/nubus.h+23 -530 replies
8/14nubus: Clean up whitespaceinclude/linux/nubus.h+29 -290 replies
9/14nubus: Generalize block resource handlingdrivers/nubus/nubus.c+65 -580 replies
10/14nubus: Rework /proc/bus/nubus/s/ implementationdrivers/nubus/nubus.c drivers/nubus/proc.c include/linux/nubus.h+256 -1170 replies
11/14nubus: Rename struct nubus_devdrivers/net/ethernet/8390/mac8390.c drivers/net/ethernet/natsemi/macsonic.c drivers/nubus/nubus.c +3 more+98 -1020 replies
12/14nubus: Adopt standard linked list implementationdrivers/net/ethernet/8390/mac8390.c drivers/net/ethernet/cirrus/mac89x0.c drivers/net/ethernet/natsemi/macsonic.c +4 more+40 -600 replies
13/14nubus: Add expansion_type values for various Mac modelsarch/m68k/include/asm/macintosh.h arch/m68k/mac/config.c drivers/net/ethernet/natsemi/macsonic.c+54 -730 replies
14/14nubus: Add support for the driver modeldrivers/nubus/Makefile drivers/nubus/bus.c drivers/nubus/nubus.c +2 more+161 -700 replies

Reviews trailers per patch

3 of 14 patches have a Reviewed-by or Acked-by.

PatchStan JohnsonBartlomiej ZolnierkiewiczGreg Kroah-Hartman
1/14T-b
2/14T-b
3/14T-b
4/14T-b
5/14T-b
6/14T-b
7/14T-b
8/14T-b
9/14T-b
10/14T-b
11/14T-b A-b
12/14T-b A-b
13/14T-b
14/14T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/14] Modernization and fixes for NuBus subsystem

This series begins with cleanups and fixes for the NuBus subsystem and finishes with a patch to add support for the Linux Driver Model. A separate series (which requires this one) modernizes NuBus drivers.

Changes since v1:
- Added the missing NULL check in nubus_device_remove().
- Squashed the two /proc/bus/nubus/s/ patches into one patch.
- Combined the two sets of /proc/bus/nubus file operations into one set.
- Used the name 'nubus_rsrc' instead of 'nubus_functional_resource'.
- Used the name 'nubus_device_register' instead of 'nubus_device_add'.
- Dropped the unused EXPORT_SYMBOL(nubus_seq_write_rsrc_mem).
- Replaced licensing text in the new file with SPDX-License-Identifier.

Changes since v2:
- Implemented an idiomatic device release function for nubus boards.
- Removed the global nubus_boards linked list.
- Removed nubus_board pointer from proc dir entry private data to improve modularity.
- Adopted the standard linked list implementation.
- Disambiguated unrecognized and empty resources under /proc/bus/nubus.
- Reduced redundancy in proc dir entry private data to save some memory.
- Replaced /proc/nubus custom seq file ops with single_open().

Changes since v3:
- Added Acked-by and Reviewed-by tags.
- Moved the SPDX tag in bus.c to the first line of the file.

Changes since v4:
- Addressed some code style issues.

Finn Thain (14):
nubus: Avoid array underflow and overflow
nubus: Fix up header split
nubus: Use static functions where possible
nubus: Fix log spam
nubus: Validate slot resource IDs
nubus: Call proc_mkdir() not more than once per slot directory
nubus: Remove redundant code
nubus: Clean up whitespace
nubus: Generalize block resource handling
nubus: Rework /proc/bus/nubus/s/ implementation
nubus: Rename struct nubus_dev
nubus: Adopt standard linked list implementation
nubus: Add expansion_type values for various Mac models
nubus: Add support for the driver model

 arch/m68k/include/asm/macintosh.h       |   9 +-
 arch/m68k/mac/config.c                  | 110 +++----
 drivers/net/ethernet/8390/mac8390.c     |  33 +-
 drivers/net/ethernet/cirrus/mac89x0.c   |   6 +-
 drivers/net/ethernet/natsemi/macsonic.c |  38 ++-
 drivers/nubus/Makefile                  |   2 +-
 drivers/nubus/bus.c                     | 117 +++++++
 drivers/nubus/nubus.c                   | 542 +++++++++++++++++---------------
 drivers/nubus/proc.c                    | 281 ++++++++---------
 drivers/video/fbdev/macfb.c             |  10 +-
 include/linux/nubus.h                   | 189 +++++++----
 include/uapi/linux/nubus.h              |  23 --
 12 files changed, 762 insertions(+), 598 deletions(-)
 create mode 100644 drivers/nubus/bus.c
Signature · 1 line
2.13.6