mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
Merge branch 'for-next-tpm' of https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
This commit is contained in:
@@ -163,8 +163,7 @@ config TCG_NSC
|
||||
|
||||
config TCG_ATMEL
|
||||
tristate "Atmel TPM Interface"
|
||||
depends on HAS_IOPORT_MAP
|
||||
depends on HAS_IOPORT
|
||||
depends on X86
|
||||
help
|
||||
If you have a TPM security chip from Atmel say Yes and it
|
||||
will be accessible from within Linux. To compile this driver
|
||||
|
||||
@@ -506,11 +506,8 @@ int st33zp24_probe(void *phy_id, const struct st33zp24_phy_ops *ops,
|
||||
ret = devm_request_irq(dev, irq, tpm_ioserirq_handler,
|
||||
IRQF_TRIGGER_HIGH, "TPM SERIRQ management",
|
||||
chip);
|
||||
if (ret < 0) {
|
||||
dev_err(&chip->dev, "TPM SERIRQ signals %d not available\n",
|
||||
irq);
|
||||
if (ret < 0)
|
||||
goto _tpm_clean_answer;
|
||||
}
|
||||
|
||||
intmask |= TPM_INTF_CMD_READY_INT
|
||||
| TPM_INTF_STS_VALID_INT
|
||||
|
||||
@@ -182,8 +182,10 @@ static int i2c_nuvoton_wait_for_stat(struct tpm_chip *chip, u8 mask, u8 value,
|
||||
timeout);
|
||||
if (rc > 0)
|
||||
return 0;
|
||||
/* At this point we know that the SINT pin is asserted, so we
|
||||
* do not need to do i2c_nuvoton_check_status */
|
||||
|
||||
disable_irq(priv->irq);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
} else {
|
||||
unsigned long ten_msec, stop;
|
||||
bool status_valid;
|
||||
@@ -574,8 +576,6 @@ static int i2c_nuvoton_probe(struct i2c_client *client)
|
||||
dev_name(&chip->dev),
|
||||
chip);
|
||||
if (rc) {
|
||||
dev_err(dev, "%s() Unable to request irq: %d for use\n",
|
||||
__func__, priv->irq);
|
||||
priv->irq = 0;
|
||||
} else {
|
||||
chip->flags |= TPM_CHIP_FLAG_IRQ;
|
||||
|
||||
@@ -751,10 +751,8 @@ static int tpm_cr50_i2c_probe(struct i2c_client *client)
|
||||
rc = devm_request_irq(dev, client->irq, tpm_cr50_i2c_int_handler,
|
||||
IRQF_TRIGGER_FALLING | IRQF_NO_AUTOEN,
|
||||
dev->driver->name, chip);
|
||||
if (rc < 0) {
|
||||
dev_err(dev, "Failed to probe IRQ %d\n", client->irq);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
}
|
||||
|
||||
priv->irq = client->irq;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user