Received: by 10.223.185.116 with SMTP id b49csp2626273wrg; Mon, 5 Mar 2018 06:13:58 -0800 (PST) X-Google-Smtp-Source: AG47ELvEolX+S6QK3yw8A+eDmHoHxT5JzoXSPSPhQ7jbxy2xmEWvva3sHHoy6EiuaZm+c3Rokc7x X-Received: by 2002:a17:902:b7c2:: with SMTP id v2-v6mr13155642plz.351.1520259237909; Mon, 05 Mar 2018 06:13:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259237; cv=none; d=google.com; s=arc-20160816; b=poDobAjA5KG45i0RXHYzGLjiFODqEk+6SwK3y2TMfpSRdBNKPDRHWErQsmifYqZhQX YHDFVjivpYdt5XuNgw/i7mj2Nd5ZqaBNCrM6ibYPe0cM3S85QGzMsJKvEO05fXiRqSbF ZLZHQ3RpzKHJueZBc1P8Us8v9s50TuKE12QQ4W9NUdWc1odEodJ4cFkkP0c6sOzKMxOB HpAbeYpPPQjDcqLFaLr0Kk/+92uZ3GEwEIuOlD/Ynx+xHHM5edLUHZBkJPacxyyi0KhU uuowduZ2psIZ277AjfIPK2+eJT7lGvWGsfgNvQfYoMYaXGy6lTW/elqHMR0a3iZWJm9d Zxig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=GoI/YmVuHuiATIP6/pqgnmayr5ZIgS/Nt0EzxMKajrg=; b=Bn+tU8Y4iPmx5LuugOSxJLLiLTr1FQ655siQ42mLcQni73OIMA0fALZcqO2C/LJdRv U4uJtCJ/LJ91M65O2bLJb7HC2sSlmFueFX+TDHn7rUlT7L3drqJGiLrX6vhtPLUICTrO Em6x8n4scAbS1Ji51iHTSQoyWzjCcDxsiv8ZaT4oQ6TCBKLBAKLaPlOQYD81d+sbb7A9 aouuHXzBgS6L3NWw9c6VEzlsmeEHBnZtZf1jJQ3v24wySueT1HBGNSqGG5Vxz+NN6qYt 2tvgN6GD0WhHFgIHhzhBaeNfXX2+ZiRZqWNwcrEErR7zNC8yLRH7jYC8bAs4jzoOIL5r PAfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qj4pK7zK; 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 d18si5125624pgo.209.2018.03.05.06.13.43; Mon, 05 Mar 2018 06:13:57 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Qj4pK7zK; 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 S934547AbeCEMNq (ORCPT + 99 others); Mon, 5 Mar 2018 07:13:46 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:55605 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933518AbeCEMNn (ORCPT ); Mon, 5 Mar 2018 07:13:43 -0500 Received: by mail-it0-f68.google.com with SMTP id n7so9155331ita.5 for ; Mon, 05 Mar 2018 04:13:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GoI/YmVuHuiATIP6/pqgnmayr5ZIgS/Nt0EzxMKajrg=; b=Qj4pK7zKEsHa6LD3eitmuac//AAo9bqRFa2mz7Cex1oHv6WLXzKp2d8n/let3XhtUs xvBUSPXOg1fGZmdlGQD/K3GpwiK9Nh4wVyhhn4K6QoIpywAypr0tvOTMOVJLlJLth8eA NOv5OLcLu7GG3aYXCOpB1C4sIlAclUPceDsc8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GoI/YmVuHuiATIP6/pqgnmayr5ZIgS/Nt0EzxMKajrg=; b=ruk2DHHyCrOkbt0DJjuJuaWeoXzT87x20yS+ZwXuM5IkFlEDKRB6SMgDB0Bp4iUX0T cOwu1y+4oQYS4oSme/mzx6fFzzp77UUt1b8RD0gCr1bDMh56Y+aHc+Y0K+puFbZahA9T zg3CzEyTNrWzmw0/imC6Wf52J8ut1DyN3yE4Llb52UlM1PB8Tt6gzM5TIJ7R+Pzew1uv vBgJsQx4ikufAUpLnV82MOqc0Xvi3rsT/rhdxG2MQPaUwsSYeuZ1s2X1Ugm0MZ7O8Jwy pNBp+vBK+ov7tJvCpd0t5WFkd34AhN1O6H8pQyq0HXZSe8drdyEMnH9ntTZw6YwnY7Kv JXvg== X-Gm-Message-State: AElRT7HHTrUq3CEBKeHrSadMeiyHU6UmhBds+rv1wHlaDSmeJd6xex22 CCCdyViVDO68iGdCeUEgPWbVUI+D/nCzGc+pPNh5QA== X-Received: by 10.36.73.95 with SMTP id z92mr13883775ita.38.1520252022373; Mon, 05 Mar 2018 04:13:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.91.10 with HTTP; Mon, 5 Mar 2018 04:13:41 -0800 (PST) In-Reply-To: <1520242120-2924-1-git-send-email-harish_kandiga@mentor.com> References: <1520242120-2924-1-git-send-email-harish_kandiga@mentor.com> From: Ulf Hansson Date: Mon, 5 Mar 2018 13:13:41 +0100 Message-ID: Subject: Re: [PATCH v3] mmc: Export host capabilities to debugfs. To: Harish Jenny K N Cc: Linus Walleij , Adrian Hunter , Shawn Lin , avri.altman@wdc.com, Andy Shevchenko , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Vladimir Zapolskiy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5 March 2018 at 10:28, Harish Jenny K N wrote: > From: Abbas Raza > > This patch exports the host capabilities to debugfs > > Signed-off-by: Abbas Raza > Signed-off-by: Andrew Gabbasov > Signed-off-by: Harish Jenny K N > --- > > Changes in v3: > - Removed typecasting of &host->caps to (u32 *) > > Changes in v2: > - Changed Author > > drivers/mmc/core/debugfs.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c > index c51e0c0..570c9e4 100644 > --- a/drivers/mmc/core/debugfs.c > +++ b/drivers/mmc/core/debugfs.c > @@ -289,6 +289,9 @@ void mmc_add_card_debugfs(struct mmc_card *card) > > card->debugfs_root = root; > > + if (!debugfs_create_x32("host_caps", S_IRUSR, root, &host->caps)) > + goto err; > + This isn't the correct place to created the node(s). Please move this to mmc_add_host_debugfs(). Moreover, I suggest you export both caps and caps2 in the same change, there is no need to have two changes for that - and finally name the nodes to "caps" and "caps2". > if (!debugfs_create_x32("state", S_IRUSR, root, &card->state)) > goto err; > > -- > 1.9.1 > Kind regards Uffe