[GIT PULL] Driver core update for 6.6-rc1

From: Greg KH
Date: Fri Sep 01 2023 - 11:21:02 EST


The following changes since commit 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4:

Linux 6.5-rc4 (2023-07-30 13:23:47 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/driver-core-6.6-rc1

for you to fetch changes up to 29c8ab79e91d35b93cfab87bf67a11516f7b2051:

driver core: Call in reversed order in device_platform_notify_remove() (2023-08-22 16:57:39 +0200)

----------------------------------------------------------------
Driver core changes for 6.6-rc1

Here is a small set of driver core updates and additions for 6.6-rc1.

Included in here are:
- stable kernel documentation updates
- class structure const work from Ivan on various subsystems
- kernfs tweaks
- driver core tests!
- kobject sanity cleanups
- kobject structure reordering to save space
- driver core error code handling fixups
- other minor driver core cleanups

All of these have been in linux-next for a while with no reported
problems.

Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

----------------------------------------------------------------
Andy Shevchenko (3):
driver core: Move dev_err_probe() to where it belogs
driver core: Return proper error code when dev_set_name() fails
driver core: Call in reversed order in device_platform_notify_remove()

Arnd Bergmann (1):
kernfs: add stub helper for kernfs_generic_poll()

Christophe JAILLET (1):
kobject: Reorder fields in 'struct kobject'

Dan Carpenter (1):
driver core: test_async: fix an error code

David Gow (1):
drivers: base: Free devm resources when unregistering a device

GUO Zihua (1):
base/node: Remove duplicated include

Greg Kroah-Hartman (1):
HID: hidraw: make hidraw_class structure const

Ian Kent (1):
kernfs: fix missing kernfs_iattr_rwsem locking

Ivan Babrou (1):
kernfs: attach uuid for every kernfs and report it in fsid

Ivan Orlov (5):
tpm: make all 'class' structures const
HID: roccat: make all 'class' structures const
x86/cpuid: make cpuid_class a static const structure
x86/MSR: make msr_class a static const structure
x86/resctrl: make pseudo_lock_class a static const structure

Jason Gunthorpe (1):
driver core: Call dma_cleanup() on the test_remove path

Maxime Ripard (4):
drivers: base: Add basic devm tests for root devices
drivers: base: Add basic devm tests for platform devices
drivers: base: test: Add missing MODULE_* macros for platform devices tests
drivers: base: test: Add missing MODULE_* macros to root device tests

Thorsten Leemhuis (7):
docs: stable-kernel-rules: mention other usages for stable tag comments
docs: stable-kernel-rules: make rule section more straight forward
docs: stable-kernel-rules: improve structure by changing headlines
docs: stable-kernel-rules: move text around to improve flow
docs: stable-kernel-rules: make the examples for option 1 a proper list
docs: stable-kernel-rules: fine-tune various details
docs: stable-kernel-rules: mention that regressions must be prevented

Waiman Long (1):
driver/base/cpu: Retry online operation if -EBUSY

Zhen Lei (3):
kobject: Add helper kobj_ns_type_is_valid()
kobject: Add sanity check for kset->kobj.ktype in kset_register()
kobject: Remove redundant checks for whether ktype is NULL

Documentation/process/stable-kernel-rules.rst | 197 ++++++++++++----------
arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 41 ++---
arch/x86/kernel/cpuid.c | 31 ++--
arch/x86/kernel/msr.c | 31 ++--
drivers/base/core.c | 30 ++--
drivers/base/cpu.c | 19 +++
drivers/base/dd.c | 2 +
drivers/base/node.c | 1 -
drivers/base/test/.kunitconfig | 2 +
drivers/base/test/Kconfig | 4 +
drivers/base/test/Makefile | 3 +
drivers/base/test/platform-device-test.c | 224 ++++++++++++++++++++++++++
drivers/base/test/root-device-test.c | 112 +++++++++++++
drivers/base/test/test_async_driver_probe.c | 2 +-
drivers/char/tpm/tpm-chip.c | 11 +-
drivers/char/tpm/tpm-interface.c | 21 ++-
drivers/char/tpm/tpm.h | 4 +-
drivers/char/tpm/tpm2-space.c | 2 +-
drivers/hid/hid-roccat-arvo.c | 20 +--
drivers/hid/hid-roccat-isku.c | 21 +--
drivers/hid/hid-roccat-kone.c | 24 +--
drivers/hid/hid-roccat-koneplus.c | 22 +--
drivers/hid/hid-roccat-konepure.c | 22 +--
drivers/hid/hid-roccat-kovaplus.c | 22 +--
drivers/hid/hid-roccat-pyra.c | 22 +--
drivers/hid/hid-roccat-ryos.c | 20 +--
drivers/hid/hid-roccat-savu.c | 20 +--
drivers/hid/hid-roccat.c | 2 +-
drivers/hid/hidraw.c | 18 +--
fs/kernfs/dir.c | 4 +
fs/kernfs/mount.c | 13 +-
include/linux/dev_printk.h | 2 +
include/linux/device.h | 2 -
include/linux/hid-roccat.h | 2 +-
include/linux/kernfs.h | 4 +
include/linux/kobject.h | 8 +-
lib/kobject.c | 62 +++----
37 files changed, 749 insertions(+), 298 deletions(-)
create mode 100644 drivers/base/test/.kunitconfig
create mode 100644 drivers/base/test/platform-device-test.c
create mode 100644 drivers/base/test/root-device-test.c