Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1977868ybl; Sun, 18 Aug 2019 15:22:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFswQ/sWCsR8XUqvY+utW+OMy2lPMEtI41v51en1dY8NJzMvP0g7XI4vOFeGLCNGye7RUE X-Received: by 2002:a17:902:aa03:: with SMTP id be3mr19726271plb.240.1566166968842; Sun, 18 Aug 2019 15:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566166968; cv=none; d=google.com; s=arc-20160816; b=WS/OmQXYf1KZe99M+mm9lDMavJPikqfWfuBkFQSvsy7ZhZH+51yB/W8X6uu5UhrT8J AEO9Fvri/A98UJlfHrkpDVIDn90EKWEf6uCg959LJTNGiw7u4++taFYhPQz3sMjtFYN2 UzUfMeNVSwzE2TgyNT9YlhYgH+adBj1v86wkSkH7dzFJW/0YhPgAyRghHoP79FBUtcXM jB+CoPrVmXOToKOTk3gtrDJOm4Bp+2QSeXaU77+x86OT3vgYZ1Qt76kBogfvGLNEqsl6 zv3C+k/7AkCOWYWb/FppDNptL+K4JIRJQFkQhIbhY/jbIhOC6bnHHe1Xsf2kj920CAZx z0SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oDJV2qKgc2rE1ZecO56MT3ujkmelBSa9vGB/ZXufqTw=; b=1LCOtaNp4zl+CNzby4Qp1euZXIxC8MFskE+f4sgQSSmuc+DcoBLfXWi14f6kgznYsn zUwTCrPBG8WmMp25Vw/ev7YjbH0yC8PtcNfWZXF6utWlGJHDhUK4kMzZiH5xCNPsN6JP DhzbwTPrshm1Y3z11YNez+hKtFgqP4iuBuGFD6hgKeCdvXTzGEJRl5Wh0OVTNQiaSK1g vMrVEnTz6DGqMId9IX+Nqcv/lazkgDgw7MdeDlt4gIn0oSonzQqn86La2gd6bTx5fyip qK82/i7MUB10JN8DDBRYajhc9bRjija5i7qklu/LXlNCNX5ynMuXd+JvRCXFJDSfvLIF p3AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WQo7LW0w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si7447844pji.69.2019.08.18.15.22.33; Sun, 18 Aug 2019 15:22:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WQo7LW0w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbfHRWUP (ORCPT + 99 others); Sun, 18 Aug 2019 18:20:15 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:33802 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbfHRWUP (ORCPT ); Sun, 18 Aug 2019 18:20:15 -0400 Received: by mail-lf1-f67.google.com with SMTP id b29so7550711lfq.1 for ; Sun, 18 Aug 2019 15:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oDJV2qKgc2rE1ZecO56MT3ujkmelBSa9vGB/ZXufqTw=; b=WQo7LW0wZCePzyiGp719cN5hGt2IqiOZor8+bvWmUAuHbV9PGpTkPF2bK8mSoOXKsk cXos23XIkSNlw0j+eYIVrAy4wm2b3mzq63weuFYrOh9fayfx7WXFe8iSR6qpRdjO706B rZ+5VK/R0mvml612IDYouJwZmejn8+fTgFXdMcvHDx9HRgqz5GEK4f9LALcvvM6rUbci M4mKmHbo8CAYGNbRwBoRtp9vQBSecxXLMFdsHbhuwir5Dk/WpwGKyZBA0s/Rdsr5+nHk jlS3RDdEtsGYcj1oAF3qTYjb6o7I26Q1FPM0SBih/XnZdml1vUXnn5vOE0lsOwhb0Ff8 6Chw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oDJV2qKgc2rE1ZecO56MT3ujkmelBSa9vGB/ZXufqTw=; b=B2IGRy4O9flLp+PZKbFgCEWNBUPByN2FbIAVGUURSp1RuuVGJmBklLg8tkiiPyTuU3 QTKsYCoKGQq5+UAWL+Ro0HtvM4QlMgHYFXsebkdEnSr0RG2TEgpno8i6NC/173/4bbIF Es/986oEm0aoGJAQcXPz7+OHNMgWYFJrNxqmQe5W2iVeki5hnZR3avNwbAhm7RVjoZjc jbhvhgiO9rCEOUt93zgLKuOOl/9udCg0TAfW+lKMZ8JqArD8mN8XLStkYqZ9x30l3ZL9 FnNgVX+GN4jAf30v/Wcls7PUXexmGvnGTGtXM2hQtHN9r+YhqLfO5MYR9EQeBMTGPYSb T5og== X-Gm-Message-State: APjAAAVn/InDjVmlou10UCXx23eY77BLrzVj50y7jMzG3aFdKbVeMKBu c0CJCs9HpRCqMWEUb+jGUpeE8J0w9nzeTDe3uLeQaw== X-Received: by 2002:ac2:5939:: with SMTP id v25mr10723641lfi.115.1566166813184; Sun, 18 Aug 2019 15:20:13 -0700 (PDT) MIME-Version: 1.0 References: <1565984527-5272-1-git-send-email-skomatineni@nvidia.com> <1565984527-5272-2-git-send-email-skomatineni@nvidia.com> In-Reply-To: <1565984527-5272-2-git-send-email-skomatineni@nvidia.com> From: Linus Walleij Date: Mon, 19 Aug 2019 00:20:01 +0200 Message-ID: Subject: Re: [PATCH v9 01/22] pinctrl: tegra: Fix write barrier placement in pmx_writel To: Sowjanya Komatineni Cc: "thierry.reding@gmail.com" , Jon Hunter , Thomas Gleixner , Jason Cooper , Marc Zyngier , Stefan Agner , Mark Rutland , Peter De Schrijver , Prashant Gaikwad , Stephen Boyd , linux-clk , "open list:GPIO SUBSYSTEM" , jckuo@nvidia.com, Joseph Lo , talho@nvidia.com, linux-tegra@vger.kernel.org, "linux-kernel@vger.kernel.org" , Mikko Perttunen , spatra@nvidia.com, Rob Herring , Dmitry Osipenko , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "Rafael J. Wysocki" , viresh kumar , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 16, 2019 at 9:42 PM Sowjanya Komatineni wrote: > > pmx_writel uses writel which inserts write barrier before the > register write. > > This patch has fix to replace writel with writel_relaxed followed > by a readback and memory barrier to ensure write operation is > completed for successful pinctrl change. > > Acked-by: Thierry Reding > Reviewed-by: Dmitry Osipenko > Signed-off-by: Sowjanya Komatineni Took out the previous patches and applied this instead. Yours, Linus Walleij