st33zp24.c (82ffd0454bd9bd57780966d47bfd56d579dd4fb3) | st33zp24.c (f5595f5baa30e009bf54d0d7653a9a0cc465be60) |
---|---|
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. --- 422 unchanged lines hidden (view full) --- 431 432 ret = wait_for_stat(chip, TPM_STS_DATA_AVAIL | TPM_STS_VALID, 433 tpm_calc_ordinal_duration(chip, ordinal), 434 &tpm_dev->read_queue, false); 435 if (ret < 0) 436 goto out_err; 437 } 438 | 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. --- 422 unchanged lines hidden (view full) --- 431 432 ret = wait_for_stat(chip, TPM_STS_DATA_AVAIL | TPM_STS_VALID, 433 tpm_calc_ordinal_duration(chip, ordinal), 434 &tpm_dev->read_queue, false); 435 if (ret < 0) 436 goto out_err; 437 } 438 |
439 return len; | 439 return 0; |
440out_err: 441 st33zp24_cancel(chip); 442 release_locality(chip); 443 return ret; 444} 445 446/* 447 * st33zp24_recv received TPM response through TPM phy. --- 215 unchanged lines hidden --- | 440out_err: 441 st33zp24_cancel(chip); 442 release_locality(chip); 443 return ret; 444} 445 446/* 447 * st33zp24_recv received TPM response through TPM phy. --- 215 unchanged lines hidden --- |