mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
power: smb1398: Do not register the die-temperature-shutdown interrupt
Die-temperature-shutdown IRQ may misfire during toggling of SMB_EN input. Disable it for now. While at it, also fix die temp debug msg. Change-Id: I03ed179d19e0828c13eeb3445a1ecba2304e1a7c Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
This commit is contained in:
parent
7eb847f49f
commit
fb47465716
@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2019 The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
@ -493,7 +493,7 @@ static int smb1398_get_die_temp(struct smb1398_chip *chip, int *temp)
|
||||
dev_err(chip->dev, "Couldn't read die_temp_chan, rc=%d\n", rc);
|
||||
} else {
|
||||
*temp = die_temp_deciC / 100;
|
||||
dev_dbg(chip->dev, "Couldn't get die temp %d\n", *temp);
|
||||
dev_dbg(chip->dev, "die temp %d\n", *temp);
|
||||
}
|
||||
|
||||
return rc;
|
||||
@ -1436,6 +1436,13 @@ static int smb1398_request_interrupt(struct smb1398_chip *chip,
|
||||
if (!smb_irqs[irq_index].handler)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* Do not register temp-shdwn interrupt as it may misfire on toggling
|
||||
* the SMB_EN input.
|
||||
*/
|
||||
if (irq_index == TEMP_SHDWN_IRQ)
|
||||
return 0;
|
||||
|
||||
rc = devm_request_threaded_irq(chip->dev, irq, NULL,
|
||||
smb_irqs[irq_index].handler,
|
||||
IRQF_ONESHOT, irq_name, chip);
|
||||
|
Loading…
x
Reference in New Issue
Block a user