lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130206182817.3af25596.akpm@linux-foundation.org>
Date:	Wed, 6 Feb 2013 18:28:17 -0800
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	jonghwa3.lee@...sung.com
Cc:	linux-kernel@...r.kernel.org, a.zummo@...ertech.it,
	rtc-linux@...glegroups.com
Subject: Re: [PATCH] rtc: max8997: Add driver for max8997 rtc.

On Thu, 07 Feb 2013 10:43:23 +0900 jonghwa3.lee@...sung.com wrote:

> > The best way of handling this sort of thing is for the driver to probe
> > the hardware, work out its capabilities and "do the right thing".
> > 
> > The second best way is to require that the user add certain module
> > parameters to enable the functionality.
> > 
> 
> How do we create sysfs node for enabling these options?

I suggest using module_param[_named](), so users can execute "modprobe
max8997 wtsr=1".  Or, if the driver is built into vmlinux, add
"max8997.wtsr=1" to the kernel boot command line.

Documentation/kernel-parameters.txt mentions this.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ