Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp327515imm; Wed, 29 Aug 2018 00:44:24 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda/RRBOXQf9asNvaiKG2+im+ytvOpYTOZ4es7ZzjliRk822icHzzhC3SO3+cpxV1lefkWjv X-Received: by 2002:a63:1204:: with SMTP id h4-v6mr4713486pgl.115.1535528664770; Wed, 29 Aug 2018 00:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535528664; cv=none; d=google.com; s=arc-20160816; b=uNJxaiD9Igfyldobc9292loWU1tBSFN7KKKSsX20VVzEof5l5KUdrrLurx30YIx+zt ESEgzzLe16RAk3c9HNBe3v69+GCQDd4xmknBjkcJSz+bPWC50jEHg3Pn8VrUMXdFPM5M RiDDdF+c+4v2hcfT6ialTCexZiLLChRvqhSkxniI74oUp+F5A1UOXm3RQasEbIBx2JOJ OUXGrLq1quFYKR4gqh1X7PUrUNFy6Pm6+jMtL30c4UyDdWdT9eJfhrKqnGhnQCnC4LFC sVN2jK7m3E5ZXm2uLNai7rUeTHH4aSIgIhzn0eYN5KIc26GveL6jK76HBRHEfbfiBCKe zZ4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Bw4J5C+4dljYOjiVtoqxsnDzeVqB8xqjZmBgThgK4W4=; b=CWECbYqx52sbRMZ9PZOE67VawATSo8f94GmlXIEmt1wwwsdWCp55v5PRwSgAAhQExG e6+3SMonzbyRR1MTCJKtUprjrtOP3dkTBnnYb7wrzuhy/faV6/MRlfveqAblnaHKFtCr vVUZHJVDErxFm3afdssqxUQ2PE18R0IK5/pLisOQxP3iPHP/gCicS7X6FRNAQyodfoB2 EtazXJMlhKBZ/I80BhYlpg6xuL8qQhOWvVQh66/Bx4OxEGnFvqOCJDouqJmTMQdt9rqh TiVxSQyumejCBnkJO0x/FqoeSS2WCuWNHRAp5zhxG5V4xH0QUAy9WqI8mJWv4ksLGVvj +yPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fjHby0ZH; 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 a68-v6si236045pla.361.2018.08.29.00.44.09; Wed, 29 Aug 2018 00:44:24 -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; dkim=pass header.i=@linaro.org header.s=google header.b=fjHby0ZH; 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 S1727848AbeH2Lhv (ORCPT + 99 others); Wed, 29 Aug 2018 07:37:51 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:40502 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727172AbeH2Lhv (ORCPT ); Wed, 29 Aug 2018 07:37:51 -0400 Received: by mail-it0-f65.google.com with SMTP id h23-v6so6010806ita.5 for ; Wed, 29 Aug 2018 00:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Bw4J5C+4dljYOjiVtoqxsnDzeVqB8xqjZmBgThgK4W4=; b=fjHby0ZHMYwLALvh1YzUTc6aUQavBWWIo1lOCFy6kY4XviT8cgWb3hQEe3I+cS9k0C 35Kj63hr/VjQO4/emXhzAN5UaRFRsR+TTP6mvWdffOq3vP6MFynVT/f31M0lKP0My0W0 63D/1Pg0S9VStEmW8Cun8aBJrLA6icXqVDrxk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Bw4J5C+4dljYOjiVtoqxsnDzeVqB8xqjZmBgThgK4W4=; b=dPaEIBS5K6/SAH6wXX98A1uVfCNOZ1j/j/HGlDk1dD6MdDx/d1KQ2bmMuKLs1b0QXe kSf2I1bF9hFKdwFQvyhX2aiEJasrujqnsudOCvbMC2XyTxik68ovErVwBvHwzyI0CrHF voOwYuARbClZYKcXXvbe99/95pDzhAXAXa5+cN7kzkJvb1E2MBTYARtDEoHOlQBTtqsE vjk0NwbM25wkFl0qlG/AAaiO9snC39UiKBa2LlW+ZDMktkIvcEiE1n6NlhUC2ohFl5Cl 1CLPEwvgFrembMcmbPyqkk3282qT1d9N/2xsZ7Q8W5MyWY6+pDaFDJDO+jSEqxC4cWw1 SVKg== X-Gm-Message-State: APzg51ASzmOH3cqZ2IqA7aGxG9G1bD2ja7nM9Mtni7Gy6Hq/XAjVtqpT sP+oMqYUdbTJb9KmqWzpd8liFld/5fon8UxFX5MNFg== X-Received: by 2002:a02:6c45:: with SMTP id w66-v6mr4413550jab.87.1535528537586; Wed, 29 Aug 2018 00:42:17 -0700 (PDT) MIME-Version: 1.0 References: <20180816200648.90458-1-swboyd@chromium.org> <20180816200648.90458-3-swboyd@chromium.org> In-Reply-To: <20180816200648.90458-3-swboyd@chromium.org> From: Linus Walleij Date: Wed, 29 Aug 2018 09:42:05 +0200 Message-ID: Subject: Re: [PATCH v3 2/3] pinctrl: msm: Mux out gpio function with gpio_request() To: Stephen Boyd Cc: "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Doug Anderson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 16, 2018 at 10:06 PM Stephen Boyd wrote: > We rely on devices to use pinmuxing configurations in DT to select the > GPIO function (function 0) if they're going to use the gpio in GPIO > mode. Let's simplify things for driver authors by implementing > gpio_request_enable() for this pinctrl driver to mux out the GPIO > function when the gpio is use from gpiolib. > > Cc: Bjorn Andersson > Cc: Doug Anderson > Signed-off-by: Stephen Boyd Patch applied for v4.20 with Bjorn's ACK. Yours, Linus Walleij