Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp167719ybp; Tue, 8 Oct 2019 16:00:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKUW7Z+IwB9eEkUNKxfm6McCgcOIcR5m/+YtIwe5rOQC3FKaLRL0d0hc2ujCMh5DDduC27 X-Received: by 2002:a17:906:68f:: with SMTP id u15mr116917ejb.306.1570575635921; Tue, 08 Oct 2019 16:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570575635; cv=none; d=google.com; s=arc-20160816; b=Gf9uIs7VE13l/31UsB+OA+zOzFBAMIZ61la4GWnfjotxZqs7BcNAd+z3vjGweDVfzz KphShlV4/83dg6bY5qAH0XbOfGrWy7lxAZ6i2wzSX8ucB1pWZT3cd3Rx3JYKTw+wrkiZ j/PnRK1JDvBwympfD7MpHA/S4iPRRy1KaM7jz8f+45F4IOfkW7dy7vZge+pWXBX70Ww4 wHTP1wkhb+v5hVxRBpehZOrkB8+Hg6o/w2ql5uAObzuj5zgS5CuwPbjXTFoV8ze92YHa krK3yRSnjZ4uHAPcwS5wlBWi1cKOCNYv1qU9bEY/2/3IMW1+cPl9ShYL3fySIEFD8XDR Ks2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:cc:to:from :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=1iVg1bgTgNlX0dVm1aEShQI+wslCHb8bQCi8jJ4tNNc=; b=VLVLRnqjT9Cgd5Vm99rvi9nT4RDZJ0VqOeEWUqkjOLciWFjAXEMShKLjbEr6xna/jX oFwGqkqLrvaISpJRTHwQ0QUEmQ7fNQwsPtenEeA2nubuf98RWJFRGsYEOpdlV4HFB2nd 7jaDeXFrj44xJLANIhs3LgrRKqKBdyFNfCtZwETQjAP9kTVQmfcnR3yTmGBJCCxrdKN+ RD9UDdjuPgfoNryOlXfzGXBd0wr+8XEVNe/rRq9Jcnqrfj/H4qmoOts+NeHTtFpcAnOP Eqj58W5VOCYeDrbUMMmf8f8exnrRGcwWrfKutYTFPWBkvQRAHV0gzqb00mczxesrfvys /BZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QDUlhMJX; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si160681ejf.28.2019.10.08.16.00.12; Tue, 08 Oct 2019 16:00:35 -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=@chromium.org header.s=google header.b=QDUlhMJX; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727814AbfJHW5r (ORCPT + 99 others); Tue, 8 Oct 2019 18:57:47 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38063 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfJHW5q (ORCPT ); Tue, 8 Oct 2019 18:57:46 -0400 Received: by mail-pl1-f195.google.com with SMTP id w8so73079plq.5 for ; Tue, 08 Oct 2019 15:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:from:to:cc:subject:user-agent:date; bh=1iVg1bgTgNlX0dVm1aEShQI+wslCHb8bQCi8jJ4tNNc=; b=QDUlhMJXKqmHUqSjPCk5eUuvJMAi05vnUZjLZXoyWt4EJdXtiOz2Y6Nr/MuLSLI04w 0toDdOgS4ewieZ4KychKuLMMZDFwLqkjBPNmy/f7ti9npdfWUKH4nlcvtVwvuKRgpJ6J r20qPnrBvGNsk7IEz5JRvMz4WuJpc2KtWI6Bo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:from:to:cc:subject :user-agent:date; bh=1iVg1bgTgNlX0dVm1aEShQI+wslCHb8bQCi8jJ4tNNc=; b=fsnjqLsDHJNHTGGF+88dy2vBNF0Zzrmfbh+y9TpPTEy4UDdKHQAUwHN79ISkSW1jRA ZqqGjigfl3Y4YID2vBzs6ubr0kNmf5FQ/UBMY8OqJbqzdg5qa2u98UUnOBvkS2SPIAuu e5LHCwHr7abAJOrWmPvFL1Mr8ZNA2GKtIflcEjoPlPF3jVSzanTaZPeH2Um78px1F7As VhxMs3nWObDoplVo8hQsPKnCG8b2JojuL+1x3V5YEJbUZ5E/sA4mlxlXjyh1/TeO4tx0 BXXJHoyYf+M9nGNxzw/+AMzoFIfWCCrb6Y2RRaD0fZEEAgipIXdnBIAzJyQnJzds6r0Y gRXw== X-Gm-Message-State: APjAAAVHDj8u6LYjE28WJkxphDVZBvqR77SfkTHihI9YFS/2QBkGDZph U1GV/CFAgqxsvHl9/SAGZKmaYg== X-Received: by 2002:a17:902:a704:: with SMTP id w4mr37148337plq.177.1570575465981; Tue, 08 Oct 2019 15:57:45 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id d4sm205853pjs.9.2019.10.08.15.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 15:57:44 -0700 (PDT) Message-ID: <5d9d1468.1c69fb81.1bb45.193a@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20191004233132.194336-1-swboyd@chromium.org> From: Stephen Boyd To: Evan Green Cc: Andy Gross , Bjorn Andersson , LKML , linux-arm-msm , Venkata Narendra Kumar Gutta Subject: Re: [PATCH] soc: qcom: llcc: Name regmaps to avoid collisions User-Agent: alot/0.8.1 Date: Tue, 08 Oct 2019 15:57:43 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Evan Green (2019-10-07 14:20:47) > On Fri, Oct 4, 2019 at 4:31 PM Stephen Boyd wrote: > > > > We'll end up with debugfs collisions if we don't give names to the > > regmaps created inside this driver. Copy the template config over into > > this function and give the regmap the same name as the resource name. > > > > Fixes: 7f9c136216c7 ("soc: qcom: Add broadcast base for Last Level Cach= e Controller (LLCC)") > > Cc: Venkata Narendra Kumar Gutta > > Cc: Evan Green > > Signed-off-by: Stephen Boyd > > --- > > drivers/soc/qcom/llcc-slice.c | 14 +++++++------- > > 1 file changed, 7 insertions(+), 7 deletions(-) > > > > diff --git a/drivers/soc/qcom/llcc-slice.c b/drivers/soc/qcom/llcc-slic= e.c > > index 9090ea12eaf3..aa342938c403 100644 > > --- a/drivers/soc/qcom/llcc-slice.c > > +++ b/drivers/soc/qcom/llcc-slice.c > > @@ -48,13 +48,6 @@ > > > > static struct llcc_drv_data *drv_data =3D (void *) -EPROBE_DEFER; > > > > -static const struct regmap_config llcc_regmap_config =3D { > > - .reg_bits =3D 32, > > - .reg_stride =3D 4, > > - .val_bits =3D 32, > > - .fast_io =3D true, > > -}; > > - > > /** > > * llcc_slice_getd - get llcc slice descriptor > > * @uid: usecase_id for the client > > @@ -314,6 +307,12 @@ static struct regmap *qcom_llcc_init_mmio(struct p= latform_device *pdev, > > { > > struct resource *res; > > void __iomem *base; > > + static struct regmap_config llcc_regmap_config =3D { > > + .reg_bits =3D 32, > > + .reg_stride =3D 4, > > + .val_bits =3D 32, > > + .fast_io =3D true, > > + }; >=20 > Why did you move this to be a static local? I think it works, but it > makes it look like this is a local variable that's possibly used out > of scope. Maybe leave it as a global? And have a followup patch to move it to a static local? Sounds ok to me if you prefer.