Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp632158imu; Fri, 16 Nov 2018 07:52:35 -0800 (PST) X-Google-Smtp-Source: AJdET5dPU38yLsDAwF7gj44syiMG8Z/osBfdaLz1p2Kvde6/64PVcQIvSfzmWV1A9VR7g4qNiBEW X-Received: by 2002:a63:b34f:: with SMTP id x15mr10563293pgt.243.1542383555747; Fri, 16 Nov 2018 07:52:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542383555; cv=none; d=google.com; s=arc-20160816; b=i1x69jUIc9WFArPx6vk95zzpFyWnmfYFkTmpKIAj35hGg3+y98uraIO0XOslv4wze3 tsZoogcRW6EEh0i4vmpgP2K8xzuReRXm1DCGSaR/YsqDVA4maTZ3Mz+8XbXgjrKyVi9l eyrZZaxDRjIIY9I1wABbweCGCYtKttcxQQPwJAqCPXYg+qoY1/702f36j0fSOZlt+hhE WOmPMc01HtAWzD5ZzJ8F+oi63EylDDYoq/JZKrAFsDDGfYpwJOiDpLABVn29XjURBkaD kPajkHbUDwh+Ek4D1z/uzr1exUYs2anQiex3WT1/g6qoUZb2zveAwqa1EedSgO4UKVAO Kz8A== 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=o963QV0zGVG/Tpc80zlaMYudcKF40nYkD0FIZ6LJGZI=; b=MaIgSND1s8/bNXJmugKsqcSaLc2spww5e/fEd6iSOY9Em0drTKZ3EiqrMYDiBO50lD MM+aB0fdNaCkZQxeuc+PLfuAEx9msx2gKHzadeyYoUdGnod4plHmC2s2OCDJ6CouQ3cT /Gj/YxhoUTeFjBuqrCOp6f3JMzJcNnsdRzlMb2tbeE91T73uUPjf8tNURAG4ww2aW4Or 7zz9rFR2PN5ee/0in5dEWvIa2srinLBv3ZPJKKX5RRbwVeIxxGr3Qrtuelf6q2SnJyJE VVVYL6/HjsXS0BwEpIC0/e9QBYmSK7DJP2ALrNXefpM8MJL0CEW7ILulO1QsV4qEsA08 JGcg== 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 w63-v6si33749245pfb.191.2018.11.16.07.52.20; Fri, 16 Nov 2018 07:52:35 -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 S2390014AbeKQCDu convert rfc822-to-8bit (ORCPT + 99 others); Fri, 16 Nov 2018 21:03:50 -0500 Received: from smtprelay02.ispgateway.de ([80.67.18.44]:55478 "EHLO smtprelay02.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728434AbeKQCDu (ORCPT ); Fri, 16 Nov 2018 21:03:50 -0500 X-Greylist: delayed 6018 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Nov 2018 21:03:49 EST Received: from [89.1.81.74] (helo=ipc1.ka-ro) by smtprelay02.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gNcjl-0002GC-S7; Fri, 16 Nov 2018 12:56:37 +0100 Date: Fri, 16 Nov 2018 12:56:33 +0100 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Cc: Thierry Reding , =?UTF-8?B?Vm9rw6HEjQ==?= Michal , Mark Rutland , "devicetree@vger.kernel.org" , "linux-pwm@vger.kernel.org" , Lukasz Majewski , "linux-kernel@vger.kernel.org" , Rob Herring , "kernel@pengutronix.de" , Fabio Estevam , Linus Walleij Subject: Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state Message-ID: <20181116125633.4e110125@ipc1.ka-ro> In-Reply-To: <20181116103929.cxfvuc2te7cadhp2@pengutronix.de> References: <20181107150125.7cpd4v5t7yi2254c@pengutronix.de> <4fbb7307-df01-d7bd-f2e2-e05e6d17807d@ysoft.com> <20181108191855.zuon3ecv4yjfbs7g@pengutronix.de> <283cfef3-16d0-8bd4-e306-6e34d44c3a86@ysoft.com> <20181109165555.vqbiwh4hlcnozdna@pengutronix.de> <20181114113449.GB2620@ulmo> <20181114215120.vddykljqyavm64wj@pengutronix.de> <20181115152545.GA8611@ulmo> <20181115203733.qvonika6yhn2bsnb@pengutronix.de> <20181116095124.GA28631@ulmo> <20181116103929.cxfvuc2te7cadhp2@pengutronix.de> Organization: Ka-Ro electronics GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Df-Sender: bHdAa2Fyby1lbGVjdHJvbmljcy5kZQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Uwe Kleine-König wrote: > Hello Thierry, > > On Fri, Nov 16, 2018 at 10:51:24AM +0100, Thierry Reding wrote: > > On Thu, Nov 15, 2018 at 09:37:33PM +0100, Uwe Kleine-König wrote: > > > On Thu, Nov 15, 2018 at 04:25:45PM +0100, Thierry Reding wrote: [...] > > But why? The backlight doesn't care about the specific pinmuxing of the > > PWM pin. All it cares about is the PWM signal. That's the level of > > abstraction that the PWM consumer expects, anything lower level belongs > > in the PWM driver. > > The backlight driver cares about the PWM pin muxing because if it's > wrongly muxed the backlight doesn't work as intended. > With this argumentation you would also have to define the clocks needed for the PWM in the backlight (or whatever pwm consumer) driver, because if the clocks are not set up correctly the backlight won't work as expected... The PWM driver is driving the pins, so that is where the pinctrls belong. Lothar Waßmann -- ___________________________________________________________ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Geschäftsführer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info@karo-electronics.de ___________________________________________________________