Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3523635pxf; Mon, 15 Mar 2021 11:27:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8vsMmItqD2iEwW7gxsKRpA6N01YInL15g8CJ2tdhJI2HZBL0c7ko54BoR/nipIf3NT9ZN X-Received: by 2002:a05:6402:220a:: with SMTP id cq10mr31583607edb.345.1615832861337; Mon, 15 Mar 2021 11:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832861; cv=none; d=google.com; s=arc-20160816; b=smnoSIZQdE4h2lKtrOO2EAslC1sCQ5httGMsKgJ3RFD8oZ+u900B4JUpYs2cqZ0f9N qjPqb9yqD+OGI6VPBxxAU+FjWVdFR1ZMiXzV/aO0zEqwicOfzr8bBri5GT8e+kSzkR7S 1C/RRr6P5nBR5qLJ2SC5npl9xg3Ia0wPSKAfh9ypXhLJ1ETPeJNFgSuqLIzx0fGGcBEu AehtJh9SUI0Udf6xxkqjLu5Ajvt45kh7sM9sXb1YXPQJoMu0zS3U6EZBOJTe7HdTjBey 5VaEQiOqwX/Db2zZx8DCgCPm0hP1Aa9yb6A2wpElJ+81h1AAjHi5uzVcKsO2I7D+GTKB ffzw== 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=Jptfn4PQX/6gdyuYxekvFDDN/+No3CLIZ9WtE1Tpr30=; b=dQbLbME+xpWG5jPgEqwbi/xSrjxejnLyZLQwo1QbJ7aDpzx+8Sneoqekfi1kGAXMFs taQgLXZB+iAXcNCOuuUhx5OS3voMB6ZM/Mv+sSw322NqZ05LgwYNasxo77d0vnrXyuW5 iSCUwHfZTQMz7HToXGu8VLTc/gI9hyKW3vf08OPLbiIYUmnzfNfM9gmM/NmtmwqlQMnQ moLTKSYy8XucnqPOFSYnPzXQzCJBFUsQ7Zf0LTydg9bjw0yyaySywTeMHLccavkZcj+p EoK1ZKLlfe+Q+JxmOu4GsgKcF4sbASnfts5Ia7p7xheeLbmeuWx3NDFLyUV8CRLhWJPk xk7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aV9bSzer; 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 t12si11681120eds.41.2021.03.15.11.27.14; Mon, 15 Mar 2021 11:27:41 -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=aV9bSzer; 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 S235260AbhCOO3x (ORCPT + 99 others); Mon, 15 Mar 2021 10:29:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:37500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232305AbhCON6r (ORCPT ); Mon, 15 Mar 2021 09:58:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C199C64F43; Mon, 15 Mar 2021 13:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816715; bh=Hl0B26JDSLEcH9BPI5Pxmy6u+z2PZl4XUVNynyK+8Vc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aV9bSzermvyRckmtWuedlrhSYiX9AQLJWM62wD3QIbHpNEhTpxEQpjlgZ/A1PuNst 19DuZMBKjasb7mFJKpSN6ws+dWT7Trba3pZl0BSoS5ajiBoEAWQt2iJa1p9p4e62hH +4BSP8isMTfSjkc2Y/9c7ZDAsWs0AbplZb3gSIAw= 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.4 063/168] i2c: rcar: optimize cacheline to minimize HW race condition Date: Mon, 15 Mar 2021 14:54:55 +0100 Message-Id: <20210315135552.443572886@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@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 9d54ae935524..d0c4b3019e41 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -116,6 +116,7 @@ enum rcar_i2c_type { }; struct rcar_i2c_priv { + u32 flags; void __iomem *io; struct i2c_adapter adap; struct i2c_msg *msg; @@ -126,7 +127,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