Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp865748ybx; Tue, 5 Nov 2019 06:48:10 -0800 (PST) X-Google-Smtp-Source: APXvYqw6QjMPfQUZJcZqFX7SaGpjSNRNRrkR/i5qqJKv6wF5w38K0SPVpaa4o2wJbdzuoWoCFLVf X-Received: by 2002:a17:906:d793:: with SMTP id pj19mr13279255ejb.303.1572965290695; Tue, 05 Nov 2019 06:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572965290; cv=none; d=google.com; s=arc-20160816; b=byPU+Xvvvyr3JZzluf6UodAUlkEIAr0uS/+AtOyzKIDUgcsBTrL4ru8yR2cr5JSRNF gQQRibe+0PLP89viDobK7DlyewrBAD9ImFon61fArRIEbzYzj82n860fXShAeEO5Hqga 85DjysSS8H/H8G8dGuBK/Tshy9c57Jozxw9sAdU+HoDX9qaXopga7+MKikAOgvzGWeO9 +1nEPiWTTBMffVO5oWAXTdEq5rjV44mXFkS0nUl2iIrCmRTXQHEkrR1LqzvlwqGF97yV epkq44hbLVY0szpiELA1l2bd3K7vzmCip2HTo65mKzdHH9IX0Bl3kDr4gRGuT1ZtR/TU 96xw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Hwi2TOZl/a134C4OTzrcV4CriTjnppMSOp3Aly7ka8c=; b=a1n5pvIq57AHg6mVagnumVNTnyF5mvle/6MUHmq7FK5Hdh715I/BSLR93hyxBuYJS4 6cwvYQ3KdXrxV58NoNKOkTK1dufiLNl+mJNiq2sVrez5AlVykrAid7NlMpo4XH2cA48f yNVDBoyDW9PoUHNNu9CCfVqGZDbuTOeKaNmSCzVAL88PyIgf/BilsxbaWHERHVyU2FrX FP1pH9g5A1fqLkoRUT0v3+mDst+ap6UFYMrmI0XIbQhkqgi2OXGbRxPsBjK96DK2epXA J8b+J50T3+iMWwUvjtvUaE1r8JmuRcwbzPoBYoMrLWFRh1F22J/OZ89tmpTEdXwaes/x 0r1Q== 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 k21si637002ejc.148.2019.11.05.06.47.47; Tue, 05 Nov 2019 06:48: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; 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 S2388746AbfKEOoY convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Nov 2019 09:44:24 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:47597 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfKEOoY (ORCPT ); Tue, 5 Nov 2019 09:44:24 -0500 Received: from xps13 (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: miquel.raynal@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 358F920000E; Tue, 5 Nov 2019 14:44:20 +0000 (UTC) Date: Tue, 5 Nov 2019 15:44:19 +0100 From: Miquel Raynal To: Andy Shevchenko Cc: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Bartosz Golaszewski , Linus Walleij , Thierry Reding , "open list:GPIO SUBSYSTEM" , linux-pwm@vger.kernel.org, Linux Kernel Mailing List , Thomas Petazzoni , Sascha Hauer Subject: Re: [PATCH] gpio: pca953x: Add Maxim MAX7313 PWM support Message-ID: <20191105154419.11e7f625@xps13> In-Reply-To: References: <20191014124803.13661-1-miquel.raynal@bootlin.com> <20191015163055.0d8f44e5@xps13> <20191104161103.64995b8a@xps13> <20191104203346.epdbzflnynh2gf3z@pengutronix.de> <20191105100157.2b6eb22b@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, Andy Shevchenko wrote on Tue, 5 Nov 2019 11:08:39 +0200: > On Tue, Nov 5, 2019 at 11:02 AM Miquel Raynal wrote: > > Andy Shevchenko wrote on Tue, 5 Nov 2019 > > 09:06:37 +0200: > > > On Mon, Nov 4, 2019 at 10:33 PM Uwe Kleine-König > > > wrote: > > > > For me it sounds more likely that PWM is a *pin function* of a pin > > > controller and actually this GPIO driver should be a pin controller > > > with corresponding function(s). > > > > > > > Ok, thanks for the input, I will address Thierry's comments and > > re-submit as a single file (same shape as in v1). > > Perhaps I have to be more clear. What I meant is that pin control > should support PWM pin function and PCA953x be converted to a pin > control + GPIO + PWM. > Above definitely is not what you did and it's not for immediate submission. Sorry for the misunderstanding, I was answering Uwe. > I really would like to hear if it makes sense. While this would probably be the nicest and cleanest solution, I don't think it is doable in a reasonable amount of time compared to the benefits. Thanks, Miquèl