Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp750469imm; Fri, 13 Jul 2018 05:51:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfWzgjjSYHnj2Oc0plTEzNKyEDO4KHTI4lU2eKDn9ZplDoMfI0Rvw/3ZX7Nd5upuxzsyb1e X-Received: by 2002:a62:df82:: with SMTP id d2-v6mr7008986pfl.189.1531486301462; Fri, 13 Jul 2018 05:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531486301; cv=none; d=google.com; s=arc-20160816; b=hVyzXoo71kJBRWVrVzSEJLBMh+cO+v4fmjS+S3emr/Q8Svddkqy0CIjHJApPda4P9I GiDGm1uib0Ge6Wm4pIfPvO/NbG7Lt010m42B7NFc+tzhqhDtTWK3VICFHvAAHWD0xKBm 7/GL79g5G8vpH4L7HIf/OHfCRQicG8CZs7P0vvJUjMuQ4vpcNeHNa07Urrakq03rQMus aJNHRT9fjJZgXQiPd/XfgkNxiofURsojETxIYeEFKHh7zPthtIGzCpDDrXaTb1V/udsA NtsJMB3STT7ObvnMTPVX55NCrYPiXeEeThcigs4wRkSB2z2SZhZjWGQ2jb4OmaWk/Fh1 9fcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3uzWRcwi2ABW+Il4Re9dOQc2omIgYfNXOW/QjI4IlJI=; b=wlE2n6MqGORNUaf7qqrOcxnEY+LiPnYzPNYScKQrBXBf8G2MKxE4K0eJkWNIqL1x4M iyCUSt0Dt4vSn35eFOPquTSK77pwmWuPJ4dp29NyjuC/WzElRUg3B36LznQEOsSUNi0v hL1RjbuQQFLbByW1tTF4rbUgu5f2cGC6cPUkHrIbIZ46YGMIDa6HVl82hw8g+7MwGqGv dOVU9ONefzk1/Nl0s5epAnEJloMLozqtoGMIF9De1R23MC7QHAdB31HI82MvMTpV8dwu WXzBfzyPZe1uTJbSjulJM0Y2GQL5tBZl1DZJz+sbnhrawVs5Odsm+swXEw/nz0umG1nj rfIw== 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 r28-v6si23412223pgk.458.2018.07.13.05.51.26; Fri, 13 Jul 2018 05:51:41 -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 S1729685AbeGMNEs (ORCPT + 99 others); Fri, 13 Jul 2018 09:04:48 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:52455 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728140AbeGMNEs (ORCPT ); Fri, 13 Jul 2018 09:04:48 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdxWU-0003do-Vr; Fri, 13 Jul 2018 14:50:10 +0200 Received: from mfe by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1fdxWT-0007XD-TE; Fri, 13 Jul 2018 14:50:09 +0200 From: Marco Felsch To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: fabio.estevam@nxp.com, Anson.Huang@nxp.com, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Re-Enable support to disable switch regulators Date: Fri, 13 Jul 2018 14:50:00 +0200 Message-Id: <20180713125002.24331-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.18.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Anson had added the support to disable the switched regulators, but there were regressions [1] with old dtb's, so the commit was reverted [2]. At all, the support to disable the switch regulators seems to me to be a good feature. But we have to add a special dt-property to avoid regressions with older kernels. The property allows the user to decide if the switch regulators should be disabled or not. Since the revert patch is on Marks regulator repo, my patches are based on his repo too. Each commit has a changelog, so I ommit it here. I tested it on a custom board. Used Kernel: Repo: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git Branch: regulator/for-4.19 Regards, Marco [1] https://patchwork.kernel.org/patch/10490381/ [2] https://patchwork.kernel.org/patch/10500333/ Marco Felsch (3): dt-bindings: pfuze100: add optional disable switch-regulators binding regulator: pfuze100: add support to en-/disable switch regulators .../bindings/regulator/pfuze100.txt | 11 ++++++ drivers/regulator/core.c | 2 ++ drivers/regulator/pfuze100-regulator.c | 36 +++++++++++++++++++ 3 files changed, 49 insertions(+) -- 2.18.0