Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4520182imu; Mon, 12 Nov 2018 12:27:34 -0800 (PST) X-Google-Smtp-Source: AJdET5cFDOHbpLzrYO82CXt3PkOe0BpXRtbW+IwHIYreNdFSUrYPeWb+8WYhVfLYj0Nknndwxsoo X-Received: by 2002:a17:902:b592:: with SMTP id a18-v6mr2198038pls.248.1542054454315; Mon, 12 Nov 2018 12:27:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542054454; cv=none; d=google.com; s=arc-20160816; b=ILEpzw/gzZ8p+MPjP/kKJsHoeuyN6g7dn5jDU5RF1n7WwjF9z5VARVrgV/dyxGSoQc vpezZCdQjyN8GowZ9KCt8DgkHsg6WH61ZEpNw+j4EWBmoST5QVfopLHGK4tlnuu+2aWs 2pvw69RK8uLFvo5/usmmJuhiLaUu6jdGi7YJYYDJPp1X6mRXXIWspmMpdXI4gtZRiY6I ScA+/7X1vfAN8NvvuvjHBA7cSdfXl83OlcEKNChTm6ObtEJLc1d70jBaNmiqMN4JlDp5 uAKsorJzOoJhtcgPRv2HeFtwy41h2iAtxo61NHCqX6iwETo82Tj4VDfhpSTx5etpKuhK 5ujQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=jf1wzNuzV+bOfaMyZTWfvnvVRhiebj+W0LYPCEcsELo=; b=fAAy7ZSB+o+MRt+dCxJ8eCD8uMesjfJLK98hOeoDtpzRT5I+SyDYO6whokGP6YzmrX yO8EHOPtqcW95W+hKclKf5A5cRgDkydheFOpznH5yEDXl04mCoIt7YLUIC9R8lamkGTp sn+RaPyEMh8ri6p2C3yPSrsRf6kEm6IeJrFfTCHsSFpaIHHnxOy354TQy5xm0fADDD7g zdaqsIShEEfvThfcdAs2+mADyFul887+WtM5voo915oDz0poD5a2wlWfv5KC5niH/hZy qRKXuMwnhtCJ6lDr/ibtuC8oAcAlN1jCL2rIImo/cvp9VWZ5Lhel8C+DtPYDG+72NRHo CHQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=S+mqrY17; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si15893283pgq.536.2018.11.12.12.27.18; Mon, 12 Nov 2018 12:27:34 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=S+mqrY17; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730389AbeKMGVn (ORCPT + 99 others); Tue, 13 Nov 2018 01:21:43 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:36238 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbeKMGVn (ORCPT ); Tue, 13 Nov 2018 01:21:43 -0500 Received: by mail-wr1-f67.google.com with SMTP id z13-v6so10819582wrs.3; Mon, 12 Nov 2018 12:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jf1wzNuzV+bOfaMyZTWfvnvVRhiebj+W0LYPCEcsELo=; b=S+mqrY17L7ElhWba5PRQ4PsBdhCONjtGkkEQ8DxpTtOs4gFpvONPLzFIKUkQhbFn3S qI6jQ7+vxWOuI23LzewhXu57umEw9uoNURZAPKKEKzHrleMIuKF+N4jeZvjtKAkES4fv GF9K5yb0y7JaedDPpitHgRew0ZKIkCqYwXDvZzOY9QKjUEoxgKdudS3bJ09waE4+ScV6 T9wxRHMZ6svFuYTEYnX8ioAWBeZCER7up53XVs4XJ3u6j6UF38xInmxl+OKFpqVZXxeU VI/2A48wJA8N3GN7PsZnSc/ss7bvW82nL6LjRwarmrykH4nr31yPRfinqJmkBANhcgJ1 UqPQ== 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=jf1wzNuzV+bOfaMyZTWfvnvVRhiebj+W0LYPCEcsELo=; b=qfxJkHtwButifdn65k7CNDRfeGnn48/aiBYSVj242IUdKFBmo357hlfvsFtPaiep09 KYgvV+MRb785y8vAOtuui3jSWDROE0c7s3PbKktvBywp4RAZb8sfV9jQ5t5+2eRIBJrg of/rvHc4eF7ivdmSDeUvZO9bQtPBSJKeuBlw9TxPhTl06YR8piCnbWyAwVJvudSy6H26 DDuB1ERPqOGmRUyIE6fLOD7+4BQXO+TqhLn0cDWCK3mZRWqZSjDMXcdVWm7ZJYm7SS5e L+NlSTSlKhy67MS9UN8mKy0OmhDPyxAHz/i7QthPBb8EWjGdPCGZrQcb28/+t2l+WZVq 3/jg== X-Gm-Message-State: AGRZ1gICiksH1WSmFYm0JuXefSkq0c5jZ1mayd7ThF3IIv/hUxQx3/r6 XDXCB87Z4RXwVFsDEFWjYg== X-Received: by 2002:adf:bd0f:: with SMTP id j15-v6mr2233705wrh.267.1542054411402; Mon, 12 Nov 2018 12:26:51 -0800 (PST) Received: from arch.home (host86-147-12-72.range86-147.btcentralplus.com. [86.147.12.72]) by smtp.googlemail.com with ESMTPSA id x194-v6sm34948582wmd.41.2018.11.12.12.26.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 12:26:50 -0800 (PST) From: Craig Tatlor Cc: ctatlor97@gmail.com, linux-arm-msm@vger.kernel.org, Bjorn Andersson , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: sdm660: Set tile property for pingroups Date: Mon, 12 Nov 2018 20:25:53 +0000 Message-Id: <20181112202553.1410-1-ctatlor97@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This was missed when tiles support was added in a revison and causes the driver to fail to load. Fixes: 9cf0c526bc58 ("pinctrl: qcom: Add sdm660 pinctrl driver") Signed-off-by: Craig Tatlor --- drivers/pinctrl/qcom/pinctrl-sdm660.c | 28 ++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-sdm660.c b/drivers/pinctrl/qcom/pinctrl-sdm660.c index 6838b38555a1..1bfb0ae6b387 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm660.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm660.c @@ -33,7 +33,7 @@ enum { } -#define PINGROUP(id, base, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ +#define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ { \ .name = "gpio" #id, \ .pins = gpio##id##_pins, \ @@ -51,11 +51,12 @@ enum { msm_mux_##f9 \ }, \ .nfuncs = 10, \ - .ctl_reg = base + REG_SIZE * id, \ - .io_reg = base + 0x4 + REG_SIZE * id, \ - .intr_cfg_reg = base + 0x8 + REG_SIZE * id, \ - .intr_status_reg = base + 0xc + REG_SIZE * id, \ - .intr_target_reg = base + 0x8 + REG_SIZE * id, \ + .ctl_reg = REG_SIZE * id, \ + .io_reg = 0x4 + REG_SIZE * id, \ + .intr_cfg_reg = 0x8 + REG_SIZE * id, \ + .intr_status_reg = 0xc + REG_SIZE * id, \ + .intr_target_reg = 0x8 + REG_SIZE * id, \ + .tile = _tile, \ .mux_bit = 2, \ .pull_bit = 0, \ .drv_bit = 6, \ @@ -82,6 +83,7 @@ enum { .intr_cfg_reg = 0, \ .intr_status_reg = 0, \ .intr_target_reg = 0, \ + .tile = NORTH, \ .mux_bit = -1, \ .pull_bit = pull, \ .drv_bit = drv, \ @@ -1397,13 +1399,13 @@ static const struct msm_pingroup sdm660_groups[] = { PINGROUP(111, SOUTH, _, _, _, _, _, _, _, _, _), PINGROUP(112, SOUTH, _, _, _, _, _, _, _, _, _), PINGROUP(113, SOUTH, _, _, _, _, _, _, _, _, _), - SDC_QDSD_PINGROUP(sdc1_clk, 0x99a000, 13, 6), - SDC_QDSD_PINGROUP(sdc1_cmd, 0x99a000, 11, 3), - SDC_QDSD_PINGROUP(sdc1_data, 0x99a000, 9, 0), - SDC_QDSD_PINGROUP(sdc2_clk, 0x99b000, 14, 6), - SDC_QDSD_PINGROUP(sdc2_cmd, 0x99b000, 11, 3), - SDC_QDSD_PINGROUP(sdc2_data, 0x99b000, 9, 0), - SDC_QDSD_PINGROUP(sdc1_rclk, 0x99a000, 15, 0), + SDC_QDSD_PINGROUP(sdc1_clk, 0x9a000, 13, 6), + SDC_QDSD_PINGROUP(sdc1_cmd, 0x9a000, 11, 3), + SDC_QDSD_PINGROUP(sdc1_data, 0x9a000, 9, 0), + SDC_QDSD_PINGROUP(sdc2_clk, 0x9b000, 14, 6), + SDC_QDSD_PINGROUP(sdc2_cmd, 0x9b000, 11, 3), + SDC_QDSD_PINGROUP(sdc2_data, 0x9b000, 9, 0), + SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0), }; static const struct msm_pinctrl_soc_data sdm660_pinctrl = { -- 2.19.1