Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp769537ybg; Sun, 26 Jul 2020 21:46:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiqqi2z96Nlxfwt45yScqQiR0WaK7iOv4R/thcY+CHcS4iPM6RAPWtI44NDLoo73UUlTi5 X-Received: by 2002:a17:906:fc10:: with SMTP id ov16mr8024041ejb.171.1595825213494; Sun, 26 Jul 2020 21:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595825213; cv=none; d=google.com; s=arc-20160816; b=FegAw/ceyEh72/zXvQXMxZib5IaEnbO/z147eUMieb9LKotn6yZuhWWaL+SAxwxPPc 6opbdV3Ml2KpigGrV2tKc06Pl/DoYlb7Z+KYqWpzngCQ7NX3yP7I0PvF+ELzr8Ev0qBs RxJcg51+9XKpiaUd18w6qLggih55wWt03mjWpPcawcvxLptA1UZVybeRnbMfL3ItS7bB QJ5agwya7Xu9UlXIiWgzDgWzYboUmMOcAS3aB1oLmJNWHsBxP6p11Tg8vHXD5EkhPrOK INF/xCZVgtvQyGzJ8nDxz99mqhMkUKRLf5/EfHTwKGzWRV0bVFzsPy/dxOJ1nc1S1IWn iHCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O7QdtOLA5hOT5/vpkr3Bx4OHxrpk0Zt1J2O3pa2Ci3Y=; b=udli4NAM0xA10NJboiHTqcx6K+Y7MOvV8T036971r8aoSMJBYiX8fWCGbN0j62XXdo QyRtqOeapieEojs2A733qs+a6ehqrkRfDDNdXnW+tKFGWGgyksZxHgbge+l2W5kysqyW z9srk9pjOexzxdUexMUOiRdnn1zP1M+LKp4hdNd57iDMK4sp0HYjlDzOBhcFyKQ7w2cH 59NBBe7pBotDNoqEHHrTJ9SaPDEK05fx7RVKrQfRPf3HVfwcwyBrJBPgSuYOBa5BBr2/ GX5Sw4nEjCmGR38T8YIxTsRjGcUnAB8ShJTWyArUH6E0VM49hrtXwkakShvP9ZTDqQjm 8H8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DxKMTyFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si3492598edr.403.2020.07.26.21.46.31; Sun, 26 Jul 2020 21:46:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DxKMTyFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726185AbgG0Eq2 (ORCPT + 99 others); Mon, 27 Jul 2020 00:46:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:46244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgG0Eq2 (ORCPT ); Mon, 27 Jul 2020 00:46:28 -0400 Received: from Mani-XPS-13-9360 (unknown [157.46.48.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 957FB2073E; Mon, 27 Jul 2020 04:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595825187; bh=FaoNP8k6aSLsx7TpTwjKJPpQYLPjHTrsR+RxlYSUviU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DxKMTyFAiQtwVJ8+TAzrsFrS/urT4BTzQAYkttN0vO2lb6v9eml9DXxa+OimH6s4P ZrQmPSpmfk5J+mmY+BuhCpQSKoJ7Ponb9EW7asDNx4P3w5Q8K2LnLQjP7pk1qDF5s6 6YSFkrGND2zQeHtOwkqIU6ZB7lPxzIM0qddlynjM= Date: Mon, 27 Jul 2020 10:16:10 +0530 From: Manivannan Sadhasivam To: Andy Shevchenko Cc: Johan Hovold , Greg Kroah-Hartman , USB , Linux Kernel Mailing List , patong.mxl@gmail.com, Linus Walleij , Mauro Carvalho Chehab , "open list:GPIO SUBSYSTEM" Subject: Re: [RESEND PATCH v4 2/3] usb: serial: xr_serial: Add gpiochip support Message-ID: <20200727044610.GC12036@Mani-XPS-13-9360> References: <20200607162350.21297-1-mani@kernel.org> <20200607162350.21297-3-mani@kernel.org> <20200701130206.GD3334@localhost> <20200726155223.GB12036@Mani-XPS-13-9360> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 26, 2020 at 07:34:54PM +0300, Andy Shevchenko wrote: > On Sun, Jul 26, 2020 at 6:53 PM Manivannan Sadhasivam wrote: > > On Wed, Jul 01, 2020 at 03:02:06PM +0200, Johan Hovold wrote: > > > On Sun, Jun 07, 2020 at 09:53:49PM +0530, Manivannan Sadhasivam wrote: > > ... > > > > Same here. And perhaps just ignoring the pins managed by gpiolib is > > > better (cf. gpiolib and pinctrl being orthogonal). > > > > You mean, we can just make TX,RX,CTS,RTS pins controlled only by the serial > > driver and the rest only by gpiolib? > > I'm wondering if you may use mctrl_gpio_*() API instead. How? mctrl_gpio APIs are a wrapper for accessing modem control gpio pins but here we are not accessing the pins but rather exposing the pins as a gpiochip. Am I missing something? Thanks, Mani > > -- > With Best Regards, > Andy Shevchenko