Received: by 10.213.65.68 with SMTP id h4csp583458imn; Thu, 22 Mar 2018 04:16:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELvi7Y147HGEv/NPzBaG7ql5ab//8QSsPAbkl636DlYmGmcKx3GSyhbXl7xtUAq3UVSJ1YV9 X-Received: by 2002:a17:902:2983:: with SMTP id h3-v6mr4167319plb.80.1521717412807; Thu, 22 Mar 2018 04:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521717412; cv=none; d=google.com; s=arc-20160816; b=GpW9jU0MIb7JXnNzyIn4Y6/SwiMFuTU6REWFskDpG6ALLu+QsHL792NgWLUKrCN8Uk 5V8uhBnP8q/PTevgbPesqA1heww/tRe7QRuemYUF6333/F62Eiq97JeBEP2C20+xtDQx MZ2/qadR8UqQZxaAVVCxaGkEzqFaXLEcTejWwmNS8K9jQvyg/1SfS2SWWqQ/aMicxK1G cdXxNgaoasI79o5t4wnSUQSEQOFya2o7knLEa2LIGKJetEf2yysx4vv6eZtlGNt9zA2M ynUyRS1GOV6JQmIWZl9A0bfIqcT+t4+IMgU3ROBmWTV2ADVS3gYh8ech7LXqkAzNHcQa HJmA== 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=seHrI/Fe/biS9Lpsna2bvtdxEwlwXfJS4wRGZNesQKc=; b=KtytWCIcoJuoF8+X4KDUO9YkeZdzcBvrFklHV6tuK3w3oYYCBp8wF1mw9t5G4Nut2+ +Q4pNhKQ9K422+wVOZGXQRAVeXTQwi2GZJtO208HqVJBbV/tTzXw5p3m6Pc2MSCGxFfn DV1NQUgZT6Yw7ginVH7TMCad9AFcpxGb7ykGVCBWKXGWW+szEv3i9lDTqco8Xg4TIhhe CTr42Y1avq+wIPiIMW5umkQ1HVRE4OIanslDjdOpVP+8fG0lGSn8xzXzsgCzqSeWTrmt Bzite7Z8wfvaTY7s0R1DFtWDDKujy0lCMba12ShP2Hg4D2A+k64t1wc/ziShzePFHoJa b4Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WZKuzdJX; 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 u6-v6si5984988pld.628.2018.03.22.04.16.38; Thu, 22 Mar 2018 04:16:52 -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=WZKuzdJX; 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 S1753699AbeCVKTz (ORCPT + 99 others); Thu, 22 Mar 2018 06:19:55 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:40902 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753248AbeCVKTq (ORCPT ); Thu, 22 Mar 2018 06:19:46 -0400 Received: by mail-io0-f194.google.com with SMTP id e79so10288467ioi.7 for ; Thu, 22 Mar 2018 03:19:46 -0700 (PDT) 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=seHrI/Fe/biS9Lpsna2bvtdxEwlwXfJS4wRGZNesQKc=; b=WZKuzdJXr4LRjSr0+qPxEAf5hBU26DfSoivskrd/d55GVkgQ3r8jfBQGqFbjSSREKP vSAzuraReUlL6B3MnBBg3JKLfkZ6rgXlyoaSf7AhSqctKHUH/aZItuSxSrE+K7uh/zB3 Kcleebf4TAaQxrjRq9gen89s3UDwHloXtOni4= 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=seHrI/Fe/biS9Lpsna2bvtdxEwlwXfJS4wRGZNesQKc=; b=TgYRa1xmDq2RpKTRvkAcKPv72k3HN6D/0EsGp1Ui5JI9NRLHxoSo+YBLrIh+8IjNRj sCBx3Wl6fVTP7qGRTWpGOn4G6fLKX1f45Hc70KU/utkFevp/BiXIaZULmIr2K+H75pL/ uV226TUoVO9JHLTE9f/+P17fDZgceLrJFfViykoz8emuUMj/AnuvMg6EU/hfaPCEUN2o BDJ0VSghHwiPhGgbc6tJm+Oe6SHgHapAP4Rs9ltXfZEpwUn5reCm6VpX0WBCNoFqt8X4 hU863DSVsckZCMnCq2HpVj6ykMVgIFCoQKIDwf4S4HoTz4+SCbUlrQU/2Yz47E2qdtse yuOQ== X-Gm-Message-State: AElRT7FbU4F02PE/DOHszV1wRQ5M+1U+kzaLKk03du7+TNqOlc0dK+fj 1rzuMHXjcJu258GeTn+Y14r57XHcDiWkHfp7AGisJQ== X-Received: by 10.107.36.204 with SMTP id k195mr24336822iok.131.1521713985973; Thu, 22 Mar 2018 03:19:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.101.23 with HTTP; Thu, 22 Mar 2018 03:19:45 -0700 (PDT) In-Reply-To: <1520257159-27699-1-git-send-email-harish_kandiga@mentor.com> References: <1520257159-27699-1-git-send-email-harish_kandiga@mentor.com> From: Ulf Hansson Date: Thu, 22 Mar 2018 11:19:45 +0100 Message-ID: Subject: Re: [PATCH v4] 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 14:39, 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 > [Harish: Added caps2, moved creation to mmc_add_host_debugfs] > Signed-off-by: Harish Jenny K N Thanks, applied for next! Kind regards Uffe > --- > > Changes in v4: > - Moved the creation of nodes to mmc_add_host_debugfs > - Exported caps2 > - Renamed host_caps to caps > > Changes in v3: > - Removed typecasting of &host->caps to (u32 *) > > Changes in v2: > - Changed Author > > drivers/mmc/core/debugfs.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c > index c51e0c0..d2275c5 100644 > --- a/drivers/mmc/core/debugfs.c > +++ b/drivers/mmc/core/debugfs.c > @@ -243,6 +243,12 @@ void mmc_add_host_debugfs(struct mmc_host *host) > if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops)) > goto err_node; > > + if (!debugfs_create_x32("caps", S_IRUSR, root, &host->caps)) > + goto err_node; > + > + if (!debugfs_create_x32("caps2", S_IRUSR, root, &host->caps2)) > + goto err_node; > + > if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host, > &mmc_clock_fops)) > goto err_node; > -- > 1.9.1 >