From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039AbcISXYR (ORCPT ); Mon, 19 Sep 2016 19:24:17 -0400 Received: from quartz.orcorp.ca ([184.70.90.242]:44537 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752829AbcISXYQ (ORCPT ); Mon, 19 Sep 2016 19:24:16 -0400 Date: Mon, 19 Sep 2016 17:24:06 -0600 From: Jason Gunthorpe To: Jarkko Sakkinen Cc: Peter Huewe , Ed Swierk , Marcel Selhorst , "moderated list:TPM DEVICE DRIVER" , open list Subject: Re: [PATCH 1/2] tpm: Clean up reading of timeout and duration capabilities Message-ID: <20160919232406.GE22760@obsidianresearch.com> References: <1474316530-17315-1-git-send-email-jarkko.sakkinen@linux.intel.com> <1474316530-17315-2-git-send-email-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1474316530-17315-2-git-send-email-jarkko.sakkinen@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.151 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 19, 2016 at 11:22:08PM +0300, Jarkko Sakkinen wrote: > From: Ed Swierk > > Call tpm_getcap() from tpm_get_timeouts() to eliminate redundant > code. Return all errors to the caller rather than swallowing them > (e.g. when tpm_transmit_cmd() returns nonzero). I didn't look at these closely, but I agree with the idea. Jason