Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3522325pxf; Mon, 15 Mar 2021 11:25:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQauI7e/1I9EZJo6vFeuJfj/1g9/LUSDY4rNOBeQfXiEZzRAwczRoWKdBti+O74NADLdiF X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr24711367eju.180.1615832751566; Mon, 15 Mar 2021 11:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832751; cv=none; d=google.com; s=arc-20160816; b=sJ9T9HrQAxn57sAICqpGuMyLqIGD2cvModqUfhNagL8WF7IAO4THnxcKMHvDCjPdWP k4jrrotSIGVgoampAo9Y7MGvCKWxDblRjOjI6PPn/A6KXAnfnhAeRr/AXFhehfWEmwmd 7bPr+LKgY+ssPnV1zioGyW0SC5NJHMhKz1gca0O55xu6OaVF7W2V/g2GKfk3wkZfsGa5 +SDF5Q7lEc+Me9WxHmGeXIc8e4sz1EPgOCQCBslTo85i15k6MPfH2JVHsWFjUUh7Mgeo EN2yS399aaouRIS0i405+9ep00wB4GsSg1sItM43tVhjhhzjfdXi6RxtqD7oo6iYu+YJ ojhw== 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=grM6e6GiRUgFeDOOtXZ2tzhZOB9c6F4osOX0RmS32Ga0ECelrj+brtw96TTK3f49J3 R9LRieUMnTySNjEcPEB0Kricy8q4WzjMfxodpv4K5CFK4Ge3uZQjwcgl0O1dCaYQ6VZi 28OEeZmf6vjjqnSrXuLLYY0Qk7qO59Ntlo4TWbMWSyk1Q/E1XqO+8h0beqF5p4whNovN rET4s/4blNh28j8n19/TvP5khV/XylprcONEgzLsRvKzUmLBF811zpXmtSoyxjrkiecw Pn75YAdToCjCmxnuM0FhzYHLPd7D15FDRDU/grAD2gu5wINHwH3P87rOxtfxbKspzPbd BSkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OfA4OTGU; 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 m4si11713433edc.119.2021.03.15.11.25.29; Mon, 15 Mar 2021 11:25:51 -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=OfA4OTGU; 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 S234332AbhCOO0r (ORCPT + 99 others); Mon, 15 Mar 2021 10:26:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:37632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233062AbhCOOAg (ORCPT ); Mon, 15 Mar 2021 10:00:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DEECB64EEF; Mon, 15 Mar 2021 14:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816820; bh=C6GhsRzq9C4Gk4A9yHPHso2D/z4lVh3ebbwnHATMeRg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OfA4OTGUgJmqhOqovCYZ0bFbKas3UzsYAlCHps5po4Fu3PRLEKMkoFmVLzuohE4gA bjhoIW65QCcr++HaA5D4PsyYvq+VjRcoy1k5JuMPYQHJwwJlj51hQVwiIHi6wGUBuX pq/xTDVD8pfJZRBfgkd0bHz2TEwztDGT/F8MhgUI= 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.10 132/290] i2c: rcar: optimize cacheline to minimize HW race condition Date: Mon, 15 Mar 2021 14:53:45 +0100 Message-Id: <20210315135546.366274155@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@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