From: Samuel Ortiz <sameo@linux.intel.com>
To: Saurabh Sengar <saurabh.truth@gmail.com>
Cc: lauro.venancio@openbossa.org, aloisio.almeida@openbossa.org,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RESEND PATCH] NFC: added the sysfs entry for nfcsim workqueue delay
Date: Sun, 20 Dec 2015 18:50:36 +0100 [thread overview]
Message-ID: <20151220175036.GA3938@zurbaran.home> (raw)
In-Reply-To: <1449993875-3872-1-git-send-email-saurabh.truth@gmail.com>
Hi Saurabh,
On Sun, Dec 13, 2015 at 01:34:35PM +0530, Saurabh Sengar wrote:
> added the sysfs entry for nfcsim workqueue delay, as tx_delay
>
> Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
> ---
> In case this TODO is not expected to be done, please let me know.
> I wonder after my repeated attempts since last 50 days, I am not able to get a single response.
Apologies for the delay.
> Resending this patch in hope to get some response this time.
>
> drivers/nfc/nfcsim.c | 38 +++++++++++++++++++++++++++++++++++---
> 1 file changed, 35 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c
> index 26ac9e5..e77be35 100644
> --- a/drivers/nfc/nfcsim.c
> +++ b/drivers/nfc/nfcsim.c
> @@ -32,6 +32,8 @@
> #define NFCSIM_POLL_TARGET 2
> #define NFCSIM_POLL_DUAL (NFCSIM_POLL_INITIATOR | NFCSIM_POLL_TARGET)
>
> +#define TX_DEFAULT_DELAY 5
> +
> struct nfcsim {
> struct nfc_dev *nfc_dev;
>
> @@ -62,12 +64,41 @@ static struct nfcsim *dev1;
>
> static struct workqueue_struct *wq;
>
> +
> +static int tx_delay = TX_DEFAULT_DELAY;
2 things:
- This actually defines an rx delay as it delays the start of the
receiving workqueue, so the name should be tx_*. I'm being picky here,
because with this special driver an Rx delay is implicitely a Tx
one.
- I'd prefer this to be tunable by device, so it should be defined as an
additional field in the nfcsim structure (rx_delay ?) and set by default
to RX_DEFAULT_DELAY from nfcsim_init_dev.
Cheers,
Samuel.
prev parent reply other threads:[~2015-12-20 17:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-13 8:04 [RESEND PATCH] NFC: added the sysfs entry for nfcsim workqueue delay Saurabh Sengar
2015-12-20 17:50 ` Samuel Ortiz [this message]
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=20151220175036.GA3938@zurbaran.home \
--to=sameo@linux.intel.com \
--cc=aloisio.almeida@openbossa.org \
--cc=lauro.venancio@openbossa.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=saurabh.truth@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox