spmi-pmic-arb: change mode callback/ops for v3
The v3 arbiter removes the security checks and moves them to SMMU drivers outside the scope of this driver. So reset the mode call back for v3 similar to v1. Change-Id: I043178382cd90515063d09f526bd3e94f8ed5fc3 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
parent
400520a6e2
commit
b5538f417b
1 changed files with 3 additions and 3 deletions
|
@ -783,7 +783,7 @@ pmic_arb_ppid_to_apid_v1(struct spmi_pmic_arb *pa, u8 sid, u16 addr, u8 *apid)
|
|||
}
|
||||
|
||||
static int
|
||||
pmic_arb_mode_v1(struct spmi_pmic_arb *pa, u8 sid, u16 addr, mode_t *mode)
|
||||
pmic_arb_mode_v1_v3(struct spmi_pmic_arb *pa, u8 sid, u16 addr, mode_t *mode)
|
||||
{
|
||||
*mode = S_IRUSR | S_IWUSR;
|
||||
return 0;
|
||||
|
@ -940,7 +940,7 @@ static u32 pmic_arb_irq_clear_v2(u8 n)
|
|||
static const struct pmic_arb_ver_ops pmic_arb_v1 = {
|
||||
.ver_str = "v1",
|
||||
.ppid_to_apid = pmic_arb_ppid_to_apid_v1,
|
||||
.mode = pmic_arb_mode_v1,
|
||||
.mode = pmic_arb_mode_v1_v3,
|
||||
.non_data_cmd = pmic_arb_non_data_cmd_v1,
|
||||
.offset = pmic_arb_offset_v1,
|
||||
.fmt_cmd = pmic_arb_fmt_cmd_v1,
|
||||
|
@ -966,7 +966,7 @@ static const struct pmic_arb_ver_ops pmic_arb_v2 = {
|
|||
static const struct pmic_arb_ver_ops pmic_arb_v3 = {
|
||||
.ver_str = "v3",
|
||||
.ppid_to_apid = pmic_arb_ppid_to_apid_v2,
|
||||
.mode = pmic_arb_mode_v2,
|
||||
.mode = pmic_arb_mode_v1_v3,
|
||||
.non_data_cmd = pmic_arb_non_data_cmd_v2,
|
||||
.offset = pmic_arb_offset_v2,
|
||||
.fmt_cmd = pmic_arb_fmt_cmd_v2,
|
||||
|
|
Loading…
Add table
Reference in a new issue