Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp241015pxb; Mon, 13 Sep 2021 18:06:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvx6OpkT+vwrvQecscTwOsyQZ2w8VqL6ry0Yf8icRPoQm5tNOiNmeK7fdX/S/tmb341AYn X-Received: by 2002:a50:eac4:: with SMTP id u4mr6238241edp.259.1631581560077; Mon, 13 Sep 2021 18:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631581560; cv=none; d=google.com; s=arc-20160816; b=pWOCiQKlKX6CBUl5m7byy0INLCyy/AknOt5J7ToHro+WZVBksFXU/6pxSLKTcmZNZq mKisAQ7qVPmW2+W9kUv9LQ0mPfeskI/uSv9tIYXhx277Sq5w5l+0oDzP9aqDP70gZUgq F3Kr5qUueJG2lLagvSQYxLrJw3opB+kNMXIBQ24typXSEeQu+C5nDN8qQz/LHEzDfPgX sA0BxhMKoSppLXAXIw4C5VmqDj77rR+wZ40By1ecHw1+Zkr0iCF+MR91NyRPYmx12eah KPgzODOcQGgxViRQxRws3B+boc1giCcW6rulcrXnetmjL829+E1fNKQLU1GNwS88q/0E cGgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=RPJ5U0dUxyH05Qy2WqNugAgF143GUG387/KfM6hOVeQ=; b=f9qLIQxHQzP5HxzS7egFVB5CmSpH+EfZX0t/I+xyIAJD6u7ZmWsvLLU+TX68R5e1pe hMWTAOt23JfFNqOmNp54y1MtoKndcw0YN+sYblC4mviafFEiPL/BTP7dlDgvjOuEm/MC YeHmlHXpoh6Vqok345R2S/88P7aQzN8T+pQOAAfXHOGNTFiLTA5T4E2cKHKWV2oRr+oZ o6T5+Yx638A6b3zPKKnw3C2oNjXZu5EZS3ude9Qp3MkJ4ch4hPqVl3AiREZ5lYv6Pza6 x2a0lEoo39y8raFnlaDRCecxXuKzjFEsvLQS5SWpPtzbUB/ytmDSsL82NFnmGCRYWn8A pdtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jcv56BwX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si11677877ejy.297.2021.09.13.18.05.36; Mon, 13 Sep 2021 18:06:00 -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=@kernel.org header.s=k20201202 header.b=Jcv56BwX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243816AbhIMUcd (ORCPT + 99 others); Mon, 13 Sep 2021 16:32:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:34304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243788AbhIMUcc (ORCPT ); Mon, 13 Sep 2021 16:32:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5BC1B6108B; Mon, 13 Sep 2021 20:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631565075; bh=RPJ5U0dUxyH05Qy2WqNugAgF143GUG387/KfM6hOVeQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Jcv56BwX+tVHQHfFs8YxsC23XjBczKIqJb8hQzuDdDMv8JqhRFhyGYxrhkF+fGpwr 5OXNq8lHL2RJCbq7Q2BLlPvz1r5wZiY2o6ej3GFhbVxsJVQqOpUC0xdE0Iu0KPYf3k vJhkyklcNjQBBrKNS3jZCS4CyaJuj9POfU9Twxk4G6PE1VbyQVwDNOhtwMYh3MhDvl DsNJUAAuvW/s7qYPN8tyQa4joaFdKABhelq+Y55FBsXm0SlTXW4MGusxwroGos7716 qNq/PVumcuCz8Uz+Fv9DvfdSQOqTqQkIoChC6o9JgiBvs0yQ1svS9cITA3DfM1Zwpb lfhdpsvsQpvng== Message-ID: <169a507329c2273f64c1c7ebab0a3530b19e971e.camel@kernel.org> Subject: Re: [PATCH v2 1/1] tpm/tpm_i2c_infineon: Fix init endian vendor check From: Jarkko Sakkinen To: Florian Eckert , peterhuewe@gmx.de, jgg@ziepe.ca, Eckert.Florian@googlemail.com Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 13 Sep 2021 23:31:13 +0300 In-Reply-To: <20210913120521.18572-1-fe@dev.tdt.de> References: <20210913120521.18572-1-fe@dev.tdt.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-09-13 at 14:05 +0200, Florian Eckert wrote: > On my embedded system I use this tpm infineon chip via i2c bus. > The system is a MIPS architecture and therefore works in big endian mode. >=20 > The problem is, that the chip type is not correctly recognized, > because the vendor ID is wrongly aligned in the memory. >=20 > By declaring the vendor ID variable as a `__le32` type, the TPM chip is > then correctly recognized by the driver and feels then responsible. Please no hyphens just normal single quotes. You should have always in a commit message some explanation what the patch does in imperative form, e.g. "Change type of xxx ... because ...". I cannot from find a variable named "vendor ID" from tpm_tis_i2c_init(). Maybe you are referring to the variable, of which name is "vendor"? Finally, the commit message lacks explanation what is changed, i.e. tpm2_tis_i2c_init() in this case. Did you find the commit ID where this regression was introduceD? /Jarkko