From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <tj@kernel.org>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>,
David Milburn <dmilburn@redhat.com>
Subject: Re: [PATCH #upstream] ahci: misc cleanups for EM stuff
Date: Mon, 11 May 2009 14:13:13 -0400 [thread overview]
Message-ID: <4A086AB9.3020002@garzik.org> (raw)
In-Reply-To: <49F642FC.1090602@kernel.org>
Tejun Heo wrote:
> Make the following EM related cleanups.
>
> * Use msleep(1) instead of udelay(100) and reduce retry count to 5.
> * s/MAX_SLOTS/EM_MAX_SLOTS/
> * s/MAX_RETRY/EM_MAX_RETRY/
>
> [ Impact: cleanup, use of longer and fewer msleep() instead of udelay() ]
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> ---
> drivers/ata/ahci.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
> index 3489085..65677b0 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -77,8 +77,8 @@ static ssize_t ahci_led_store(struct ata_port *ap, const char *buf,
> size_t size);
> static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state,
> ssize_t size);
> -#define MAX_SLOTS 8
> -#define MAX_RETRY 15
> +#define EM_MAX_SLOTS 8
> +#define EM_MAX_RETRY 5
>
> enum {
> AHCI_PCI_BAR = 5,
If you are going to change this, please move these into 'enum' where
they belong...
Jeff
next prev parent reply other threads:[~2009-05-11 18:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 23:42 [PATCH #upstream] ahci: misc cleanups for EM stuff Tejun Heo
2009-04-28 14:40 ` David Milburn
2009-05-11 18:13 ` Jeff Garzik [this message]
2009-05-12 1:57 ` [PATCH UPDATED " Tejun Heo
2009-05-20 20:12 ` Jeff Garzik
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=4A086AB9.3020002@garzik.org \
--to=jeff@garzik.org \
--cc=dmilburn@redhat.com \
--cc=linux-ide@vger.kernel.org \
--cc=tj@kernel.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 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.