From: Christoph Hellwig <hch@infradead.org>
To: Brett Russ <russb@emc.com>
Cc: Jeff Garzik <jgarzik@pobox.com>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.13] libata: Marvell SATA support (PIO mode)
Date: Thu, 1 Sep 2005 15:40:38 +0100 [thread overview]
Message-ID: <20050901144038.GA25830@infradead.org> (raw)
In-Reply-To: <20050901142754.B93BF27137@lns1058.lss.emc.com>
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +#include <linux/pci.h>
> +#include <linux/init.h>
> +#include <linux/blkdev.h>
> +#include <linux/delay.h>
> +#include <linux/interrupt.h>
> +#include <linux/sched.h>
> +#include <linux/dma-mapping.h>
> +#include "scsi.h"
pleaese don't include "scsi.h" in new drivers. It will go away soon.
Use the <scsi/*.h> headers and get rid of usage of obsolete constucts
in your driver.
> +static inline void writelfl(unsigned long data, void __iomem *addr)
> +{
> + writel(data, addr);
> + (void) readl(addr); /* flush */
no need for the (void) case.
> +static void mv_irq_clear(struct ata_port *ap)
> +{
> + return;
> +}
no need for the return
> + return (ofs);
please remove the braces around the return value
> + if (ap &&
> + (NULL != (qc = ata_qc_from_tag(ap, ap->active_tag)))) {
> + VPRINTK("port %u IRQ found for qc, ata_status 0x%x\n",
> + port,ata_status);
> + BUG_ON(0xffU == ata_status);
> + /* mark qc status appropriately */
> + ata_qc_complete(qc, ata_status);
> + }
the formatting looks rather odd. What about;
if (ap) {
qc = ata_qc_from_tag(ap, ap->active_tag);
if (qc) {
VPRINTK("port %u IRQ found for qc, "
"ata_status 0x%x\n",
port, ata_status);
BUG_ON(0xffU == ata_status);
/* mark qc status appropriately */
ata_qc_complete(qc, ata_status);
}
}
> + err_out_hpriv:
rather odd placement of the goto labels. If you look at kernel code it's
always either not indented at all, or indented a single space.
next prev parent reply other threads:[~2005-09-01 14:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 18:36 [RFC][PATCH 2.6.13] Marvell SATA support (PIO mode) Brett Russ
2005-08-30 20:48 ` Jeff Garzik
2005-09-01 14:27 ` [PATCH 2.6.13] libata: " Brett Russ
2005-09-01 14:40 ` Christoph Hellwig [this message]
2005-09-01 19:48 ` Jeff Garzik
2005-09-01 19:58 ` Christoph Hellwig
2005-09-01 20:03 ` Jeff Garzik
2005-09-01 20:04 ` Jeff Garzik
2005-09-01 20:05 ` Christoph Hellwig
2005-09-01 20:28 ` Jeff Garzik
2005-09-01 22:26 ` Brett Russ
2005-09-02 1:32 ` Brett Russ
2005-09-02 17:16 ` Bogdan Costescu
2005-09-02 17:55 ` Ray Lee
2005-09-07 5:56 ` Jeff Garzik
2005-09-07 14:40 ` Brett Russ
2005-09-07 16:31 ` Bogdan Costescu
2005-09-03 14:08 ` Tyler
2005-09-03 17:29 ` Jeff Garzik
2005-09-27 5:36 ` Tyler
2005-08-31 10:35 ` [RFC][PATCH 2.6.13] " Jiri Slaby
2005-08-31 11:37 ` Brett Russ
-- strict thread matches above, loose matches on Subject: below --
2005-09-01 20:19 [PATCH 2.6.13] libata: " linux
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=20050901144038.GA25830@infradead.org \
--to=hch@infradead.org \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=russb@emc.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;
as well as URLs for NNTP newsgroup(s).