Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932217AbcKIOyK (ORCPT ); Wed, 9 Nov 2016 09:54:10 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:36084 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753182AbcKIOyF (ORCPT ); Wed, 9 Nov 2016 09:54:05 -0500 From: Axel Haslam To: tony@atomide.com, haojian.zhuang@linaro.org, linus.walleij@linaro.org, khilman@baylibre.com, nsekhar@ti.com Cc: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Axel Haslam Subject: [PATCH v2 0/2] pinctrl: single: fixes for davinci Date: Wed, 9 Nov 2016 15:53:59 +0100 Message-Id: <20161109145401.25327-1-ahaslam@baylibre.com> X-Mailer: git-send-email 2.10.1.502.g6598894 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1578 Lines: 38 After recent pinctl patches we see a warning when booting davinci due to a bad memory allocation: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1 at mm/page_alloc.c:3511 __alloc_pages_nodemask+0x16c/0xb18 Modules linked in: CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.0-rc2-00023-g22d5127-dirty #1019 Hardware name: Generic DA850/OMAP-L138/AM18x Backtrace: [] (dump_backtrace) from [] (show_stack+0x18/0x1c) [] (show_stack) from [] (dump_stack+0x20/0x28) [] (dump_stack) from [] (__warn+0xe8/0x100) [] (__warn) from [] (warn_slowpath_null+0x28/0x30) [] (warn_slowpath_null) from [] (__alloc_pages_nodemask+0x16c/0xb18) [] (__alloc_pages_nodemask) from [] (kmalloc_order+0x20/0x58) [] (kmalloc_order) from [] (__kmalloc_track_caller+0x188/0x190) [] (__kmalloc_track_caller) from [] (devm_kmalloc+0x24/0x70) [] (devm_kmalloc) from [] (pcs_dt_node_to_map+0x1d0/0xa40) [] (pinctrl_dt_to_map) from [] (pinctrl_get+0xe8/0x484) [snip] This series fixes this error. Changes form v1 -> v2 * Add an error message, and correct also other places where the issue is seen * Add patch to parse for bits instead of pins Axel Haslam (2): pinctrl: single: check for any error when getting rows pinctrl: single: search for the bits property when parsing bits drivers/pinctrl/pinctrl-single.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) -- 2.10.1