Don't rename the already registered PCI-device#87
Merged
Conversation
Contributor
|
Hi @jwrdegoede , Would you mind adding this change to your commit? |
devices must not be renamed after they have already been added to the device hierarchy. dev_set_name() MUST only be called before dev_add() and the pci_dev passed to ipu_pci_probe() has been added long before ipu_pci_probe() runs, so it must not rename it. Renaming it is confusing udevd which now all of a sudden sees a device it already knows about change name. This is causing udev rules to not work properly with the ipu6-driver. Drop the clearly wrong dev_set_name() call. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
jwrdegoede
force-pushed
the
ipu6-remove-dev_set_name
branch
from
February 13, 2023 14:30
897a15d to
2d1b1ad
Compare
Contributor
Author
Done, good catch. Note this changes the debugfs dir-name from |
Contributor
After we removed the set_dev_name, debugfs dir is the only affected part. We finally decided to change that to IPU_NAME ("intel-ipu6"), which is clearer, instead of "intel-ipu". So now this patch is exactly we need. Thanks @jwrdegoede ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Devices must not be renamed after they have already been added to the device hierarchy.
dev_set_name() MUST only be called before dev_add() and the pci_dev passed to ipu_pci_probe() has been added long before ipu_pci_probe() runs, so it must not rename it.
Renaming it is confusing udevd which now all of a sudden sees a device it already knows about change name.
This is causing udev rules to not work properly with the ipu6-driver. Drop the clearly wrong dev_set_name() call.