linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: gregkh@linuxfoundation.org (Greg KH)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/6] misc: fuse: Add efuse driver for Tegra
Date: Thu, 19 Dec 2013 09:59:31 -0800	[thread overview]
Message-ID: <20131219175931.GA18004@kroah.com> (raw)
In-Reply-To: <1387468474-26521-3-git-send-email-pdeschrijver@nvidia.com>

On Thu, Dec 19, 2013 at 05:54:30PM +0200, Peter De Schrijver wrote:
> +int tegra_fuse_sysfs(struct device *dev, int size,
> +		     u32 (*readl)(const unsigned int offset),
> +		     struct tegra_sku_info *sku_info)

Odd function name, there's no "verb" in it to give a hint as to what it
does.

> +{
> +	int err;
> +
> +	if (fuse_size)
> +		return -ENODEV;
> +
> +	fuse_bin_attr.size = size;
> +	fuse_bin_attr.read = fuse_read;
> +
> +	fuse_size = size;
> +	fuse_readl = readl;
> +
> +	err = device_create_bin_file(dev, &fuse_bin_attr);
> +	if (err)
> +		return err;
> +
> +	pr_info("Tegra Revision: %s SKU: %d CPU Process: %d Core Process: %d\n",
> +		tegra_revision_name[sku_info->revision],
> +		sku_info->sku_id, sku_info->cpu_process_id,
> +		sku_info->core_process_id);

Why pollute the kernel log with this type of thing?  Who really needs
it?

And if you really need it, please use dev_info() to properly identify
the device you are referring to.

Also, you forgot to document your new sysfs file that you created in
Documentation/ABI/ :(

thanks,

greg k-h

  reply	other threads:[~2013-12-19 17:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-19 15:54 [PATCH 0/6] efuse driver for Tegra Peter De Schrijver
2013-12-19 15:54 ` [PATCH 1/6] ARM: tegra: export apb dma readl/writel Peter De Schrijver
2013-12-19 15:54 ` [PATCH 2/6] misc: fuse: Add efuse driver for Tegra Peter De Schrijver
2013-12-19 17:59   ` Greg KH [this message]
2013-12-19 19:20     ` Stephen Warren
2013-12-19 19:43       ` Greg KH
2013-12-19 15:54 ` [PATCH 3/6] ARM: tegra: Add efuse bindings Peter De Schrijver
2013-12-19 15:54 ` [PATCH 4/6] ARM: tegra: rework fuse.c Peter De Schrijver
2014-01-02 12:37   ` Linus Walleij
2014-01-02 14:32     ` Peter De Schrijver
2014-01-02 17:03       ` Linus Walleij
2013-12-19 15:54 ` [PATCH 5/6] ARM: Tegra: remove speedo files Peter De Schrijver
2013-12-19 15:54 ` [PATCH 6/6] misc: enable fuse drivers Peter De Schrijver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131219175931.GA18004@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).