usb: ulpi: Incorrect operator used
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 30 Sep 2025 16:06:44 +0000 (17:06 +0100)
committerMarek Vasut <marek.vasut+usb@mailbox.org>
Tue, 28 Oct 2025 15:33:15 +0000 (16:33 +0100)
commitdd01b0541be38894c05f0dad2dad135ef1a9da6b
tree8572700b9ea2251624bf7b6deea6d00e4cbc28cb
parent08f4c52c97ab3db174ce292eb86309ee29be5f07
usb: ulpi: Incorrect operator used

Combining two bits into a mask to be used so that the same write code
can be used to set or reset bits in a register clearly needs to use the
binary 'or' operator, not the binary 'and'. Fix it.

This issue was found by Smatch.

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