Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp715417imm; Thu, 13 Sep 2018 06:44:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZkglbrPZUuB/sdWGsQxbUSc2P95HSup/2gN1ignWQG1e+kAEMg3OBuIhP/JMSI0+FECe0t X-Received: by 2002:a17:902:a413:: with SMTP id p19-v6mr7425330plq.220.1536846246722; Thu, 13 Sep 2018 06:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846246; cv=none; d=google.com; s=arc-20160816; b=HtBUOYYvrZ08ISTYPa3Z3T//Bx4xL7XGt8EcGolaRliPFymZ9ce5S47Whyj/jyUA2+ bvcobF995cW3t5sCGP7yGYu/YoxWuwszQpoYo+FgYIUgMxh65bkRxP7/aEwQSxKS0s5m Z0CMEjWV7ToMIoKSwLrFjNs5TAJGKlPxrWKwNevJYUSv8DNVB3s5tJHPHtbgjrio9v6c V7jyCs4gn4M+9EEnj2C4KgR1+LDDFey+QOakjLJStj0KCNwBRl8Ng7RH1dXB+OTCPigu AArhiwle+K08LcKVzyEoZ4O1bZ4JTgmTELzJffXohfWCyLkMm6eYbbaMclcFMk8ucczg Vfow== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=TsfHijopSY69Hvh0Il84gmh8xpbKrcXz+OdG0ae2TMI=; b=WtsrkNs7m5JlLGjs0X0WzUW/lzzCIo4C5vFuHmGDB6KLjNKjt9cLNse8GKjRnBZ+4h ypbyfYycayetmM5ZQrVvzTvqI3MulgFklUtfvdf6u+SpxaR9BxzX7721Y7uYaGv7DF0D Uy3c28nU0f/VJ6CRKFBb/CoBq4VH7CMCXUxyW8o6j5TUZ5YujZ3hKBjKiYfrQ+qwxzwf M2hWSlbzeKrEU8+BjIC6o+KppKGXkQMpiurRRR1rAuMDXGLld9G+yjHkQNYVY78CkEUw rcThS5wgIX1xCZR8kZVsG63c5nn4Ddkv5L3+AOZLepdeqjfJbJasfwhqvpw0Rd/jUuIQ UVfg== 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 x26-v6si4060429pfn.286.2018.09.13.06.43.51; Thu, 13 Sep 2018 06:44:06 -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; 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 S1729518AbeIMSwz (ORCPT + 99 others); Thu, 13 Sep 2018 14:52:55 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60328 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729160AbeIMSwy (ORCPT ); Thu, 13 Sep 2018 14:52:54 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4D011D10; Thu, 13 Sep 2018 13:43:22 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerome Brunet , Neil Armstrong , Thierry Reding , Sasha Levin Subject: [PATCH 4.14 034/115] pwm: meson: Fix mux clock names Date: Thu, 13 Sep 2018 15:30:54 +0200 Message-Id: <20180913131825.796029623@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131823.327472833@linuxfoundation.org> References: <20180913131823.327472833@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jerome Brunet [ Upstream commit b96e9eb62841c519ba1db32d036628be3cdef91f ] Current clock name looks like this: /soc/bus@ffd00000/pwm@1b000#mux0 This is bad because CCF uses the clock to create a directory in clk debugfs. With such name, the directory creation (silently) fails and the debugfs entry end up being created at the debugfs root. With this change, the clock name will now be: ffd1b000.pwm#mux0 This matches the clock naming scheme used in the ethernet and mmc driver. It also fixes the problem with debugfs. Fixes: 36af66a79056 ("pwm: Convert to using %pOF instead of full_name") Signed-off-by: Jerome Brunet Acked-by: Neil Armstrong Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/pwm/pwm-meson.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -432,7 +432,6 @@ static int meson_pwm_init_channels(struc struct meson_pwm_channel *channels) { struct device *dev = meson->chip.dev; - struct device_node *np = dev->of_node; struct clk_init_data init; unsigned int i; char name[255]; @@ -441,7 +440,7 @@ static int meson_pwm_init_channels(struc for (i = 0; i < meson->chip.npwm; i++) { struct meson_pwm_channel *channel = &channels[i]; - snprintf(name, sizeof(name), "%pOF#mux%u", np, i); + snprintf(name, sizeof(name), "%s#mux%u", dev_name(dev), i); init.name = name; init.ops = &clk_mux_ops;