Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3518460pxf; Mon, 15 Mar 2021 11:19:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybTWN1SmMG78YTn6Wq+yPOVjgnUyHjR2BegRCQBSYkSsnfECTCOo2no2Ah+TEq/OI0L++Y X-Received: by 2002:a17:906:1453:: with SMTP id q19mr25498280ejc.76.1615832394065; Mon, 15 Mar 2021 11:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832394; cv=none; d=google.com; s=arc-20160816; b=Ihdl334/WFDKt2xL8W02uSaZxljnvQ9NmUhR5hxdwSNqGcZQ5RgWiEy44sMFZOw6ok Jgzj1egwvKOUiyqhUfmc4IThvc/73/iqw1kDw414Vx9EptqhN38nKBFslMWsall0Of4y sc+Q7vC1IXubVPyQGsDGwnx55+ID4ZeD7exxHM9BrS4F7KqLfkhulnrUbPF3RVUW5oFX 4pBf1KrZkSWEpW8DAcqQ5DaguAOpUGimAAbAOj/i62RNptMYjAuf9vN3WtX85ZxOREcD aWE5sFV7lQpDNQleOFwQKLKvxWYA9/UCskF/w7nod3Mx1FcaQhhT1H6Ee1gam7MX6rdM pa8Q== 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=gmm8NLsJnWhYLmYZlQh9HDvQNVWSjHd+1+nFegAUuEA=; b=f94m3HP8ZaHlxYSIsKUxUa92bJDJMSgJDIySKVesyS2wAVfm/DdxrY8yvh3ifxlRuC KQch91iIRbX5rTElw5rEJI4LqO6I/IwAhcJl5oMsbbPqRAJptJ/oPPGpNfm94RxAQBBN VqG9XJTC0bzAC3qR0TFewzXgnJ/6r9vWxlfxsEP9KQUzaldSa6sJFmU4V9Zbj53aLWId ZcuFAQas+0OIFaQh9bkeBwmt7xMXjLyBBPbWcOurXDvjvZUuHMW+biCQV8jRYOsk8+mt EUwxILYfsacwNKVYkshJPOvM6ESnWi1OqUiTZRddjerYcqLdBpjoScurWR+Aan8YUAqy NZcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KbbEwykn; 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 ce10si11035478ejb.123.2021.03.15.11.19.30; Mon, 15 Mar 2021 11:19:54 -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=KbbEwykn; 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 S236969AbhCOORD (ORCPT + 99 others); Mon, 15 Mar 2021 10:17:03 -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 S232678AbhCON72 (ORCPT ); Mon, 15 Mar 2021 09:59:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4766264EF1; Mon, 15 Mar 2021 13:59:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816746; bh=nIwUgDOLL2c8zwazcszFb2BB1poTBLVOUSx3BnSxp2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KbbEwyknlRf27SR99VJ7wjHsNdJmccihtGqNhSuWNs48be7eA3LpnTfQBahPJXd2M eaSxqFFffRIK4FIWob4FX0ATUfJoPgCmMOxCjeHXLuCtp9sa6KrWD/DaRGiJnfFGLc OCyB1rTI3bAK2CY9yIhr8ZL0w6kHF84qe/nAiGPU= 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 4.19 042/120] i2c: rcar: optimize cacheline to minimize HW race condition Date: Mon, 15 Mar 2021 14:56:33 +0100 Message-Id: <20210315135721.375066654@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135720.002213995@linuxfoundation.org> References: <20210315135720.002213995@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 f9029800d399..3ea2ceec676c 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -117,6 +117,7 @@ enum rcar_i2c_type { }; struct rcar_i2c_priv { + u32 flags; void __iomem *io; struct i2c_adapter adap; struct i2c_msg *msg; @@ -127,7 +128,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