st33zp24.c (d856c00f7d1690b976b4c048012a5f2b5a22428d) st33zp24.c (d4a317563207163ddcf677e5965ffc56ef073514)
1/*
2 * STMicroelectronics TPM Linux driver for TPM ST33ZP24
3 * Copyright (C) 2009 - 2016 STMicroelectronics
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 635 unchanged lines hidden (view full) ---

644 if (gpio_is_valid(tpm_dev->io_lpcpd)) {
645 gpio_set_value(tpm_dev->io_lpcpd, 1);
646 ret = wait_for_stat(chip,
647 TPM_STS_VALID, chip->timeout_b,
648 &tpm_dev->read_queue, false);
649 } else {
650 ret = tpm_pm_resume(dev);
651 if (!ret)
1/*
2 * STMicroelectronics TPM Linux driver for TPM ST33ZP24
3 * Copyright (C) 2009 - 2016 STMicroelectronics
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 635 unchanged lines hidden (view full) ---

644 if (gpio_is_valid(tpm_dev->io_lpcpd)) {
645 gpio_set_value(tpm_dev->io_lpcpd, 1);
646 ret = wait_for_stat(chip,
647 TPM_STS_VALID, chip->timeout_b,
648 &tpm_dev->read_queue, false);
649 } else {
650 ret = tpm_pm_resume(dev);
651 if (!ret)
652 tpm_do_selftest(chip);
652 tpm1_do_selftest(chip);
653 }
654 return ret;
655} /* st33zp24_pm_resume() */
656EXPORT_SYMBOL(st33zp24_pm_resume);
657#endif
658
659MODULE_AUTHOR("TPM support (TPMsupport@list.st.com)");
660MODULE_DESCRIPTION("ST33ZP24 TPM 1.2 driver");
661MODULE_VERSION("1.3.0");
662MODULE_LICENSE("GPL");
653 }
654 return ret;
655} /* st33zp24_pm_resume() */
656EXPORT_SYMBOL(st33zp24_pm_resume);
657#endif
658
659MODULE_AUTHOR("TPM support (TPMsupport@list.st.com)");
660MODULE_DESCRIPTION("ST33ZP24 TPM 1.2 driver");
661MODULE_VERSION("1.3.0");
662MODULE_LICENSE("GPL");