Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1276255
| From | Ching Huang <ching2048@areca.com.tw> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] arcmsr: adds code for support areca new adapter ARC1203 |
| Date | 2015-11-24 11:00 +0100 |
| Message-ID | <qyiyf-6qf-39@gated-at.bofh.it> (permalink) |
| References | <qygZs-5z4-23@gated-at.bofh.it> <qyieU-6jd-69@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2015-11-24 at 01:33 -0800, Joe Perches wrote:
> On Tue, 2015-11-24 at 16:17 +0800, Ching Huang wrote:
> > From: Ching Huang <ching2048@areca.com.tw>
> >
> > Support areca new PCIe to SATA RAID adapter ARC1203
>
> Why add the dma_free_coherent to an old data path?
> Is that a general bug fix that should be backported?
That's right. It's need to release the allocated resource for failed condition.
>
> btw: the printk above the dma_free_coherent use
> shouldn't use a \ line continuation.
> it adds undesired whitespace to the format.
>
> > diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
> []
> > @@ -2660,10 +2670,19 @@ static bool arcmsr_hbaB_get_config(struc
> > iop_firm_version = (char __iomem *)(®->message_rwbuffer[17]);> > /*firm_version,17,68-83*/
> > iop_device_map = (char __iomem *)(®->message_rwbuffer[21]);> > /*firm_version,21,84-99*/
> >
> > + arcmsr_wait_firmware_ready(acb);
> > + writel(ARCMSR_MESSAGE_START_DRIVER_MODE, reg->drv2iop_doorbell);
> > + if (!arcmsr_hbaB_wait_msgint_ready(acb)) {
> > + printk(KERN_ERR "arcmsr%d: can't set driver mode.\n", acb->host->host_no);
> > + goto gcfg1;
> > + }
> > writel(ARCMSR_MESSAGE_GET_CONFIG, reg->drv2iop_doorbell);
> > if (!arcmsr_hbaB_wait_msgint_ready(acb)) {
> > printk(KERN_NOTICE "arcmsr%d: wait 'get adapter firmware \
> > miscellaneous data' timeout \n", acb->host->host_no);
> > +gcfg1:
> > + dma_free_coherent(&acb->pdev->dev, acb->roundup_ccbsize,
> > + acb->dma_coherent2, acb->dma_coherent_handle2);
> > return false;
> > }
> > count = 8;
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/2] arcmsr: adds code for support areca new adapter ARC1203 Ching Huang <ching2048@areca.com.tw> - 2015-11-24 09:20 +0100
Re: [PATCH 2/2] arcmsr: adds code for support areca new adapter ARC1203 Joe Perches <joe@perches.com> - 2015-11-24 10:40 +0100
Re: [PATCH 2/2] arcmsr: adds code for support areca new adapter ARC1203 Ching Huang <ching2048@areca.com.tw> - 2015-11-24 11:00 +0100
Re: [PATCH 2/2] arcmsr: adds code for support areca new adapter ARC1203 Joe Perches <joe@perches.com> - 2015-11-24 11:30 +0100
Re: [PATCH 2/2] arcmsr: adds code for support areca new adapter ARC1203 Ching Huang <ching2048@areca.com.tw> - 2015-11-24 12:30 +0100
csiph-web