Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1250112
| From | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 01/10] tpm, tpm_crb: fix unaligned read of the command buffer address |
| Date | 2015-10-18 13:20 +0200 |
| Message-ID | <qkUal-3yU-9@gated-at.bofh.it> (permalink) |
| References | <qkieK-6nN-5@gated-at.bofh.it> <qkieK-6nN-11@gated-at.bofh.it> <qkMmw-i6-67@gated-at.bofh.it> |
| Organization | Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo |
On Sun, Oct 18, 2015 at 05:02:55AM +0200, Peter Hüwe wrote: > Am Freitag, 16. Oktober 2015, 20:40:20 schrieb Jarkko Sakkinen: > > + pa = ((u64) le32_to_cpu(ioread32(&priv->cca->cmd_pa_high)) << 32) + > > + (u64) le32_to_cpu(ioread32(&priv->cca->cmd_pa_low)); > > The canonical form would be > > + pa = ((u64) le32_to_cpu(ioread32(&priv->cca->cmd_pa_high)) << 32) | > > + (u64) le32_to_cpu(ioread32(&priv->cca->cmd_pa_low)); > ? > Or am I missing something? > Shall I fix-up? Please do. Current works but definitely your form is correct. > Thanks, > Peter /Jarkko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 01/10] tpm, tpm_crb: fix unaligned read of the command buffer address Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-10-16 20:50 +0200
Re: [PATCH 01/10] tpm, tpm_crb: fix unaligned read of the command buffer address Peter Hüwe <PeterHuewe@gmx.de> - 2015-10-18 05:00 +0200
Re: [PATCH 01/10] tpm, tpm_crb: fix unaligned read of the command buffer address Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-10-18 13:20 +0200
csiph-web