Files
Desnes Nunes bf3a9924f1 thunderbolt: Fix property read in nhi_wake_supported()
JIRA: https://issues.redhat.com/browse/RHEL-147800

commit 73a505dc48144ec72e25874e2b2a72487b02d3bc
Author: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Date: Mon, 9 Mar 2026 10:39:49 +0100

  device_property_read_foo() returns 0 on success and only then modifies
  'val'. Currently, val is left uninitialized if the aforementioned
  function returns non-zero, making nhi_wake_supported() return true
  almost always (random != 0) if the property is not present in device
  firmware.

  Invert the check to make it make sense.

  Fixes: 3cdb9446a1 ("thunderbolt: Add support for Intel Ice Lake")
  Cc: stable@vger.kernel.org
  Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
  Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>

Signed-off-by: Desnes Nunes <desnesn@redhat.com>
2026-07-23 15:27:38 -03:00
..
2026-04-14 11:39:24 -03:00
2026-04-14 11:39:24 -03:00
2026-04-14 11:39:24 -03:00
2026-04-14 11:39:24 -03:00
2026-04-14 11:39:24 -03:00
2026-04-14 11:39:24 -03:00
2026-04-14 11:39:24 -03:00
2026-04-14 11:39:25 -03:00
2026-04-14 11:39:24 -03:00
2026-04-14 11:39:25 -03:00
2026-04-14 11:39:25 -03:00
2026-04-14 11:39:25 -03:00
2026-04-14 11:39:25 -03:00
2026-04-14 11:39:25 -03:00