All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Jun Chen <jun.d.chen@intel.com>
Cc: serial <linux-serial@vger.kernel.org>,
	"russ.gorby" <russ.gorby@intel.com>,
	liu chuansheng <chuansheng.liu@intel.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	Bi Chao <chao.bi@intel.com>, Alan Cox <alan@linux.intel.com>
Subject: Re: [PATCH] serial: ifx6x60: Add module parameters to manage the modem status through sysfs
Date: Fri, 16 Nov 2012 04:38:06 -0800	[thread overview]
Message-ID: <20121116123806.GA9303@kroah.com> (raw)
In-Reply-To: <1353070789.24092.6.camel@chenjun-workstation>

On Fri, Nov 16, 2012 at 07:59:49AM -0500, Jun Chen wrote:
> 
> The Medfield Platform implements a recovery procedure consisting in an escalation
> from simple and light recovery procedures to stronger ones with increased visibility
> and impact to end-user.After platform find some problem from Modem,such as no response,
> platform will try do modem warm reset.If several tries failed, platform will try to
> do modem cold boot procedure.For Modem Cold Boot, AP is responsible to generate
> blob (binary object containing PIN code and other necessary information).
> Blob is stored in AP volatile memory. AP decides to read PIN code from cache instead of
> prompting end-user, and sends it to modem as if end-user had entered it.
> 
> This patch add module parameters to manage the modem status through sysfs.
> Reset_modem can be read and write by user space.When read the reset_modem,user space will
> get the mdm_reset_state which used to avoid to run twice at once.When set the reset_modem to
> IFX_COLD_RESET_REQ,modem will do cold reset, other val value will trigger modem reset.
> 
> Hangup_reasons used to give one interface to user space to know and clear the modem reset reasons.
> Now there are four reasons:SPI timeout, modem initiative reset,modem coredump,spi tranfer error.

Why are these module parameters?  Why not just "real" sysfs files
instead?  That way, if you have multiple devices in a system, it will
work properly for them.  Right now you are limited to 1 device, right?

And where have you documented these options?

thanks,

greg k-h

  reply	other threads:[~2012-11-16 12:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-16 12:59 [PATCH] serial: ifx6x60: Add module parameters to manage the modem status through sysfs Jun Chen
2012-11-16 12:38 ` Greg KH [this message]
2012-11-16 15:00   ` Alan Cox
2012-11-16 15:01     ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2012-11-07 11:06 Jun Chen
2012-11-07  8:47 ` Alan Cox
2012-11-16  0:52 ` Greg KH
2012-11-16  1:55   ` Chen, Jun D
2012-11-06  9:24 Jun Chen
2012-11-06  9:45 ` Alan Cox
2012-11-07  3:09   ` Chen, Jun D
2012-11-05 16:31 Jun Chen
2012-11-02 16:15 Jun Chen
2012-11-02 11:29 ` Alan Cox
2012-11-05  8:26   ` Chen, Jun D
2012-11-05 11:43     ` Alan Cox
2012-11-06  1:32       ` Chen, Jun D

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=20121116123806.GA9303@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=alan@linux.intel.com \
    --cc=chao.bi@intel.com \
    --cc=chuansheng.liu@intel.com \
    --cc=jun.d.chen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=russ.gorby@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.