Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp981892imu; Wed, 28 Nov 2018 02:45:10 -0800 (PST) X-Google-Smtp-Source: AJdET5fYTnsNYxpLFA7SR/tZcS9MElvBF02vzeyEn811uSX/tsqYYm+9xxnJ7anPJWVqsY4Qa3o1 X-Received: by 2002:a62:19d5:: with SMTP id 204mr37003203pfz.33.1543401910935; Wed, 28 Nov 2018 02:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543401910; cv=none; d=google.com; s=arc-20160816; b=odjuUMdjzoSlPxWlYtYqgsPmnrwY4RKMsKyJ06PLI0xx+mDivOc3EXCR13THDK3yLF n9DMFjZ34zoWutyPoId7lXsCSOXpc79O3KHqlqVR0yR/yFwsffWqTv8ThkFNs/rkPBMD ieEGf2nym2+MWXOTdNNpcmpIrGlFKqr5khc/XxusUA85gH2twm7vMhhfqXAyRu1E3WCl 9TcJ2ywcCIe/W3IRtNmx0R9jx0nOTYLJbnMXW3+wrQ9ttZIONj6O+VYYfbkaBxmNQYR9 jn+r62WXGSrPrtz/rCp4uZrQk3j+PwakPNKW+zdCd8X3N/VWf1HG0WUPBIuNY0UWMDzF R1/Q== 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 102si5908465plc.277.2018.11.28.02.44.55; Wed, 28 Nov 2018 02:45: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; 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 S1728001AbeK1VpK (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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