From patchwork Tue Mar 29 19:41:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 104970 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2210228lbc; Tue, 29 Mar 2016 12:42:13 -0700 (PDT) X-Received: by 10.98.93.12 with SMTP id r12mr6362913pfb.64.1459280533347; Tue, 29 Mar 2016 12:42:13 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dd5si394230pad.117.2016.03.29.12.42.13; Tue, 29 Mar 2016 12:42:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757947AbcC2TmL (ORCPT + 29 others); Tue, 29 Mar 2016 15:42:11 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:53054 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757566AbcC2TmJ (ORCPT ); Tue, 29 Mar 2016 15:42:09 -0400 Received: from [64.55.107.4] (helo=finisterre) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1akzWd-0003Tg-Av; Tue, 29 Mar 2016 19:42:03 +0000 Received: from broonie by finisterre with local (Exim 4.87) (envelope-from ) id 1akzWa-0000H0-UZ; Tue, 29 Mar 2016 12:42:00 -0700 From: Mark Brown To: Alexander Stein Cc: linux-kernel@vger.kernel.org, Mark Brown Date: Tue, 29 Mar 2016 12:41:54 -0700 Message-Id: <1459280515-1006-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.8.0.rc3 X-SA-Exim-Connect-IP: 64.55.107.4 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mezzanine.sirena.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Subject: [PATCH 1/2] regmap: Fix implicit inclusion of device.h X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org internal.h is using dev_name() but doesn't include device.h which defines it. Add an explicit include to avoid build problems due to this. Signed-off-by: Mark Brown --- drivers/base/regmap/internal.h | 1 + 1 file changed, 1 insertion(+) -- 2.8.0.rc3 diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 5c79526245c2..a0380338946a 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -13,6 +13,7 @@ #ifndef _REGMAP_INTERNAL_H #define _REGMAP_INTERNAL_H +#include #include #include #include From patchwork Tue Mar 29 19:41:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 104969 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2210311lbc; Tue, 29 Mar 2016 12:42:25 -0700 (PDT) X-Received: by 10.98.33.74 with SMTP id h71mr6206016pfh.157.1459280545170; Tue, 29 Mar 2016 12:42:25 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n76si402486pfa.84.2016.03.29.12.42.24; Tue, 29 Mar 2016 12:42:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758002AbcC2TmM (ORCPT + 29 others); Tue, 29 Mar 2016 15:42:12 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:53056 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753994AbcC2TmJ (ORCPT ); Tue, 29 Mar 2016 15:42:09 -0400 Received: from [64.55.107.4] (helo=finisterre) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1akzWd-0003Th-9j; Tue, 29 Mar 2016 19:42:04 +0000 Received: from broonie by finisterre with local (Exim 4.87) (envelope-from ) id 1akzWb-0000H2-0n; Tue, 29 Mar 2016 12:42:01 -0700 From: Mark Brown To: Alexander Stein Cc: linux-kernel@vger.kernel.org, Mark Brown Date: Tue, 29 Mar 2016 12:41:55 -0700 Message-Id: <1459280515-1006-2-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.8.0.rc3 In-Reply-To: <1459280515-1006-1-git-send-email-broonie@kernel.org> References: <1459280515-1006-1-git-send-email-broonie@kernel.org> X-SA-Exim-Connect-IP: 64.55.107.4 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mezzanine.sirena.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Subject: [PATCH 2/2] regmap: mmio: Parse endianness definitions from DT X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we changed to do formatting in the bus we now skip all the format parsing that the core does for its data marshalling code. This means that we skip the DT parsing it does which breaks some systems, we need to add an explict call in the MMIO code to do this. Reported-by: Alexander Stein Signed-off-by: Mark Brown --- Completely untested, I had been hoping you'd be able to write and test something yourself. drivers/base/regmap/regmap-mmio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.8.0.rc3 diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c index b27573c69af7..7132a662c80d 100644 --- a/drivers/base/regmap/regmap-mmio.c +++ b/drivers/base/regmap/regmap-mmio.c @@ -23,6 +23,8 @@ #include #include +#include "internal.h" + struct regmap_mmio_context { void __iomem *regs; unsigned val_bytes; @@ -245,7 +247,7 @@ static struct regmap_mmio_context *regmap_mmio_gen_context(struct device *dev, ctx->val_bytes = config->val_bits / 8; ctx->clk = ERR_PTR(-ENODEV); - switch (config->val_format_endian) { + switch (regmap_get_val_endian(dev, ®map_mmio, config)) { case REGMAP_ENDIAN_DEFAULT: case REGMAP_ENDIAN_LITTLE: #ifdef __LITTLE_ENDIAN