Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1518447ybp; Fri, 4 Oct 2019 16:32:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPdWWlAEmTXOjJH+nOSRF/zPNItJL9f2Ea5i/csp2MFP+Dcl8DJQYe0//X6wTRU9T+8W1p X-Received: by 2002:a17:906:4a51:: with SMTP id a17mr14593360ejv.279.1570231928021; Fri, 04 Oct 2019 16:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570231928; cv=none; d=google.com; s=arc-20160816; b=v1yq1eP41Odw6ZwsO3nWJhjwcOKnX0wdR7aaT1NFWanxekUkp5u4672G+rOOXxlXkH 0NcUufggP5M86j2GUh564eXGk3HAAULURkw9TvJsNY1mQqB/bJIbZLgMr/YpeBnBk2Ls 9+JpAigCxhBdIRpKUoyVXCntgTWT3jSbSVIk2EM+wR+kSUgOtmi8Ju4yQLrRYYEE4m9c 1Q9hDyQwyLyU2OzyNPxARMZ/SWUH6OH1SNEdJL13OYbHohQsleoUwQYNvZEzm8x3d1UL FO9uDjy/iAVJ9viHa3f4/Vv3zluH7O0wiejHUchEc8bCeXZ7fj/ilkqmqVt7mQ67fofN /rfA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Z/e8EWlo6oLC7kCwtiuv+KxxSwajNXvXX9ykyyY6BXQ=; b=hP1fa9qVDM500K4Mr/5lCFBf7m3odkfteZ2aDlJ9XEED7U5bFGyo6GgqfP5xGDJjuQ 0n5C3bzWldHC/iZf7Um9SyIikTk4mC7S3YeBMrg/4evOt3pq7lCVMLGfrfzzpItSLHOt Tdn7VpMzGenQsSNcBB1VmJXPiu9alAVwtWRt0G3zObvApFsNgrCTCmQ4P3gkvseVmwwD 0wMKxvRynchP4GZEvL/6+doz8j51LZKP69NdZRDSz0zdmkEO7fzR4KMkkX7Vu4Qg7MM8 i172B8yeoMmU3PmGYJx27VKujcAj/LvN6m82CRYBB8zMtB/RSSj8RU6fEqLmG9VnpSXu 68rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=A9cyjOZf; 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 q24si3738705ejr.128.2019.10.04.16.31.42; Fri, 04 Oct 2019 16:32:08 -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=A9cyjOZf; 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 S1731058AbfJDXbf (ORCPT + 99 others); Fri, 4 Oct 2019 19:31:35 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35907 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbfJDXbf (ORCPT ); Fri, 4 Oct 2019 19:31:35 -0400 Received: by mail-pg1-f194.google.com with SMTP id 23so4616798pgk.3 for ; Fri, 04 Oct 2019 16:31:34 -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:mime-version :content-transfer-encoding; bh=Z/e8EWlo6oLC7kCwtiuv+KxxSwajNXvXX9ykyyY6BXQ=; b=A9cyjOZfmGNJRtBUCkiBi2TuxwF55Q/M0+hqtI34DENevjHtgY9umyIm7u36Iz0j+g Lkd4Ob68hSOl0uzuZTbsgLxNwwwb9nHDqlVVzndUFWVcTvi2G8I0/p/YuMAcd79CNQWO 5SkxAMqekumVhVpWVAADypyDFqRazJQxzofpQ= 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:mime-version :content-transfer-encoding; bh=Z/e8EWlo6oLC7kCwtiuv+KxxSwajNXvXX9ykyyY6BXQ=; b=m8ACbB5FdBQg7SzgExs/Hmcf7UsKiCTWLEsXf4SIznAfpFcIvwJlxBiRAKXu1qE+r6 mLf6wBjGrb9DcmiXwF9Z50tJQgZ+tqc2hBUQoIxvUQ1TuAigtK6orICYWm4IxNhXrptP pilfXsdf8TtT+UfpBF/JXpT5BhvFw/Yrff78+QvEE3nDdfFXLihNdmt7BNED4qU5vGB5 CGr8rfYbHLWUJkGIseshUwaNIeA6OH9fBjcctiAePTHa3KyiOkzlt66TunhiIBDJ8Efy tM4MJBF3tbNMfE6clN2IoPDpZZr+NuKJsC2MjMl8zt2EuW7HCWdFSe3CW/Rd43beKbns pE9Q== X-Gm-Message-State: APjAAAVUlvjjxJuZbSH46sANWO9VqLrgu8HXqS0r9B1/ElNnLqqE05zy 4p41LBDxbwBE/Wz9UB/Z/xmcdA== X-Received: by 2002:a17:90a:8b8c:: with SMTP id z12mr20065560pjn.100.1570231894192; Fri, 04 Oct 2019 16:31:34 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id g24sm7893668pfi.81.2019.10.04.16.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 16:31:33 -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] soc: qcom: llcc: Name regmaps to avoid collisions Date: Fri, 4 Oct 2019 16:31:32 -0700 Message-Id: <20191004233132.194336-1-swboyd@chromium.org> X-Mailer: git-send-email 2.23.0.581.g78d2f28ef7-goog 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 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 Cache 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-slice.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 = (void *) -EPROBE_DEFER; -static const struct regmap_config llcc_regmap_config = { - .reg_bits = 32, - .reg_stride = 4, - .val_bits = 32, - .fast_io = 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 platform_device *pdev, { struct resource *res; void __iomem *base; + static struct regmap_config llcc_regmap_config = { + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, + .fast_io = true, + }; res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name); if (!res) @@ -323,6 +322,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