All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
@ 2022-05-17 21:46 bugzilla-daemon
  2022-07-05 17:19 ` [Bug 215993] " bugzilla-daemon
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-05-17 21:46 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

            Bug ID: 215993
           Summary: Serial Bus Multi Instantiate driver fails to allocate
                    SPI device CSC3551:00
           Product: Drivers
           Version: 2.5
    Kernel Version: 5.18-rc7
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Platform_x86
          Assignee: drivers_platform_x86@kernel-bugs.osdl.org
          Reporter: matt.perlick@gmail.com
        Regression: No

Created attachment 300984
  --> https://bugzilla.kernel.org/attachment.cgi?id=300984&action=edit
Boot Dmesg

Distribution: Manjaro
CPU: Intel 12th gen i5-1240P
Kernel version: 5.18-rc7
Problem Description:

TLDR: I think ACPI device HID=CSC3551 should be supported with a new driver but
dmesg shows:
Serial bus multi instantiate pseudo device driver CSC3551:00: error -ENODEV:
failed to allocate SPI device CSC3551:00 from ACPI: -19
Is this a bug in the module?


I've been working on getting internal speakers functional on Asus Zenbook
UX3402ZA. After ruling out ALSA issues and ALC294 codec configuration, I found
out this machine has two amp devices (Cirrus Logic CS35l41?) connected over
SPI. These devices are declared under a single ACPI node with HID=CSC3551.

I found a patch series for supporting this particular ACPI node in the LKML (
https://lore.kernel.org/lkml/20220121143254.6432-7-sbinding@opensource.cirrus.com/T/
). It requires a special driver because declaring multiple SPI devices in one
ACPI node was not previously supported. Looking at the Linux source, I believe
this patch has been included in all the 5.18 release candidates. I've compiled
rc7 and made sure to set the .config file to include the new module
CONFIG_SERIAL_MULTI_INSTANTIATE=y. 

With this newly compiled kernel, I see this error in dmesg:
Serial bus multi instantiate pseudo device driver CSC3551:00: error -ENODEV:
failed to allocate SPI device CSC3551:00 from ACPI: -19

Could this be a bug in the module? I'm not sure how to proceed from here. Any
advice is appreciated.

dmesg: 
Included as attachment

ACPI dsdt.dsl Node:
    Scope (_SB.PC00.SPI0)
    {
        Device (SPK1)
        {
            Name (_HID, "CSC3551")  // _HID: Hardware ID
            Name (_SUB, "10431E02")  // _SUB: Subsystem ID
            Name (_UID, One)  // _UID: Unique ID
            Method (_CRS, 0, NotSerialized)  // _CRS: Current Resource Settings
            {
                Name (SBUF, ResourceTemplate ()
                {
                    SpiSerialBusV2 (0x0000, PolarityLow, FourWireMode, 0x08,
                        ControllerInitiated, 0x003D0900, ClockPolarityLow,
                        ClockPhaseFirst, "\\_SB.PC00.SPI0",
                        0x00, ResourceConsumer, , Exclusive,
                        )
                    SpiSerialBusV2 (0x0001, PolarityLow, FourWireMode, 0x08,
                        ControllerInitiated, 0x003D0900, ClockPolarityLow,
                        ClockPhaseFirst, "\\_SB.PC00.SPI0",
                        0x00, ResourceConsumer, , Exclusive,
                        )
                    GpioIo (Exclusive, PullUp, 0x0000, 0x0000,
IoRestrictionOutputOnly,
                        "\\_SB.GPI0", 0x00, ResourceConsumer, ,
                        )
                        {   // Pin list
                            0x0156
                        }
                    GpioIo (Exclusive, PullDown, 0x0000, 0x0000,
IoRestrictionOutputOnly,
                        "\\_SB.GPI0", 0x00, ResourceConsumer, ,
                        )
                        {   // Pin list
                            0x0065
                        }
                    GpioIo (Exclusive, PullDown, 0x0000, 0x0000,
IoRestrictionInputOnly,
                        "\\_SB.GPI0", 0x00, ResourceConsumer, ,
                        )
                        {   // Pin list
                            0x0165
                        }
                    GpioIo (Shared, PullUp, 0x0064, 0x0000,
IoRestrictionInputOnly,
                        "\\_SB.GPI0", 0x00, ResourceConsumer, ,
                        )
                        {   // Pin list
                            0x0064
                        }
                    GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x0064,
                        "\\_SB.GPI0", 0x00, ResourceConsumer, ,
                        )
                        {   // Pin list
                            0x0064
                        }
                })
                Return (SBUF) /* \_SB_.PC00.SPI0.SPK1._CRS.SBUF */
            }

            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                If ((AMPP == One))
                {
                    Return (0x0F)
                }

                Return (Zero)
            }

            Method (_DIS, 0, NotSerialized)  // _DIS: Disable Device
            {
            }
        }
    }

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
@ 2022-07-05 17:19 ` bugzilla-daemon
  2022-07-05 17:37 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-05 17:19 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

Supasak Sutha (blur.3rd@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blur.3rd@gmail.com

--- Comment #1 from Supasak Sutha (blur.3rd@gmail.com) ---
*** Bug 216155 has been marked as a duplicate of this bug. ***

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
  2022-07-05 17:19 ` [Bug 215993] " bugzilla-daemon
@ 2022-07-05 17:37 ` bugzilla-daemon
  2022-07-05 18:12 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-05 17:37 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

Andy Shevchenko (andy.shevchenko@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andy.shevchenko@gmail.com

--- Comment #2 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
Guys, would you be able to test the latest vanilla (v5.19-rc5)? Just to be sure
that the bug can be reproduced.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
  2022-07-05 17:19 ` [Bug 215993] " bugzilla-daemon
  2022-07-05 17:37 ` bugzilla-daemon
@ 2022-07-05 18:12 ` bugzilla-daemon
  2022-07-07  5:39 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-05 18:12 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #3 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
For the debugging, can you add these to lines

#undef ENODEV
#define ENODEV __LINE__

to drivers/spi/spi.c _after_ the inclusion block (all of those #include ...)
and compile and try? It will set an error code to the line number, so we will
see which one exactly failed.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2022-07-05 18:12 ` bugzilla-daemon
@ 2022-07-07  5:39 ` bugzilla-daemon
  2022-07-08  7:40 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-07  5:39 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #4 from Supasak Sutha (blur.3rd@gmail.com) ---

Hi @Andy Shevchenko,

I cannot boot with `v5.19-rc5`. Got black screen even with debug and without
"rhgb quiet".

But I try with `v5.19-rc4` and got this.

[   15.224358] Serial bus multi instantiate pseudo device driver CSC3551:00:
error -2488: failed to allocate SPI device CSC3551:00 from ACPI: -2488
[   15.228652] Serial bus multi instantiate pseudo device driver: probe of
CSC3551:00 failed with error -2488

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2022-07-07  5:39 ` bugzilla-daemon
@ 2022-07-08  7:40 ` bugzilla-daemon
  2022-07-08 10:59 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08  7:40 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #5 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
Okay, now you need in addition to the above replace -ENODEV by ret in line
#2488 and try again. (I will send a patch upstream for that, but it won’t fix
the issue, just helps us to debug)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2022-07-08  7:40 ` bugzilla-daemon
@ 2022-07-08 10:59 ` bugzilla-daemon
  2022-07-08 17:10 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08 10:59 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #6 from Supasak Sutha (blur.3rd@gmail.com) ---
Now it's like this

[   21.037999] Serial bus multi instantiate pseudo device driver CSC3551:00:
error -2404: failed to allocate SPI device CSC3551:00 from ACPI: -2404
[   21.038102] Serial bus multi instantiate pseudo device driver: probe of
CSC3551:00 failed with error -2404

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2022-07-08 10:59 ` bugzilla-daemon
@ 2022-07-08 17:10 ` bugzilla-daemon
  2022-07-08 17:58 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08 17:10 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #7 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
So, this line fails:
  https://elixir.bootlin.com/linux/v5.19-rc4/source/drivers/spi/spi.c#L2399
Can you double check that is true in your case?

If so, it mean that by some reason we can't find registered SPI controller.

You may add a debug print before this
https://elixir.bootlin.com/linux/v5.19-rc4/source/drivers/spi/spi.c#L4224

  dev_info(dev, "%s <--> %s\n", acpi_dev_name(ACPI_COMPANION(dev->parent)),
acpi_dev_name(data));

Meanwhile can you attach file from `acpidump -o ux3402za.dat` or if there is
known publicly available dump (GitHub?) share that link?

P.S. Regarding booting v5.19-rc5, possible this thread will shed a light
https://lore.kernel.org/all/272584304.305738.1657029005216@office.mailbox.org/

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2022-07-08 17:10 ` bugzilla-daemon
@ 2022-07-08 17:58 ` bugzilla-daemon
  2022-07-08 20:05 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08 17:58 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #8 from Supasak Sutha (blur.3rd@gmail.com) ---
Created attachment 301369
  --> https://bugzilla.kernel.org/attachment.cgi?id=301369&action=edit
acpidump

My `acpidump -o ux3402.dat`

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2022-07-08 17:58 ` bugzilla-daemon
@ 2022-07-08 20:05 ` bugzilla-daemon
  2022-07-08 20:52 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08 20:05 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #9 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
Thanks, two more small files would be nice to have, i.e. output of:
1) lspci -nk -vv
2) grep -H 15 /sys/bus/acpi/devices/*/status

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (8 preceding siblings ...)
  2022-07-08 20:05 ` bugzilla-daemon
@ 2022-07-08 20:52 ` bugzilla-daemon
  2022-07-08 20:53 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08 20:52 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #10 from Supasak Sutha (blur.3rd@gmail.com) ---
Created attachment 301371
  --> https://bugzilla.kernel.org/attachment.cgi?id=301371&action=edit
lspci -nk -vv

lspci -nk -vv

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (9 preceding siblings ...)
  2022-07-08 20:52 ` bugzilla-daemon
@ 2022-07-08 20:53 ` bugzilla-daemon
  2022-07-08 21:58 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08 20:53 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #11 from Supasak Sutha (blur.3rd@gmail.com) ---
Created attachment 301372
  --> https://bugzilla.kernel.org/attachment.cgi?id=301372&action=edit
grep -H 15 /sys/bus/acpi/devices/*/status

grep -H 15 /sys/bus/acpi/devices/*/status

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (10 preceding siblings ...)
  2022-07-08 20:53 ` bugzilla-daemon
@ 2022-07-08 21:58 ` bugzilla-daemon
  2022-07-08 23:19 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08 21:58 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #12 from Supasak Sutha (blur.3rd@gmail.com) ---
Couldn't get this line to work. 

dev_info(dev, "%s <--> %s\n", acpi_dev_name(ACPI_COMPANION(dev->parent)),
acpi_dev_name(data));

I don't see any output of this line, tried with dev_err and dev_warn also
nothing. 
May be it's not reach that function. or I miss something? 

P.S. Thanks for v5.19-rc5 link, I will have a look.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (11 preceding siblings ...)
  2022-07-08 21:58 ` bugzilla-daemon
@ 2022-07-08 23:19 ` bugzilla-daemon
  2022-07-09 16:44 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-08 23:19 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #13 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
(In reply to Supasak Sutha from comment #12)
> May be it's not reach that function. or I miss something? 
It maybe a clue actually. Can you replace this -ENODEV (should be failing line
in your case, 2404)
https://elixir.bootlin.com/linux/v5.19-rc4/source/drivers/spi/spi.c#L2401 with
-EPROBE_DEFER and tell me if anything has been changed?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (12 preceding siblings ...)
  2022-07-08 23:19 ` bugzilla-daemon
@ 2022-07-09 16:44 ` bugzilla-daemon
  2022-07-09 16:45 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-09 16:44 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #14 from Supasak Sutha (blur.3rd@gmail.com) ---
(In reply to Andy Shevchenko from comment #13)
> (In reply to Supasak Sutha from comment #12)
> > May be it's not reach that function. or I miss something? 
> It maybe a clue actually. Can you replace this -ENODEV (should be failing
> line in your case, 2404)
> https://elixir.bootlin.com/linux/v5.19-rc4/source/drivers/spi/spi.c#L2401
> with -EPROBE_DEFER and tell me if anything has been changed?

[   16.010854] i2c i2c-16: 8/8 memory slots populated (from DMI)
[   16.010860] i2c i2c-16: Systems with more than 4 memory slots not supported
yet, not instantiating SPD
[   16.012665] spi_master spi0: device:79 <--> device:79
[   16.013204] cs35l41-hda spi0-CSC3551:00-cs35l41-hda.0: error -EINVAL:
Platform not supported -22
[   16.013209] cs35l41-hda: probe of spi0-CSC3551:00-cs35l41-hda.0 failed with
error -22
[   16.013250] spi_master spi0: device:79 <--> device:79
[   16.013614] cs35l41-hda spi0-CSC3551:00-cs35l41-hda.1: error -EINVAL:
Platform not supported -22
[   16.013617] cs35l41-hda: probe of spi0-CSC3551:00-cs35l41-hda.1 failed with
error -22
[   16.013639] Serial bus multi instantiate pseudo device driver CSC3551:00:
Instantiated 2 SPI devices.
[   16.030810] loop: module loaded
[   16.031498] loop0: detected capacity change from 0 to 228816


I also attached full dmesg.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (13 preceding siblings ...)
  2022-07-09 16:44 ` bugzilla-daemon
@ 2022-07-09 16:45 ` bugzilla-daemon
  2022-07-09 18:01 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-09 16:45 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #15 from Supasak Sutha (blur.3rd@gmail.com) ---
Created attachment 301381
  --> https://bugzilla.kernel.org/attachment.cgi?id=301381&action=edit
dmesg after apply andy's comment#13

dmesg after apply andy's comment#13.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (14 preceding siblings ...)
  2022-07-09 16:45 ` bugzilla-daemon
@ 2022-07-09 18:01 ` bugzilla-daemon
  2022-07-11 13:51 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-09 18:01 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #16 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
(In reply to Supasak Sutha from comment #15)
> Created attachment 301381 [details]
> dmesg after apply andy's comment#13

Thanks! I have three news, one bad and two good:
1) (good) I'm quite sure the above link will fix your boot issues on v5.19-rc5;
2) (good) The last change with error code fixes serial multi-instantiate driver
to probe the codecs, but...
3) (bad) something else is still wrong (or missing).

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (15 preceding siblings ...)
  2022-07-09 18:01 ` bugzilla-daemon
@ 2022-07-11 13:51 ` bugzilla-daemon
  2022-07-11 13:55 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-11 13:51 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #17 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
(In reply to Supasak Sutha from comment #15)
> dmesg after apply andy's comment#13

Okay, can you comment out these two lines:
https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.c#L423

(Note it should an incremental change to all others, as you have done that way
already)

P.S. The SPI fix is on its way to Linus tree (accepted by SPI maintainer):
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/?h=for-5.20&id=cdb0cc9379f1b4fa5ea3e0492bacf8008f3f4e5a

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (16 preceding siblings ...)
  2022-07-11 13:51 ` bugzilla-daemon
@ 2022-07-11 13:55 ` bugzilla-daemon
  2022-07-11 14:10 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-11 13:55 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #18 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
(In reply to Andy Shevchenko from comment #17)

> P.S. The SPI fix is on its way to Linus tree (accepted by SPI maintainer):
> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/
> ?h=for-5.20&id=cdb0cc9379f1b4fa5ea3e0492bacf8008f3f4e5a

Oops, wrong commit, here is the correct one:

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/?h=for-5.20&id=9c22ec4ac27bcc5a54dd406da168f403327a5b55

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (17 preceding siblings ...)
  2022-07-11 13:55 ` bugzilla-daemon
@ 2022-07-11 14:10 ` bugzilla-daemon
  2022-07-11 15:25 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-11 14:10 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #19 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
(In reply to Andy Shevchenko from comment #17)
> (In reply to Supasak Sutha from comment #15)

> Okay, can you comment out these two lines:
> https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.
> c#L423
> 
> (Note it should an incremental change to all others, as you have done that
> way already)

One more thing, you may need to replace

  cs35l41->index = id == 0x40 ? 0 : 1;

by

  cs35l41->index = id;

https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.c#L462

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (18 preceding siblings ...)
  2022-07-11 14:10 ` bugzilla-daemon
@ 2022-07-11 15:25 ` bugzilla-daemon
  2022-07-11 15:41 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-11 15:25 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #20 from Supasak Sutha (blur.3rd@gmail.com) ---
Actually I have been try this patch 

https://lore.kernel.org/all/20220703053225.2203-1-xw897002528@gmail.com/

and get pass this line 

https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.c#L423

but still got error (below).

So, I revert that patch and try yours (remove those 2 lines and replace
cs35l41->index = id).

And still got same result which is:

[15.94] cs35l41-hda spi0-CSC3551:00-cs35l41-hda.1: Failed waiting for
OTP_BOOT_DONE: -110.

from 

https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.c#L488


**
I also inspect the out put of this line.

https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.c#L320

and got -22, but seem the section "no_acpi_dsd" said it's normal.

**
And I also tried this quirk and not working.

SND_PCI_QUIRK(0x1043, 0x1e02, "Asus Zenbook UX3402ZA",
ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (19 preceding siblings ...)
  2022-07-11 15:25 ` bugzilla-daemon
@ 2022-07-11 15:41 ` bugzilla-daemon
  2022-07-11 18:29 ` bugzilla-daemon
  2022-07-11 19:55 ` bugzilla-daemon
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-11 15:41 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #21 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
(In reply to Supasak Sutha from comment #20)
> Actually I have been try this patch 
> 
> https://lore.kernel.org/all/20220703053225.2203-1-xw897002528@gmail.com/
> 
> and get pass this line 
> 
> https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.
> c#L423
> 
> but still got error (below).
> 
> So, I revert that patch

I believe that patch is legit and it's okay to have it.

> and try yours (remove those 2 lines and replace
> cs35l41->index = id).

But you would still need the above change, because for SPI it's a chip select 0
or 1, and not an address (which is 0x40 in i2c case). 

> And still got same result which is:
> 
> [15.94] cs35l41-hda spi0-CSC3551:00-cs35l41-hda.1: Failed waiting for
> OTP_BOOT_DONE: -110.
> 
> from 
> 
> https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.
> c#L488

A-ha, this may give another clue. The GPIOs are addressed by index from _CRS
and it may be that the 0 is wrong (and actually it might be two different GPIOs
for reset of each of the codecs).

https://elixir.bootlin.com/linux/v5.19-rc4/source/sound/pci/hda/cs35l41_hda.c#L430

In this line, try to replace 0 by a) id or b) id + 1 and see if it helps
anyhow.

Ideally we need a PCB schematics of that laptop. With it at hand it will be 15
minutes work to understand GPIO mappings. Any possibility to get schematics?

> **
> And I also tried this quirk and not working.

That quirk is for a LED, I don't think it's anyhow critical right now.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (20 preceding siblings ...)
  2022-07-11 15:41 ` bugzilla-daemon
@ 2022-07-11 18:29 ` bugzilla-daemon
  2022-07-11 19:55 ` bugzilla-daemon
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-11 18:29 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

--- Comment #22 from Supasak Sutha (blur.3rd@gmail.com) ---

> 
> In this line, try to replace 0 by a) id or b) id + 1 and see if it helps
> anyhow.

No luck, same result.

> Ideally we need a PCB schematics of that laptop. With it at hand it will be
> 15 minutes work to understand GPIO mappings. Any possibility to get
> schematics?
> 

Where can I find it? Is Asus normally share this schematics?
I can open the bottom case and take some pictures if it's help.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Bug 215993] Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00
  2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
                   ` (21 preceding siblings ...)
  2022-07-11 18:29 ` bugzilla-daemon
@ 2022-07-11 19:55 ` bugzilla-daemon
  22 siblings, 0 replies; 24+ messages in thread
From: bugzilla-daemon @ 2022-07-11 19:55 UTC (permalink / raw)
  To: platform-driver-x86

https://bugzilla.kernel.org/show_bug.cgi?id=215993

Andy Shevchenko (andy.shevchenko@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Platform_x86                |Sound(ALSA)
           Assignee|drivers_platform_x86@kernel |perex@perex.cz
                   |-bugs.osdl.org              |

--- Comment #23 from Andy Shevchenko (andy.shevchenko@gmail.com) ---
I see. So it seems the best approach is to wait what Cirrus will do.
I reassign this to the ALSA, because SPI issue has been fixed.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2022-07-11 19:55 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-17 21:46 [Bug 215993] New: Serial Bus Multi Instantiate driver fails to allocate SPI device CSC3551:00 bugzilla-daemon
2022-07-05 17:19 ` [Bug 215993] " bugzilla-daemon
2022-07-05 17:37 ` bugzilla-daemon
2022-07-05 18:12 ` bugzilla-daemon
2022-07-07  5:39 ` bugzilla-daemon
2022-07-08  7:40 ` bugzilla-daemon
2022-07-08 10:59 ` bugzilla-daemon
2022-07-08 17:10 ` bugzilla-daemon
2022-07-08 17:58 ` bugzilla-daemon
2022-07-08 20:05 ` bugzilla-daemon
2022-07-08 20:52 ` bugzilla-daemon
2022-07-08 20:53 ` bugzilla-daemon
2022-07-08 21:58 ` bugzilla-daemon
2022-07-08 23:19 ` bugzilla-daemon
2022-07-09 16:44 ` bugzilla-daemon
2022-07-09 16:45 ` bugzilla-daemon
2022-07-09 18:01 ` bugzilla-daemon
2022-07-11 13:51 ` bugzilla-daemon
2022-07-11 13:55 ` bugzilla-daemon
2022-07-11 14:10 ` bugzilla-daemon
2022-07-11 15:25 ` bugzilla-daemon
2022-07-11 15:41 ` bugzilla-daemon
2022-07-11 18:29 ` bugzilla-daemon
2022-07-11 19:55 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.