Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2284126imu; Thu, 29 Nov 2018 02:31:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/V2l6ms8jyFE+92VYavwm+iyK1IcH1Rz7pzH7rWqSn5YK7kk9NfGTsi6vHvHbHxDlcZaJUD X-Received: by 2002:a17:902:4c85:: with SMTP id b5mr866559ple.226.1543487470181; Thu, 29 Nov 2018 02:31:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543487470; cv=none; d=google.com; s=arc-20160816; b=heeKrATq1dYhNea0DpH+Pux1wBjarq9Lvpjjpvxs0l1AE61dTk/1DSay0Yh/04ANd+ UZcOaNjN+LkBsiT2Wsx9pkzX0lP2xSoNFBbAE3voM1U5o6qxNJQObXKL398a1F0K0SkT treH/tyqcBslbIJWIA3UPdcBhLNDBoNikRtBdvrADMA42t1v4ZZIVkSK1TrgtkktKKNm 25AznqLNJ6fAeoTVV5UC3djb2+xvBoCMFZF0asw7z6Swu6dkMVR2j73+u9y7DVgeNDlD J4k6KQ0j3N87Y5K5Fw/eWsY8aSo1S+pvRAJPHRovFvnGz4TBr7TI3SOlYOGVh0LeYSK1 Xg1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=wS8LxGxiASTGYvfUPuJ8l3uzYq51HuoVDt6GvBjoDu8=; b=ShpGd/YRqcdWU73w7S2pno+Ym3m3//ofHx4tKZdkPF7AJIm34kvi3l3P3HhLEqaK+V MFDJZnOcs1Y7SCRKK+329W3WS7EAgviyMsMacSsTHbrYkdkKY0qbxThxtVCTP1vjv39I MfO4XA3if3myniOGwn/N0LLRzrmCGfr5E1uaeZ0epSpEfl0CSmO1zKCoWrrtd4Yex+nU fY/0RJf0TRzY2pBWQUqooIg4y1Ww23AhdMcdHx8MkOmHSPrwwUsyLJoGmr7AWq3rWQ70 6uQ3JIq+T/XnIqy8YAQTNgTBRV19ZwSUeB0DR4j8qDQ+OeNkSM31BhjvrV87TqiH8zLs KEtQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y188si1913400pfb.59.2018.11.29.02.30.55; Thu, 29 Nov 2018 02:31:10 -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; 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=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728005AbeK2VdS (ORCPT + 99 others); Thu, 29 Nov 2018 16:33:18 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:60790 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726780AbeK2VdR (ORCPT ); Thu, 29 Nov 2018 16:33:17 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wATAOHmC016617; Thu, 29 Nov 2018 04:28:23 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail3.cirrus.com ([87.246.76.56]) by mx0a-001ae601.pphosted.com with ESMTP id 2p2724rx8j-1; Thu, 29 Nov 2018 04:28:22 -0600 Received: from EX17.ad.cirrus.com (ex17.ad.cirrus.com [172.20.9.81]) by mail3.cirrus.com (Postfix) with ESMTP id 46993611C8B3; Thu, 29 Nov 2018 04:31:13 -0600 (CST) 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.408.0; Thu, 29 Nov 2018 10:28:21 +0000 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id wATASLbZ028814; Thu, 29 Nov 2018 10:28:21 GMT From: Charles Keepax To: CC: , , Subject: [PATCH 0/2] Allow regulator nodes to hold their own init data Date: Thu, 29 Nov 2018 10:28:19 +0000 Message-ID: <20181129102821.18396-1-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=845 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811290091 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Unfortunately due to a rather large testing oversight on my part the recently merged Lochnagar regulator binding does not actually work. The binding looks like this: lochnagar { compatible = "cirrus,lochnagar1"; ... lochnagar-micvdd: MICVDD { compatible = "cirrus,lochnagar2-micvdd"; SYSVDD-supply = <&wallvdd>; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; lochnagar-vddcore: VDDCORE { compatible = "cirrus,lochnagar2-vddcore"; SYSVDD-supply = <&wallvdd>; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; }; }; The trouble is that each regulator node individually binds in a driver and contains the init data. The regulator core appears to require the init data to be a sub-node of the node that bound in the regulator driver. As the above binding seems reasonable I opted to try and update the core to support the current binding, although as the rest of the Lochnagar driver isn't merged yet we could still update the binding if that comes out of the review as a preferred option. Apologies for missing such a glaring issue in my testing. Thanks, Charles Charles Keepax (2): regulator: Factor out location of init data OF node regulator: Allow regulator nodes to contain their own init data drivers/regulator/of_regulator.c | 72 ++++++++++++++++++++++++---------------- 1 file changed, 43 insertions(+), 29 deletions(-) -- 2.11.0