alistair23-linux/drivers/spmi
Stephen Boyd d5144796db spmi: pmic-arb: Don't byte swap when reading/writing FIFO
We don't want to swap bytes that we're reading and writing to the
FIFOs when we're running on a big-endian CPU. Doing so causes
problems like where the qcom-spmi-iadc driver can't detect the
type of device because the bytes are all mixed up. Use the raw IO
accessors for these API instead, and collapse pmic_arb_base_read()
into the byte reading API so that we aren't tempted to read non-FIFO
data like commands with that function.

Cc: Andy Gross <agross@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-04 13:03:15 +01:00
..
Kconfig spmi: Select IRQ_DOMAIN instead of depend on it 2015-08-05 12:27:09 -07:00
Makefile
spmi-pmic-arb.c spmi: pmic-arb: Don't byte swap when reading/writing FIFO 2015-10-04 13:03:15 +01:00
spmi.c spmi: Auto-populate driver.owner in spmi_driver_register() 2015-09-20 19:32:02 -07:00