Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2947200imm; Fri, 20 Jul 2018 07:37:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeyRplI43qlxj870318lasLK605yw5BN9Q+hl2jwwEwKZ9grLezLP50J72GjsCK8tPgq4jQ X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr2341513plp.36.1532097423561; Fri, 20 Jul 2018 07:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532097423; cv=none; d=google.com; s=arc-20160816; b=uoPb93hKGHgErnFpAMzidvdej+//74k4POWlWsidzNSB7MiFmsRCgOnJnRitlJRPR4 DXUcU6NXjihuQzqkM0+CjQVbhZFhQ0aZFCO0QBPNBn/Cixo6DxupG8qATxjpna8UcmeV jcfnBNbiN+goOaR4CzFRCNHN9FVQlUq3y1gIqiOoseJWKAUKYNhFMQtYbzANfL4YIxbd Us35pZlit1go/3cMisjn9+7Z8noPA7yShDC93pgzugsA87rJRAR/xomEOW+PsOPpOqBm 81BEPxvZsr5ygtM/1JrVgPFuD4mTMAHwQb5nnCW0QCD8fPAAI64oeYfQOmFk2KojShgs iT3g== 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 :content-language:in-reply-to:mime-version:date:message-id:autocrypt :openpgp:references:cc:to:subject:from:dkim-signature :arc-authentication-results; bh=vCo2CycSKPTMjePF0H6YKCck5yAVrZ1XUxOgdiii/P4=; b=FTNGmtlELuABWsmokICkWLdlUlnCypQUAVSTZKBxaP9RB+9xZzaZc6g6eTOKVpOlaU xpI5N3asOovVL881PRByd0JuzDZU40fK65B344bFWKOZN/eD8BrtL/vAXTBW9cX6oIsR t6OLq67vwJCU1IjCOSUz/wXWUOB8Yeb/aXCKnrVX2wMW5p4St9X6r2hGC4u8WJ22iEej 0UdsuSpzNIEbe5p8LRUi0tJnouCdp9UPY8MvxsBQfHNt3yOM9o5zdpmnTugrOMIxgvwj Hm1+X06+AIxxBqKGcXEKHVZadjiJ7iKwKv8zR9BV5cSK+08F/xNYmDbYCcJ6/EZVEfLQ RJeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DnjDYIqr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12-v6si1756905pgv.296.2018.07.20.07.36.43; Fri, 20 Jul 2018 07:37:03 -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; dkim=pass header.i=@linaro.org header.s=google header.b=DnjDYIqr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731856AbeGTPYj (ORCPT + 99 others); Fri, 20 Jul 2018 11:24:39 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52521 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731416AbeGTPYj (ORCPT ); Fri, 20 Jul 2018 11:24:39 -0400 Received: by mail-wm0-f66.google.com with SMTP id o11-v6so9680697wmh.2 for ; Fri, 20 Jul 2018 07:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:subject:to:cc:references:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vCo2CycSKPTMjePF0H6YKCck5yAVrZ1XUxOgdiii/P4=; b=DnjDYIqr3Fg/TefSfWbgvOGd3SSu+1/cc9t0RjwnoMwmlfUkRv5GGHL6iluIbSYka4 xyNL2/GHUIG5HibtpIZpU30WTkBaZuYUujfyO4sFQpY1ucAMr/higC3gOJiW7UhUV7Jw x/bwZBKfY3KjN3W8Y8ckdwth02D/YvrcQjRFo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vCo2CycSKPTMjePF0H6YKCck5yAVrZ1XUxOgdiii/P4=; b=TU0kqIWM3KLD/9u64Uqzsd2zk2EztN7ZRC12ByCx5IOqZLY0XLdv9e+y27oc0zHBzI lKUTw4HNWr3AowL2yE+IS3846B6Md08IZVW2xRJU4ZE+7BF3bb2FRmW7Vqa7SRqC/5cR Ll7EYZEl6rwB+SsIa0gojyB2X6Sopka+ZYY+CtOUCciwdaJr8DHgkmF5MmGZ0+I4da1R YqbTlww5htyZ2SdfGpOPmbHAPe+hBEgU7LuVO9kecSBqocJiBKOYqGZF54ySSLrK/1aP lCZUAT0mTpKDGvU8mIzmiK3aFqIN8wKN/Oowq7vWnaoYdX5TeE7yLNhcaqBuoyk90zuS q9Cw== X-Gm-Message-State: AOUpUlHeGNxG+DkWX8a0TmYaPSVwD1R/YbM6+pK6GOOFj+tcV9Ar7L3a MOaDcTRFkEfPSTJ6HLiEtHgSNw== X-Received: by 2002:a1c:6d9a:: with SMTP id b26-v6mr1583625wmi.74.1532097362990; Fri, 20 Jul 2018 07:36:02 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id r185-v6sm1860848wmr.15.2018.07.20.07.36.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 07:36:02 -0700 (PDT) From: Georgi Djakov Subject: Re: [PATCH v6 3/8] interconnect: Add debugfs support To: Greg KH Cc: linux-pm@vger.kernel.org, rjw@rjwysocki.net, robh+dt@kernel.org, mturquette@baylibre.com, khilman@baylibre.com, abailon@baylibre.com, vincent.guittot@linaro.org, skannan@codeaurora.org, bjorn.andersson@linaro.org, amit.kucheria@linaro.org, seansw@qti.qualcomm.com, daidavid1@codeaurora.org, evgreen@chromium.org, mka@chromium.org, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org References: <20180709155104.25528-1-georgi.djakov@linaro.org> <20180709155104.25528-4-georgi.djakov@linaro.org> <20180715121507.GA17794@kroah.com> Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= xsFNBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2VlY2rezmqJdcK4G4Lprk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3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <3a0d35bb-f55a-28c0-f2a6-0f2b49422896@linaro.org> Date: Fri, 20 Jul 2018 17:36:00 +0300 MIME-Version: 1.0 In-Reply-To: <20180715121507.GA17794@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On 15.07.18 г. 15:15, Greg KH wrote: > On Mon, Jul 09, 2018 at 06:50:59PM +0300, Georgi Djakov wrote: >> +static int __init icc_debugfs_init(void) >> +{ >> + struct dentry *file; >> + >> + icc_debugfs_dir = debugfs_create_dir("interconnect", NULL); >> + if (!icc_debugfs_dir) { >> + pr_err("interconnect: error creating debugfs directory\n"); >> + return -ENODEV; >> + } > > You should never care about the return value of a debugfs call. Just > ignore it and move on. Ok! >> + file = debugfs_create_file("interconnect_summary", 0444, >> + icc_debugfs_dir, NULL, &icc_summary_fops); >> + if (!file) >> + return -ENODEV; > > Again, do not check this. > > Where do you remove this directory and file from the system when the > code shuts down? Will take care of this! Thanks for the feedback! Georgi