On Thu, May 6, 2021 at 1:45 PM Xin Hao <bier@b-x3vxmd6m-2058.local> wrote: > From: Xin Hao <xhao@xxxxxxxxxxxxxxxxx> > > When i was testing the TPM2 device, I found that the driver > always failed to register which used SPI bus and GPIO as CS > signal, i found that the reason for the error was that CS could > not be set correctly, so there fixed it. > > Fixes: 766c6b63aa044e ("spi: fix client driver breakages when using > GPIO descriptors") > Signed-off-by: Xin Hao <xhao@xxxxxxxxxxxxxxxxx> (...) > /* polarity handled by gpiolib */ > gpiod_set_value_cansleep(spi->cs_gpiod, > - enable1); > + !enable); We have been over this code a lot of times, can you help us to investigate the root cause here and check how the interrupts are provided on this platform. TPM2 makes me think that this is an Intel platform and maybe ACPI of some kind so you need to run it by Andy, who is working on some related fixes. Yours, Linus Walleij