From: Hannes Reinecke <hare@suse.de>
To: Christoph Hellwig <hch@infradead.org>
Cc: James Bottomley <jbottomley@parallels.com>,
Christoph Hellwig <hch@lst.de>,
Paolo Bonzini <pbonzini@redhat.com>,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
"David S. Miller" <davem@davemloft.net>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH 07/12] scsi: add 'am53c974' driver
Date: Mon, 24 Nov 2014 15:01:12 +0100 [thread overview]
Message-ID: <54733A28.3010909@suse.de> (raw)
In-Reply-To: <20141124135041.GA28523@infradead.org>
On 11/24/2014 02:50 PM, Christoph Hellwig wrote:
>> +/*
>> + * AMD am53c974 driver.
>> + * Copyright (c) 2014 Hannes Reinecke, SUSE Linux GmbH
>> + */
>
> Is there anything left from the old driver that should get credit here?
>
Hmm. I copied the EEprom handling more-or-less verbatim from the
tmscsim driver; not sure if that warrants a credit.
>> +#define PCI_ESP_GET_PRIV(esp) ((struct pci_esp_priv *) \
>> + pci_get_drvdata((struct pci_dev *) \
>> + (esp)->dev))
>
> I think an inline function would be a lot cleaner, especially as that
> should avoid all these casts.
>
Ok.
>> +#ifdef ESP_DMA_DEBUG
>> + shost_printk(KERN_INFO, esp->host, "start dma addr[%x] count[%d:%d]\n",
>> + addr, esp_count, dma_count);
>> +#endif
>
> Can you add a esp_dma_printk or similar instead of all these ifdefs?
>
Yep, I can.
>> + u8 carryFlag = 1, j = 0x80, bval;
>
> carry_flag.
>
As said, copied verbatim. Will be fixing it up.
>> + if (pci_request_regions(pdev, DRV_MODULE_NAME)) {
>
>> + if (request_irq(pdev->irq, scsi_esp_intr, IRQF_SHARED,
>> + DRV_MODULE_NAME, esp)) {
>
> Please propagate the return values from these two.
>
Ok.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-11-24 14:01 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 12:41 [PATCHv2 00/12] Re-implement am53c974 driver Hannes Reinecke
2014-11-21 12:41 ` [PATCH 01/12] esp_scsi: spellcheck 'driver' Hannes Reinecke
2014-11-21 17:42 ` David Miller
2014-11-21 12:41 ` [PATCH 02/12] esp_scsi: make number of tags configurable Hannes Reinecke
2014-11-21 17:42 ` David Miller
2014-11-21 12:41 ` [PATCH 03/12] esp_scsi: convert to dev_printk Hannes Reinecke
2014-11-21 17:43 ` David Miller
2014-11-21 12:41 ` [PATCH 04/12] esp_scsi: debug event and command Hannes Reinecke
2014-11-21 17:43 ` David Miller
2014-11-21 12:41 ` [PATCH 05/12] esp_scsi: read status registers Hannes Reinecke
2014-11-21 17:44 ` David Miller
2014-11-21 12:41 ` [PATCH 06/12] esp_scsi: use FIFO for command submission Hannes Reinecke
2014-11-21 13:09 ` Paolo Bonzini
2014-11-21 17:42 ` David Miller
2014-11-21 12:41 ` [PATCH 07/12] scsi: add 'am53c974' driver Hannes Reinecke
2014-11-24 13:36 ` Christoph Hellwig
2014-11-24 13:42 ` Paolo Bonzini
2014-11-24 13:50 ` Christoph Hellwig
2014-11-24 14:01 ` Hannes Reinecke [this message]
2014-11-21 12:41 ` [PATCH 08/12] am53c974: BLAST residual handling Hannes Reinecke
2014-11-21 13:09 ` Paolo Bonzini
2014-11-21 17:45 ` David Miller
2014-11-21 12:41 ` [PATCH 09/12] esp: correctly detect am53c974 Hannes Reinecke
2014-11-21 17:46 ` David Miller
2014-11-21 12:41 ` [PATCH 10/12] esp_scsi: let DMA driver provide a config2 value Hannes Reinecke
2014-11-21 17:47 ` David Miller
2014-11-21 12:41 ` [PATCH 11/12] esp: enable CONFIG2_FENAB for am53c974 Hannes Reinecke
2014-11-21 13:10 ` Paolo Bonzini
2014-11-21 17:47 ` David Miller
2014-11-21 12:41 ` [PATCH 12/12] Replace tmscsim by am53c974 Hannes Reinecke
2014-11-23 13:22 ` Guennadi Liakhovetski
2014-11-23 18:45 ` David Miller
2014-11-24 8:14 ` [PATCHv2 00/12] Re-implement am53c974 driver Christoph Hellwig
2014-11-24 8:23 ` Hannes Reinecke
2014-11-25 22:10 ` Guennadi Liakhovetski
-- strict thread matches above, loose matches on Subject: below --
2014-11-24 14:37 [PATCHv3 " Hannes Reinecke
2014-11-24 14:37 ` [PATCH 07/12] scsi: add 'am53c974' driver Hannes Reinecke
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=54733A28.3010909@suse.de \
--to=hare@suse.de \
--cc=davem@davemloft.net \
--cc=g.liakhovetski@gmx.de \
--cc=hch@infradead.org \
--cc=hch@lst.de \
--cc=jbottomley@parallels.com \
--cc=linux-scsi@vger.kernel.org \
--cc=pbonzini@redhat.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.