Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp213629ybp; Tue, 8 Oct 2019 16:48:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxuUYA6I1qi30EIfKvsRiVLclUBKm4EIa8H8DuXmJTzHjmR94oeSQN6glfXte6ieakdTEF X-Received: by 2002:a05:6402:21e8:: with SMTP id ce8mr578095edb.32.1570578528889; Tue, 08 Oct 2019 16:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570578528; cv=none; d=google.com; s=arc-20160816; b=TQzFgKgI+yqQL+vXOgLZVvYJLn7XtQ3vl4IHEpK0mR7gS8fK9Ut/NKwRVlN0JruIfA 0ZrP5PI/v/ELPh0RzyGFU72xhgiaAg76Pdm9jofaGhGNR/AzUnWJW8hgG+2kY5wDi/rK ncXiG5yapm7iJqjWF0o2jR72tYsfFzxxqxjvMJwGOZFnSlfjE/tQWJInWoHKKJQvi15r RLDDnfSCwDF4Q77Dt82w4wvJLmZKc4Pcm9Sxiqr9MRXlcwM/KqacMCXS3Eb2GzJPdV0C SFg97YbfkXMo/Vu85udhdwe5YzCKYFKksBunZxeeMKx9D+t/GcNtxcR+npTjkY/X53p6 9pBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g6+fgv7o5Mc/zUQb4lUQ0sPjn9LWoOyx6TnpyyZahZg=; b=V4VcCwFvRv6aAz+wJ7yKVBs7nreV/eQp1Q5zJluPPtmvPraBzfqaFWC8imc5ueNx64 bp+42MvUnhU8oolCpj074hXfSYGvIitf8cTffpreIoE3qRgMBI5WysoRHqeU9MnKfakT i+cdDnv/7YeL48MR3qWOy3uHf3kXDdCtmscy0K2yYwp4sbw7A9yFjR9WvdQz9GbWCydh K71U8Vr5KEFy7RT0YUKE8SUjr+lmLSVMtrflXBra1x3t8Xgc/lMS6RXrXrESl+d1KwaA DilgrBo1pejSUQCJTFDvrGMb9aPxw8X2zgu81b7POwFLWbEW45nly/Ue65ykgaPgzYgA 9LXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=B6RHNGrO; 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 l18si347737edb.155.2019.10.08.16.48.24; Tue, 08 Oct 2019 16:48: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=@chromium.org header.s=google header.b=B6RHNGrO; 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 S1729784AbfJHXpI (ORCPT + 99 others); Tue, 8 Oct 2019 19:45:08 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36679 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727769AbfJHXpI (ORCPT ); Tue, 8 Oct 2019 19:45:08 -0400 Received: by mail-pg1-f195.google.com with SMTP id 23so196919pgk.3 for ; Tue, 08 Oct 2019 16:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g6+fgv7o5Mc/zUQb4lUQ0sPjn9LWoOyx6TnpyyZahZg=; b=B6RHNGrOm07WuboIxNb1d1jtA7CxE+Hg4E/LLnretKo9zn+WzF/8/gnt7eHlHC7kuV a6O5MtzttqIam4d9/Sfwv7663+um+CwN1uJMQAk6inURP47Sw3biIBa5adylsqJrHD7k eAh0rhspz/fShqdgLZyVDhAKqUlBvWElg4vrk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g6+fgv7o5Mc/zUQb4lUQ0sPjn9LWoOyx6TnpyyZahZg=; b=FpwVG0mtNqfOcNToJL/pFBsXj6wXy4ubJMZBhubaD7rbvnH9i0puVhSIvobUvHEkNq 9O1hPMdFoNzMrXZQ5kMggR/DICr6REx1MvlkqaLgdb8ogWJjEVCUugKCeJ9sY+IQLOLF AY5P9Lplu0Ub0VgKt/wKh9DAgjR2ZzALv1RaGS4a5vwwRB22YX6pSjXdWmSaDwGzVcX+ bEAkBLM8gzxWTLLZThS/xGvr7CkoHaNwf/VL6DO9SO/BMxgw9NhfVCDUGr21glb2GKal isietZonC2uVIVHqDXlZ+9PWiOp7dXyaBfT5Iv0lgwp+iaRdXnhC+EQnUdDa689QtVIN bu5Q== X-Gm-Message-State: APjAAAVqUK3WAgYVVYHT2rqnVlCJag9JDjsJYnZ0it6m57SZbH/PLTFS VYvCTzIbSJ0K5Q/d8IJYctBKyg== X-Received: by 2002:a63:eb08:: with SMTP id t8mr1120368pgh.49.1570578307734; Tue, 08 Oct 2019 16:45:07 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id s202sm210671pfs.24.2019.10.08.16.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 16:45:07 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Venkata Narendra Kumar Gutta , Evan Green Subject: [PATCH v2 1/2] soc: qcom: llcc: Name regmaps to avoid collisions Date: Tue, 8 Oct 2019 16:45:04 -0700 Message-Id: <20191008234505.222991-2-swboyd@chromium.org> X-Mailer: git-send-email 2.23.0.581.g78d2f28ef7-goog In-Reply-To: <20191008234505.222991-1-swboyd@chromium.org> References: <20191008234505.222991-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We'll end up with debugfs collisions if we don't give names to the regmaps created by this driver. Change the name of the config before registering it so we don't collide in debugfs. Fixes: 7f9c136216c7 ("soc: qcom: Add broadcast base for Last Level Cache Controller (LLCC)") Cc: Venkata Narendra Kumar Gutta Cc: Evan Green Signed-off-by: Stephen Boyd --- drivers/soc/qcom/llcc-slice.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/llcc-slice.c b/drivers/soc/qcom/llcc-slice.c index 9090ea12eaf3..4a6111635f82 100644 --- a/drivers/soc/qcom/llcc-slice.c +++ b/drivers/soc/qcom/llcc-slice.c @@ -48,7 +48,7 @@ static struct llcc_drv_data *drv_data = (void *) -EPROBE_DEFER; -static const struct regmap_config llcc_regmap_config = { +static struct regmap_config llcc_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, @@ -323,6 +323,7 @@ static struct regmap *qcom_llcc_init_mmio(struct platform_device *pdev, if (IS_ERR(base)) return ERR_CAST(base); + llcc_regmap_config.name = name; return devm_regmap_init_mmio(&pdev->dev, base, &llcc_regmap_config); } -- Sent by a computer through tubes