Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'thunderbolt-for-v7.0-rc5' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt into usb-linus

Mika writes:

thunderbolt: Fix for v7.0-rc5

This includes a single fix that reverses the check for return value of
device_property_read_u8() during the driver load.

This has been in linux-next with no reported issues.

* tag 'thunderbolt-for-v7.0-rc5' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt:
thunderbolt: Fix property read in nhi_wake_supported()

+1 -1
+1 -1
drivers/thunderbolt/nhi.c
··· 1020 1020 * If power rails are sustainable for wakeup from S4 this 1021 1021 * property is set by the BIOS. 1022 1022 */ 1023 - if (device_property_read_u8(&pdev->dev, "WAKE_SUPPORTED", &val)) 1023 + if (!device_property_read_u8(&pdev->dev, "WAKE_SUPPORTED", &val)) 1024 1024 return !!val; 1025 1025 1026 1026 return true;