Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp225187pxb; Mon, 13 Sep 2021 17:39:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9H9EYVDt1gDzPvWOSZem8agbAW0GAQ4AbVTeT+bi7Yx2snLyrXt88dmAevIkfudLUV2bv X-Received: by 2002:aa7:cf82:: with SMTP id z2mr16146894edx.254.1631579946311; Mon, 13 Sep 2021 17:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631579946; cv=none; d=google.com; s=arc-20160816; b=tK2fOlF82bUMK+qq05z3emQ+dupHR+Nt4CfhkmdgFacCQtE2PsnTNkh4DCWEDTyWAD 4STqMCCjf0G4NV5ni3LVQHyScJsR3mS3jGHvIYqvWFqO04Tm8CD27l8buIwqGbsDdpOC UW3Oh4Ng8DRMIV2cL5KoVyssZK8BptXzMvNwQBzeHjsK7rtehZY3WBzI5V9kfDey24dr f63cPcfC/nXW8M8Xhrdpcfg6/buTj5b6WtwCOhhqeKtu0jZF4k2jIF2sFAJ/KFqNIIB4 2GS69lw07tviN6WOD8umAPF8DB89qb+XobrcxYECRpsSInlyeeo/iH86ylgRrkzo+VaM Qs8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YEvIyYeLDXUpTcJZWMj983nbdS1DgqFIWLgNvEi4/Kc=; b=F9TGsO5KvPSOg2XlI3BrVTIvlY2Kf0Ttpj/gOgHgXtf4bL6EI3S42e59f8bXyrU1HO iZkCCVjYmm7NcmIY+kAOQnwXK0GGqO16QvBK2BGX7oP5GkErLcbqEhv7cDpHfdzTzgh6 s64uYHAUzZ2Fh2D6wZ2PS/v6CR2kJDvEet/5twXoa8z5xuCupyFMNPEVkimWt5RhGfwU FtN4uYKmGkwFFT4ktZ/8DFiwAMCzlW3bghhkzX1vr4EerHrx56uJ8pRpPJoPPjJoqUmU Lt7zUX9/zH4osuYFE1YA/32Q9Z7B4caFhn0Q6UWlbAnj5cQoPokSWAvsx+nP06Uhy1jx 7OEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="UBFJb/UN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l1si8508392ejz.748.2021.09.13.17.38.38; Mon, 13 Sep 2021 17:39:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="UBFJb/UN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244574AbhIMPN4 (ORCPT + 99 others); Mon, 13 Sep 2021 11:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242611AbhIMPNu (ORCPT ); Mon, 13 Sep 2021 11:13:50 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 271F7C0C7017 for ; Mon, 13 Sep 2021 07:03:05 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id s32so8128685qtc.12 for ; Mon, 13 Sep 2021 07:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=YEvIyYeLDXUpTcJZWMj983nbdS1DgqFIWLgNvEi4/Kc=; b=UBFJb/UNvdtTIVCvaiSXEdqImCOifx2UsDbPJuKsWTYonXF9HcLGUZQpwlWpd+7Ah2 LbjHtrrJg6a3J/R57I6PCgelupBiAhdh/JpCa31goTnJMpfL2+kE5rf73AP7w2x/KFwH lgy5G1OARWI5FY3AhcpvUpoSg58EALyljbwxgI+weoQOylI3a6qU5fnvQzSscdZ7ziPS 9tE3acRsny/FIP0kFA0yJ3G5wg2p1OIeF+jufoAYCIsI3iGfGP1kN/lmBrlPC8qdy9DU CaFmTTWKf/xb3P9MijywkcnPoO/gLMAVIG5zTXYDBhiDQpCIgsHACL54WyeeTrlNyxrQ E5iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=YEvIyYeLDXUpTcJZWMj983nbdS1DgqFIWLgNvEi4/Kc=; b=e0vMYQMQJ2Nvt4wbcNu6+gAHYJaAVcG83izEr43IHYZKY0PyihNHIcGegNmelh1kUo w+5JkFy/s0ZSRmc8bzA4N7qwHD3nN6JP6JvTip+Al/+zMId1ZP7AQRYS7VkIq4iwtfIY CEubTGCqFp8cWMGPBrsuVWOge+6W/gZYI96+lDYc7bmlRxbitw4eaKJ0bjAuMedSaA3n Ap3uO3OE0bpSPh3u3QHWNW459qXH6NDKsBsHVULASPPbKwsYJagzr9gbhYC8HjhZLvkb oVWHmj+XpkvI9nAk33gV8mG+3qSzATzEiHeytlG1K+lzlEKn33LxzhQ10kEwvqec0c3x BimA== X-Gm-Message-State: AOAM531k7MQdwdCyIRuEvluvDpjIoAFPIwWKzzu9pROZTGz2A0gYn89p UA3EG0bUHXpKNI0SNvDOQ8369Q== X-Received: by 2002:ac8:5f86:: with SMTP id j6mr9320639qta.11.1631541784302; Mon, 13 Sep 2021 07:03:04 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id b15sm5219812qka.107.2021.09.13.07.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 07:03:03 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mPmY2-00GTN6-Sz; Mon, 13 Sep 2021 11:03:02 -0300 Date: Mon, 13 Sep 2021 11:03:02 -0300 From: Jason Gunthorpe To: Florian Eckert Cc: peterhuewe@gmx.de, jarkko@kernel.org, Eckert.Florian@googlemail.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] tpm/tpm_i2c_infineon: Fix init endian vendor check Message-ID: <20210913140302.GE3544071@ziepe.ca> References: <20210913120521.18572-1-fe@dev.tdt.de> <20210913130210.GD3544071@ziepe.ca> <690f5a5f846c4ef966713b4970d07737@dev.tdt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <690f5a5f846c4ef966713b4970d07737@dev.tdt.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 03:46:48PM +0200, Florian Eckert wrote: > Hello Jason, > > > > The device works than as expected. > > > > > > Signed-off-by: Florian Eckert > > > v2: > > > * use variable type instead of le32_to_cpus function call > > > drivers/char/tpm/tpm_i2c_infineon.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > And if you do this it need to be made sparse clean/etc > > Sorry for the stupid question, but what exactly do you mean? There is a tool called sparse that checks the endia notations and verfies correctness It will complain if you do __le32 x x = le32tocpu(x) you neeed another variable to store the cpu version Jason