From patchwork Wed Nov 28 10:43:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 152238 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp923413ljp; Wed, 28 Nov 2018 02:43:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/WmBXoTMzh8nWk7SrvQ6cCauO2En6Edqb1I4E0Tcz4O3mPmkWQPYUhDl0ProcxBwEaqAKyw X-Received: by 2002:a63:e84c:: with SMTP id a12mr32356278pgk.241.1543401839244; Wed, 28 Nov 2018 02:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543401839; cv=none; d=google.com; s=arc-20160816; b=wTOESIsNrSoKQ3pmuZk9OE1cS29cFEtE0BUJUkjXhDCzoSEU4qqMPkJ+6xmlLBPRpm 7yncVvu0h0IL3JyxIcIzkhgGqUXJCKc5DckZ9xLw/MF0w4a6oBOd4FDy2lvJepzojHAZ i5dO1CskA7OE5ZaXeYHaAJQDWlYPDoJuScbMjlSPqq3PqXPQppMDk3ixJ3pZWH4evJzd v76qbMxnzxL3MY9WzrTXhK4ESYVvXW/7TBy/sCbiNQBLqo4v/bzPlxu4okIK7UKXciwi /QnpSuQbVqOwPY02efI+H1PpptQY++sNmIrqUlPaLxqR78lEfAhbZFhl9jd9wt4rDTs1 C78g== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=khCHgyFP1X2ZzoL2+GXUA0fcC/Uoru/eZcSqT5OOnpg=; b=eFLlR1F5mg37fSwuEYEPLyUtlRu2ZI7R/Wm/rNqNCSjbai7I9YCL0eyWdLmOQ52yUd 657Byh/+v2k/WwjXaSklySrOVOkaRPNcFowzjIbgYx+toucykTpzVUAA7MaOumbYHDem anV97PyJBXCa3aQHjPA/qc53nbzpJaaTQFp0irvDpahQ2CJ6jK6W+J4qHHVX0KzooxFV 1LQEYdZqJyNev9VdoHSpiaQSNV9O//LYy+mdsgPkSZLmRLpdXqcT8+DvioRRBIxLkdER SM7rpnEqKV21ilhrQukxS28OD6/uLl92sPYegk2AR/WhXA2tU6pylpFGMzJUCl+UqK/W oKgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aYsZ9DBC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r59-v6si7222986plb.276.2018.11.28.02.43.58; Wed, 28 Nov 2018 02:43:59 -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; dkim=pass header.i=@linaro.org header.s=google header.b=aYsZ9DBC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728013AbeK1VpK (ORCPT + 32 others); Wed, 28 Nov 2018 16:45:10 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34115 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727476AbeK1VpJ (ORCPT ); Wed, 28 Nov 2018 16:45:09 -0500 Received: by mail-lj1-f195.google.com with SMTP id u6-v6so22962044ljd.1 for ; Wed, 28 Nov 2018 02:43:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=khCHgyFP1X2ZzoL2+GXUA0fcC/Uoru/eZcSqT5OOnpg=; b=aYsZ9DBCti5k+CGJHRwNWUiMBAr/FDrzVhrkvBHGEHfLCgXhzS3wMO8NTFX0YxDN4Z CfEkzqB/NNRWDz+n3x/yfl4vNd+VIkinlvN7IZbYnYYmmWKoHycSxzrzS2UiGhSm1DIV oz48t8t/ubxeHpEsQbpWhwITRj/XrD8GGPNwA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=khCHgyFP1X2ZzoL2+GXUA0fcC/Uoru/eZcSqT5OOnpg=; b=gSKXffcYnAvc7WholgMagJo4mVopKxhK3P7aiBUrBtg/8bAo1eTJicYNlv0SX2Z+QM HRL0WQK+d/JiP3zn3WglpGuh/5cbsVxW/WZGCatpf6+us5Cefp9aukjVQyh4d7fSf9M1 U5XsVa2JH2kG63gSD9CipfjBIJZsoZhl5zfl111/k4uDg6m7aKIL/nOnhQC1hQkKTFMz F7Zssp4owj1nnbOOb/HS/3IgDoOvVDT+816fXTRP0XQpP277HVGYJaMXmjQ62pKecAPx WInRwz0s2ifBfB1ihrh4x1/+jQysCxMUUPQzo6BADGC6PUVj4YWaYl/8KAKGWGUMXTb/ PpvA== X-Gm-Message-State: AA+aEWYmj42l3dayjf/8K3rGRPbkETQfibyKw84zoz+iwQxW5PuyqvPk B26OCM71gDvn3BRFmNBNkuFQgA== X-Received: by 2002:a2e:9e95:: with SMTP id f21-v6mr22524247ljk.128.1543401835081; Wed, 28 Nov 2018 02:43:55 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id c20sm1095101lfj.67.2018.11.28.02.43.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Nov 2018 02:43:53 -0800 (PST) From: Linus Walleij To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, Charles Keepax , Bartosz Golaszewski , Linus Walleij Subject: [PATCH 00/10] Regulator ena_gpiod fixups Date: Wed, 28 Nov 2018 11:43:40 +0100 Message-Id: <20181128104350.31902-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We noticed a refcounting fight between the kernel device core devm_* and the regulator core refcounting, pertaining to enable GPIOd:s that may be shared between multiple regulators. Fix this with a series that hand it all over to the regulator core and remove any devm_* stuff pertaining to these GPIOs. This includes a patch to gpiolib to make gpiod_get_from_node() available. Just go ahead and apply this to the regulator tree. If these need to go for fixes or not is up to the regulator maintainer, but all commits have a proper Fixes: tag in case they would. I have noted in the four last commits that the gpiolib patch is a prerequisite. Linus Walleij (10): regulator: fixed: Let core handle GPIO descriptor regulator: lm363x: Let core handle GPIO descriptor regulator: lp8788-ldo: Let core handle GPIO descriptor regulator: max8952: Let core handle GPIO descriptor regulator: max8973: Let core handle GPIO descriptor gpio: Export gpiod_get_from_of_node() regulator: da9211: Let core handle GPIO descriptors regulator: max77686: Let core handle GPIO descriptor regulator: s5m8767: Let core handle GPIO descriptors regulator: tps65090: Let core handle GPIO descriptors drivers/gpio/gpiolib.h | 6 ----- drivers/regulator/da9211-regulator.c | 4 +-- drivers/regulator/fixed.c | 4 ++- drivers/regulator/lm363x-regulator.c | 8 ++++-- drivers/regulator/lp8788-ldo.c | 4 ++- drivers/regulator/max77686-regulator.c | 3 +-- drivers/regulator/max8952.c | 8 +++--- drivers/regulator/max8973-regulator.c | 12 ++++++--- drivers/regulator/s5m8767.c | 37 ++++++++++++++++++-------- drivers/regulator/tps65090-regulator.c | 10 +++---- include/linux/gpio/consumer.h | 13 +++++++++ 11 files changed, 72 insertions(+), 37 deletions(-) -- 2.19.1