Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3520109pxf; Mon, 15 Mar 2021 11:22:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye4+9s+TdJVts4+WYXBi7/g/oNry4fxiCJQYxOlqXetLIAvlFckQh7A9Y5oub8YTO9JaZp X-Received: by 2002:a05:6402:b31:: with SMTP id bo17mr31436140edb.113.1615832549530; Mon, 15 Mar 2021 11:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832549; cv=none; d=google.com; s=arc-20160816; b=KtU8I6hDXX2oLrHapL2EygZP8/TiMFhdbNo7fwD8zelbb1ZiawWzrzponScDjGB8bq 4yFs5yN2KCu2Xv2KV+jw2bMbdqJZGr1aucriJH3vnFQG+IDn576dBjqmkCL/bRPS4ap6 p0ybMoNvWI87Ml7reHYQjVKxb2EScygHeNltHlxEzuSbuuYb6O/NewoMquiMyctSQjc1 K7UIn6iZzWYKdRtWUgn/8HosXSjCuJ7/wO7HKt0uXiVXxekq1+ZeOgQLUACugx8wEG6x +ph2CoBnsrABmbLU8zBwsu9YM8zLbnhsq0qDuBtY0gwOEEoU8qr9pK7OH7MLPfbyTDO0 jjsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=74bxLL3bauU0mYfNykbsiTf1K0+8Hn+hxgeaGeUdeJ0=; b=I2WUZfEQGN5RuaC/q4HPJ9nw8o3sJCo6M8AWEos+eiWVWtYDvRNarnPjynqtYx0HaA jE1YxPGSC4ViuuUpNwC9iMHobIHdbAFjouw1O4ieBRe7jWVjQzUdm1tbJjVCeHnHiRYu k2joBRv0mUMZMtpn2TGvIO6VNch/mU54EDjBfWLkZG4kNv0y5vMyOqOrRjsC+KghTTGP ElPpW3QLp5AbtxJyGa2vB2d86FSYXDUV6jLvM1VVxfWM+4KBgcBhYTMtfAfR4GttP6/J PGnwkR6lm4xP3+GULwtubrbtrpnhZXc9g7CIlCYezal93fZVknOEQkiLbFvdm5AdG+A/ xndA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uKTJCUFp; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si11186583eds.451.2021.03.15.11.22.07; Mon, 15 Mar 2021 11:22:29 -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=@linuxfoundation.org header.s=korg header.b=uKTJCUFp; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237632AbhCOOVm (ORCPT + 99 others); Mon, 15 Mar 2021 10:21:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:35904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232888AbhCOOAF (ORCPT ); Mon, 15 Mar 2021 10:00:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3D37364F67; Mon, 15 Mar 2021 13:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816788; bh=C6GhsRzq9C4Gk4A9yHPHso2D/z4lVh3ebbwnHATMeRg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uKTJCUFpoxzPUCB/77d4rm7SOtudjy+luB6281zZgbHWHGMO9zU43p4yKY3lZxVXI UA4ZIWdXOtEnH7dVDNrgLxT8UVfpVW2vn0DlsvQtjuSX35ppjNFxGR9gDTqgzszP23 shcciRWphCEK/tsXV8CdkRcthZzzhkKjA5ijkn+0= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wolfram Sang , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Wolfram Sang , Sasha Levin Subject: [PATCH 5.11 125/306] i2c: rcar: optimize cacheline to minimize HW race condition Date: Mon, 15 Mar 2021 14:53:08 +0100 Message-Id: <20210315135511.893044251@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Wolfram Sang [ Upstream commit 25c2e0fb5fefb8d7847214cf114d94c7aad8e9ce ] 'flags' and 'io' are needed first, so they should be at the beginning of the private struct. Signed-off-by: Wolfram Sang Reviewed-by: Niklas Söderlund Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 824586d7ee56..ad6630e3cc77 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -119,6 +119,7 @@ enum rcar_i2c_type { }; struct rcar_i2c_priv { + u32 flags; void __iomem *io; struct i2c_adapter adap; struct i2c_msg *msg; @@ -129,7 +130,6 @@ struct rcar_i2c_priv { int pos; u32 icccr; - u32 flags; u8 recovery_icmcr; /* protected by adapter lock */ enum rcar_i2c_type devtype; struct i2c_client *slave; -- 2.30.1