[lkml]   [2011]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] ramoops: update parameters only after successful init
On Tue, 18 Oct 2011 11:01:27 -0700
Kees Cook <> wrote:

> If a platform device exists on the system, but ramoops fails to attach to
> it, the module parameters are overridden before ramoops can fall back and
> try to use passed module parameters. Move update to end of init routine.

Modifying the module paremeters in this way seems like a Wrong Thing To
Do and a rather nasty hack.

I'd have thought that /sys/module/ramoops/parameters should reflect the
options which were provided to the module and should not be modified by
the kernel behind everyone's back.

If we wish to display the configuration which the driver acquired from
the platform data then sure, add an interface to do that. But it's
wrong to go and pretend that this is what the user provided to

 \ /
  Last update: 2011-10-18 23:47    [from the cache]
©2003-2011 Jasper Spaans