Skip to contentSkip to conversation

Driver core fixes for 6.0-rc4

GIT PULL Merged Greg KH 3 participants 4 messages Sep 2, 2022 – Sep 3, 2022

lore
Share & tools
lore

Greg KH

author
#0 lore raw

The following changes since commit 1c23f9e627a7b412978b4e852793c5e3c3efc555:

Linux 6.0-rc2 (2022-08-21 17:32:54 -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.0-rc4

for you to fetch changes up to 789bba82f63c3e81dce426ba457fc7905b30ac6e:

firmware_loader: Fix memory leak in firmware upload (2022-09-01 17:47:27 +0200)

----------------------------------------------------------------
Driver core fixes for 6.0-rc4

Here are some small driver core fixes for some oft-reported problems in 6.0-rc1. They include:
- a bunch of reverts to handle driver_deferred_probe_check_state() problems that were part of the 6.0-rc1 merge.
- firmware_loader bugfixes now that the code is being properly tested and used by others
- arch_topology fix
- deferred driver probe bugfix to solve a long-suffering amba bus problem that many people have reported.

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

----------------------------------------------------------------
Florian Fainelli (1):
arch_topology: Silence early cacheinfo errors when non-existent

Isaac J. Manjarres (1):
driver core: Don't probe devices after bus_type.match() probe deferral

Russ Weight (2):
firmware_loader: Fix use-after-free during unregister
firmware_loader: Fix memory leak in firmware upload

Saravana Kannan (4):
Revert "driver core: Delete driver_deferred_probe_check_state()" Revert "net: mdio: Delete usage of driver_deferred_probe_check_state()" Revert "PM: domains: Delete usage of driver_deferred_probe_check_state()" Revert "iommu/of: Delete usage of driver_deferred_probe_check_state()"

 drivers/base/arch_topology.c                |  2 +-
 drivers/base/dd.c                           | 40 +++++++++++++++++++++++++++++
 drivers/base/firmware_loader/sysfs.c        |  7 +++--
 drivers/base/firmware_loader/sysfs.h        |  5 ++++
 drivers/base/firmware_loader/sysfs_upload.c | 12 ++++++++-
 drivers/base/power/domain.c                 |  2 +-
 drivers/iommu/of_iommu.c                    |  2 +-
 drivers/net/mdio/fwnode_mdio.c              |  4 ++-
 include/linux/device/driver.h               |  1 +
 9 files changed, 66 insertions(+), 9 deletions(-)
#1 lore raw
Quoted 2 lines · Greg KH

git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/driver-core-6.0-rc4

Entirely unrelated to this pull request, but since the diffstat made that "drivers/base/dd.c" file stand out, I tried to look at what the history of that odd name is.

And it's not obvious to me.

Very strange filename. Should it perhaps be named "device.c" or "probe.c" or something more descriptive?

Not a huge deal, more of a passing thought inspired by that diffstat.

Linus

merge bot Merged
#3 lore raw
In reply to Greg KH
The pull request you sent on Fri, 2 Sep 2022 17:31:03 +0200:

The pull request you sent on Fri, 2 Sep 2022 17:31:03 +0200:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/driver-core-6.0-rc4

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/0b3acd1cc0222953035d18176b1e4aa06624fd6e

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
author
#2 lore raw
In reply to Linus Torvalds
Quoted 8 lines · Linus Torvalds
Quoted 2 lines · Greg KH

git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/driver-core-6.0-rc4

Entirely unrelated to this pull request, but since the diffstat made that "drivers/base/dd.c" file stand out, I tried to look at what the history of that odd name is.

Quoted 6 lines

And it's not obvious to me.

Very strange filename. Should it perhaps be named "device.c" or "probe.c" or something more descriptive?

Not a huge deal, more of a passing thought inspired by that diffstat.

I think Pat named it and I always think of it as "device vs. driver".c as it handles all of the device and driver interactions between binding and unbinding and other fun logic there. I'm all for a new name if anyone has any ideas, "probe.c" is sane, but it also handles disconnect logic. "core.c" already has lots of device functions, so renaming it to "device.c" would be confusing. I don't know...

Yeah, in digging, Pat did this in commit 07e4a3e27fe4 ("[PATCH] Move device/driver code to drivers/base/dd.c") way back in 2005 to get code out of drivers/base/bus.c.

Naming is hard :)

greg k-h