mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
Revert "usb: typec: fusb302: fix i_comp and i_bc_lvl interrupt"
This reverts commit94dab507e0. Replaced by commit00f1038c72("usb: typec: fusb302: Fix masking of comparator and bc_lvl interrupts") Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
parent
5e7f6915a1
commit
2a984af32b
|
|
@ -668,7 +668,7 @@ static int tcpm_set_cc(struct tcpc_dev *dev, enum typec_cc_status cc)
|
|||
ret = fusb302_i2c_mask_write(chip, FUSB_REG_MASK,
|
||||
FUSB_REG_MASK_BC_LVL |
|
||||
FUSB_REG_MASK_COMP_CHNG,
|
||||
FUSB_REG_MASK_BC_LVL);
|
||||
FUSB_REG_MASK_COMP_CHNG);
|
||||
if (ret < 0) {
|
||||
fusb302_log(chip, "cannot set SRC interrupt, ret=%d",
|
||||
ret);
|
||||
|
|
@ -680,9 +680,9 @@ static int tcpm_set_cc(struct tcpc_dev *dev, enum typec_cc_status cc)
|
|||
ret = fusb302_i2c_mask_write(chip, FUSB_REG_MASK,
|
||||
FUSB_REG_MASK_BC_LVL |
|
||||
FUSB_REG_MASK_COMP_CHNG,
|
||||
FUSB_REG_MASK_COMP_CHNG);
|
||||
FUSB_REG_MASK_BC_LVL);
|
||||
if (ret < 0) {
|
||||
fusb302_log(chip, "cannot set SNK interrupt, ret=%d",
|
||||
fusb302_log(chip, "cannot set SRC interrupt, ret=%d",
|
||||
ret);
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user