diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2015-11-04 13:24:09 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-03 15:07:17 -0800 |
commit | e3d4bcc39fcdd54d44afd45f00b9b840961430be (patch) | |
tree | 7619c108d56ea19784be74e5c172892eb2f87ac9 /drivers/clk | |
parent | a0b1c2d0f53c8368eef4018ed7ce15b6c015aa77 (diff) | |
download | linux-stable-e3d4bcc39fcdd54d44afd45f00b9b840961430be.tar.gz linux-stable-e3d4bcc39fcdd54d44afd45f00b9b840961430be.tar.bz2 linux-stable-e3d4bcc39fcdd54d44afd45f00b9b840961430be.zip |
cxl: use correct operator when writing pcie config space values
commit 48f0f6b717e314a30be121b67e1d044f6d311d66 upstream.
When writing a value to config space, cxl_pcie_write_config() calls
cxl_pcie_config_info() to obtain a mask and shift value, shifts the new
value accordingly, then uses the mask to combine the shifted value with the
existing value at the address as part of a read-modify-write pattern.
Currently, we use a logical OR operator rather than a bitwise OR operator,
which means any use of this function results in an incorrect value being
written. Replace the logical OR operator with a bitwise OR operator so the
value is written correctly.
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API")
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions