Received: by 10.223.185.116 with SMTP id b49csp4890317wrg; Wed, 7 Mar 2018 02:52:11 -0800 (PST) X-Google-Smtp-Source: AG47ELtDFiYa1QQZXjBlfTp87EqkuHXKl788ZK0raMGpz0e0RTfx6QZaGTcrz3xNoqccpT/keUuP X-Received: by 2002:a17:902:4381:: with SMTP id j1-v6mr19719968pld.297.1520419931212; Wed, 07 Mar 2018 02:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520419931; cv=none; d=google.com; s=arc-20160816; b=CWkiIvPoxM0xcbeaJtoS5l3uo6LKpU9PSSfs/N+gWb8/b4UpnZ3J71aPX1qZR7LKea BWagj4u7698O912OkDRRKOQxdejnGKVz5RrauGoGV09nCq8NCGu0nKlE+kE/gyKS2MSR S28MbsbLnq6y6J5bpwxmSB2iu1+yl+rfSScUGhzkk9n7uQ6z4dxtUb1PImqR1cNQPw3L LHmQi91jvoiEhs8ot5sSCYKVVyCHYOaHPgE4XULDpwJlH0DD1QZDelmhX/qUBIUpNM/Y NCBMosxqwRzBNbYSgNyOBG0E/xeRLnvDX5+BTV8cvk3+X+8CKQLG4E4oFhsOdlm02/KM Ml1g== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:arc-authentication-results; bh=PflWlAMybEj30rd/WAdpcL8B9YA79Om9AGRU6O8SRPA=; b=u8MBY1Jjdr7vMvUm9yJiGvUcLAjLfpqUvSKE9TjbxwQ7Sb4k04ESUpWAr7ubHc5F2k uqMu905gHjN0y3wOjDVudpa6n0dYMSCXI3Xz5s7k6tmXvHlxD0S02K0tOvkZAxl4KrbK rw5+zvVUEJvqpWjAPl6xNcnW7cIWi5XgFW316xOQAhATlWYfxiRiN2+B2riq69zUhUq8 zRaFd+7kOZUHv+bJBYbcNY6YJ+lADQIvTGb90wuTeMvRDkLNbN8Wpz2Mi4XJUbx2uhTS STnPY0ca/BRzBUr5c/3eKdMuG8qTDEBa7DnMMifTMzSLflHuyYh68cGXuv4VxGR+xeO5 75ig== 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 i13si11151638pgq.508.2018.03.07.02.51.56; Wed, 07 Mar 2018 02:52:11 -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 S1754285AbeCGKua (ORCPT + 99 others); Wed, 7 Mar 2018 05:50:30 -0500 Received: from regular1.263xmail.com ([211.150.99.132]:47973 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224AbeCGKu2 (ORCPT ); Wed, 7 Mar 2018 05:50:28 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.105]) by regular1.263xmail.com (Postfix) with ESMTP id 649B893D6; Wed, 7 Mar 2018 18:50:11 +0800 (CST) X-263anti-spam: KSV:0;BIG:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ADDR-CHECKED4: 1 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from [172.16.22.73] (localhost.localdomain [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id A8E9B3A4; Wed, 7 Mar 2018 18:50:11 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: broonie@kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.22.73] (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 24662ZL7ZKU; Wed, 07 Mar 2018 18:50:13 +0800 (CST) Message-ID: <5A9FC3E0.5020600@rock-chips.com> Date: Wed, 07 Mar 2018 18:50:08 +0800 From: JeffyChen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: Mark Brown CC: linux-kernel@vger.kernel.org, Arnd Bergmann , Lee Jones Subject: Re: [PATCH v2 1/3] mfd: syscon: Set name of regmap_config References: <20180306110403.14438-1-jeffy.chen@rock-chips.com> <5A9EAC92.4050702@rock-chips.com> <20180307102006.GA7290@sirena.org.uk> In-Reply-To: <20180307102006.GA7290@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On 03/07/2018 06:20 PM, Mark Brown wrote: > On Tue, Mar 06, 2018 at 10:58:26PM +0800, JeffyChen wrote: > >> even this is already fixed by a430ab205d29 ("regmap: debugfs: Disambiguate >> dummy debugfs file name") > >> but maybe we can still have this for a better debugfs name? > > That's why the facility is there. > > Please don't top post, reply in line with needed context. This allows > readers to readily follow the flow of conversation and understand what > you are talking about and also helps ensure that everything in the > discussion is being addressed. > ok, sorry for that :) recently we are now allowing to register debugfs for syscon regmap, then i hit a lot of: (NULL device *): Failed to create debugfs directory so i sent this patch to fix that by using the of_node name to create debugfs. but later i found we have: commit a430ab205d29e7d1537b220fcf989b8080d8267f Author: Fabio Estevam Date: Mon Mar 5 15:52:09 2018 -0300 regmap: debugfs: Disambiguate dummy debugfs file name which would fix that in another way by naming dummy0, dummy1, dummy2. even if the issue is fixed, i wonder could we still have this patch to make it more readable: +++ b/drivers/mfd/syscon.c @@ -109,6 +109,7 @@ static struct syscon *of_syscon_register(struct device_node *np) syscon_config.reg_stride = reg_io_width; syscon_config.val_bits = reg_io_width * 8; syscon_config.max_register = resource_size(&res) - reg_io_width; + syscon_config.name = of_node_full_name(np); and i've sent 2 more patches to fix the memleak there: https://patchwork.kernel.org/patch/10261409 https://patchwork.kernel.org/patch/10261411 and sorry again, i forgot to add a cover letter, and i should CC you the whole series.