diff options
| author | Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> | 2026-05-15 14:52:02 +0300 |
|---|---|---|
| committer | Krzysztof Kozlowski <krzk@kernel.org> | 2026-05-24 22:05:15 +0300 |
| commit | 3fcf9f334d272989b57acc7b94d4eac717206118 (patch) | |
| tree | b7e902f6bbc825c859bb767f655e16ffccdc0b46 /include | |
| parent | a6954060adc9d956a99f909f46bf9fb0348c4fa2 (diff) | |
| download | linux-3fcf9f334d272989b57acc7b94d4eac717206118.tar.xz | |
memory: renesas-rpc-if: Fix duplicate device name on multi-instance platforms
On platforms with multiple xSPI instances, the driver fails to probe
additional instances due to duplicate sysfs entries:
[ 86.878242] sysfs: cannot create duplicate filename '/bus/platform/devices/rpc-if-spi'
This occurs because platform_device_alloc() uses pdev->id for the device
ID, which may be PLATFORM_DEVID_NONE (-1) for multiple instances, causing
all instances to attempt registration with the same name.
Fix this by using PLATFORM_DEVID_AUTO instead, which automatically assigns
unique IDs to each device instance, allowing multiple xSPI controllers to
coexist without naming conflicts.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://patch.msgid.link/20260515115202.1515577-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
