spi: fspi: Logical or used instead of logical and
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 12 Aug 2025 16:42:59 +0000 (17:42 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 16:33:00 +0000 (10:33 -0600)
commit1e2de3ce615e5cd2bd89d6bd601ed3709059318b
treee94b52d02382d6d4ac84d141ae03c1526b5be8da
parent9a6411daed49300a4182a0494d5a5a3b9f446429
spi: fspi: Logical or used instead of logical and

In erratum_err050568 the test for apllicability uses logical or to check
multiple chip IDs but this means the test will always evaluate to true
as at least 1 term will always be true. Logical and should have been
used so that the expression evaluates to true if all terms are true
which would mean that no chip ID of interest was in use.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/spi/nxp_fspi.c