Received: by 10.192.165.156 with SMTP id m28csp1392791imm; Wed, 18 Apr 2018 08:58:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4//qqI1O618Uv1glXj/87L8VxAEQ5a3oZUiwOsidlM8ur+q+YbQZ4mwWUFkoNcLAKcA6fbG X-Received: by 10.98.222.198 with SMTP id h189mr2470357pfg.143.1524067131437; Wed, 18 Apr 2018 08:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524067131; cv=none; d=google.com; s=arc-20160816; b=uUG0Bfb6g+ue8zNLOhRCaKT6lNy4MW3cR2xCHyXqYo3UD+DwfMje/E2yKLMFk3pZ9A OA474gbWYcqYP8sa4BVRvj3Vd9bVV2llXO5m/U4UhPo6i5wtlvNLKlIjise0wVfDjMpr xIOLvGi9eK1GamOcR5MAXyMJcpNub5KU/Uk0YmQ1Umzd1TbS8kpogMH+UkisRLnwI95O XWhbaml1LXzZaEi+sJvWGb2cx9KKtsLw/Vy6u9oTOMoXZ2tuFCJcTlRB/Erzu20yzJux wTOzrlFYxApfJwTy3DfHQX35LFQgtpWI8b5iTqYsJi0eYqRVmpmsv0SYVdf7dQztK553 SQyQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=r3je0JNM18hgyVCO4bmSwwlhFvrcqHVnnzQFFsiuSmY=; b=vhZdFJ3Mn7p1QxQzgO41iWlkKSKwj6TltXEzyRYJl0DWhw11bxckth0wjxfRhxXT0w XvU+DW6lNrjBAPqBB41Vp1W9G9XiXB4PqUDzEWn6bjT+ywjnd/rM6QcUAzRZx+QWQWlz SmXdch7WIWmboseEeGwiwz3bZVQlW5Fk8rXJVdPRL6Qw+Kb1soTvvZpVVXxajYb5e3A5 CXEJtVbtoZAH24mskgqqcVYNLKPVmi+NOdfpTrPK5qMY5YRb4/DOhAt0CGJKzxV2Hdji JT9iSjHRqE4OzCDJgm3RpjNY7cwHIY4J71SkFWGJTjwCocU6jFlF50lMoOO3tcVwg6rb bx3A== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 206si1360302pfy.4.2018.04.18.08.58.37; Wed, 18 Apr 2018 08:58:51 -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 S1752762AbeDRP50 (ORCPT + 99 others); Wed, 18 Apr 2018 11:57:26 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:39764 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750872AbeDRP5Y (ORCPT ); Wed, 18 Apr 2018 11:57:24 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3IFuhvb020888; Wed, 18 Apr 2018 10:57:17 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=rf@opensource.cirrus.com Received: from mail4.cirrus.com ([87.246.98.35]) by mx0a-001ae601.pphosted.com with ESMTP id 2hds0yh7e6-2; Wed, 18 Apr 2018 10:57:14 -0500 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail4.cirrus.com (Postfix) with ESMTP id DD27D635BB31; Tue, 17 Apr 2018 03:52:07 -0500 (CDT) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.301.0; Tue, 17 Apr 2018 09:50:22 +0100 Received: from [198.90.251.121] (edi-sw-dsktp006.ad.cirrus.com [198.90.251.121]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id w3H8oLk5029003; Tue, 17 Apr 2018 09:50:21 +0100 Subject: Re: [REGRESSION][BISECTED] i.MX6 pinctrl hogs stopped working To: =?UTF-8?Q?Mika_Penttil=c3=a4?= , References: <8b07e30a-7dd1-7923-dc50-b84f0e43e9e9@nextfour.com> <1d3c6099-3b33-d5dd-e12b-903586dc79f3@opensource.cirrus.com> <950ec4db-4121-2faf-b6fd-5fcabef91e90@nextfour.com> CC: LKML , , From: Richard Fitzgerald Message-ID: <88a3855d-db5f-9086-2901-2360d0cd26ec@opensource.cirrus.com> Date: Tue, 17 Apr 2018 09:50:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <950ec4db-4121-2faf-b6fd-5fcabef91e90@nextfour.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804180143 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/18 19:33, Mika Penttilä wrote: > > > On 10.04.2018 13:21, Richard Fitzgerald wrote: >> On 04/04/18 06:33, Mika Penttilä wrote: >>> Hi! >>> >>> Reverting this made the hogs on a i.MX6 board work again. : >>> >>> >>> commit b89405b6102fcc3746f43697b826028caa94c823 >>> Author: Richard Fitzgerald >>> Date:   Wed Feb 28 15:53:06 2018 +0000 >>> >>>      pinctrl: devicetree: Fix dt_to_map_one_config handling of hogs >>> >>> >>> >>> --Mika >>> >> >> I think you should check whether the bug is with the i.MX6 driver >> relying on the previous buggy behaviour of pinctrl. I haven't got >> i.MX6 hardware to test myself. >> >> The bug I fixed in that patch was that when pinctrl is probing a >> pinctrl driver it would try to apply all the pinctrl settings >> listed in a dt node to the pinctrl driver it is probing instead >> of the pinctrl drivers they actually refer to. This was a bug >> introduced by an earlier patch (which unfortunately I forgot to >> include a fixes line reference to) >> >>   pinctrl: core: Use delayed work for hogs >> >> So if a pinctrl driver "A" had a dependency on another pinctrl >> driver "B" those dependencies wouldn't be properly created because >> all the "B" pinctrl DT entries would be attempted against "A" >> instead of "B". This caused failures if a pinctrl driver had a >> dependency on another pinctrl driver, of if creating a pinctrl >> driver that is a child of an MFD and that MFD has dependencies >> on another pinctrl driver. >> > > Hard to say, but the kernel/dts has worked ok for 3+ years, from 3.17 until 4.17-rc. Nothing fancy, just normal hogs, in two groups. > Can send you relevant pieces of DT if interested. > > --Mika > Tell me where in the kernel tree the the dts files and the source for the pinctrl driver that uses them and which dts node, and I will look at what the driver is doing.