From 2a984af32b63a74581c41c24611789eae90f154b Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 12 Jul 2022 19:54:03 +0800 Subject: [PATCH] Revert "usb: typec: fusb302: fix i_comp and i_bc_lvl interrupt" This reverts commit 94dab507e05695a703ea9540f34f537dc720f721. Replaced by commit 00f1038c72f8 ("usb: typec: fusb302: Fix masking of comparator and bc_lvl interrupts") Signed-off-by: Tao Huang --- drivers/usb/typec/tcpm/fusb302.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c index bd21e2288a73..3a9fc8296252 100644 --- a/drivers/usb/typec/tcpm/fusb302.c +++ b/drivers/usb/typec/tcpm/fusb302.c @@ -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; }