Received: by 10.223.185.116 with SMTP id b49csp2302439wrg; Sun, 4 Mar 2018 23:54:30 -0800 (PST) X-Google-Smtp-Source: AG47ELu6E8mZqWbh7nvHDrbii4PcaqebJNZ1DlULjKDtc/AzA5U96Oz2g5J9ptOMC61HlupReRpN X-Received: by 2002:a17:902:b083:: with SMTP id p3-v6mr10417192plr.314.1520236469987; Sun, 04 Mar 2018 23:54:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520236469; cv=none; d=google.com; s=arc-20160816; b=JWb7OHdOm6/vnTjPzimMgNFj/Zv31qziPGbyYxRyEcPHhDQ5VtVeriKPqXqZat+qfD xJmke+4V2s++ZFmyptiiFCmldWa4dkynkEBdCPhao+xuoJleavjqDYCI14cGR+f8BX1S xsfgd/5wos3ZYRufjOAcjkNEyuLuIzgsYaFl8ikXv+ms0FuQGYmViO949YEpqu/LiDi2 ZsvHvsx2oAcMT5MUIjSnMUe52tAzlwNQuCKAZbaiGRm6L2LMF7nW/XaqQ936RX86PPgL Y4lhZ6ljY0ASr3WUiY181hcIYIOiIOi/ZfUs0vr+3mKKQwknjQuldQpqBbuvtDjld+1Z poYA== 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 :mime-version:user-agent:date:message-id:from:references:to:subject :cc:arc-authentication-results; bh=0frQploE2OgtMz46wp/6HFZNgOfcgzKeECr1WmUYOkI=; b=lS+uFtwK7mh0VPjMJzFp3m4KiKgkGgik0DQ5eAp0cp7Vzz5FllWysCZHCVo+WMIu5D Wi6VbYhCM54Iv6UopNqQNoixHmn7nbxLXCwbEm6VFETVXdQq6QSK+RQFhiqybu8aqolh 9KBegmQORnzSRYWYDCRpw3335DTfhlqSDbhFKJ7BH9504b3V7P6/DP0eKFPIxQexUqtD oVQSDyuCvKY41Sl6ljVWB1PP4/2PEqutez1mqkTLJL96G4D2/hEEnGOzKcA3btZXfZnj fNVbzwfmDONJS8IMTvFkQ/VIkXCreb1CzdkKqxsBilvHflOVeaBuEbjKVxGrBsVhRant Inxw== 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 g66si6624274pfc.13.2018.03.04.23.54.15; Sun, 04 Mar 2018 23:54:29 -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 S933360AbeCEHwL (ORCPT + 99 others); Mon, 5 Mar 2018 02:52:11 -0500 Received: from lucky1.263xmail.com ([211.157.147.135]:37600 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752527AbeCEHwI (ORCPT ); Mon, 5 Mar 2018 02:52:08 -0500 Received: from shawn.lin?rock-chips.com (unknown [192.168.167.73]) by lucky1.263xmail.com (Postfix) with ESMTP id B6AE46D7D; Mon, 5 Mar 2018 15:51:57 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from [172.16.12.51] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 34CAC401; Mon, 5 Mar 2018 15:51:55 +0800 (CST) X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: vladimir_zapolskiy@mentor.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: lintao@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.12.51] (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 48135PJZ13; Mon, 05 Mar 2018 15:51:57 +0800 (CST) Cc: shawn.lin@rock-chips.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir_Zapolskiy@mentor.com Subject: Re: [PATCH v2] mmc: Export host capabilities to debugfs. To: Harish Jenny K N , ulf.hansson@linaro.org, linus.walleij@linaro.org, adrian.hunter@intel.com, avri.altman@wdc.com, andriy.shevchenko@linux.intel.com References: <1520223870-3471-1-git-send-email-harish_kandiga@mentor.com> From: Shawn Lin Message-ID: <40000048-4f64-792d-ba38-25a15be8569a@rock-chips.com> Date: Mon, 5 Mar 2018 15:51:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520223870-3471-1-git-send-email-harish_kandiga@mentor.com> Content-Type: text/plain; charset=gbk; 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 On 2018/3/5 12:24, 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 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..fa2df7f 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, (u32 *)&host->caps)) Perhaps you don't need cast, and '&host->caps' should be fine? And you don't need to export host->caps2? > + goto err; > + > if (!debugfs_create_x32("state", S_IRUSR, root, &card->state)) > goto err; > >