linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] [LibATA] sata_mv: Remove dumplicated host template
@ 2007-12-16 14:11 Saeed Bishara
  2007-12-18 21:48 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Saeed Bishara @ 2007-12-16 14:11 UTC (permalink / raw)
  To: linux-ide; +Cc: saeed.bishara, htejun, liml, Saeed Bishara

The mv5_sht and mv6_sht structures are identical. This patch removes one of
those structures and renames the other to mv_sht.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
---
 drivers/ata/sata_mv.c |   22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 8d864e5..4076194 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -452,25 +452,7 @@ static void mv_reset_pci_bus(struct pci_dev *pdev, void __iomem *mmio);
 static void mv_channel_reset(struct mv_host_priv *hpriv, void __iomem *mmio,
 			     unsigned int port_no);
 
-static struct scsi_host_template mv5_sht = {
-	.module			= THIS_MODULE,
-	.name			= DRV_NAME,
-	.ioctl			= ata_scsi_ioctl,
-	.queuecommand		= ata_scsi_queuecmd,
-	.can_queue		= ATA_DEF_QUEUE,
-	.this_id		= ATA_SHT_THIS_ID,
-	.sg_tablesize		= MV_MAX_SG_CT / 2,
-	.cmd_per_lun		= ATA_SHT_CMD_PER_LUN,
-	.emulated		= ATA_SHT_EMULATED,
-	.use_clustering		= 1,
-	.proc_name		= DRV_NAME,
-	.dma_boundary		= MV_DMA_BOUNDARY,
-	.slave_configure	= ata_scsi_slave_config,
-	.slave_destroy		= ata_scsi_slave_destroy,
-	.bios_param		= ata_std_bios_param,
-};
-
-static struct scsi_host_template mv6_sht = {
+static struct scsi_host_template mv_sht = {
 	.module			= THIS_MODULE,
 	.name			= DRV_NAME,
 	.ioctl			= ata_scsi_ioctl,
@@ -2740,7 +2722,7 @@ static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	pci_set_master(pdev);
 	pci_try_set_mwi(pdev);
 	return ata_host_activate(host, pdev->irq, mv_interrupt, IRQF_SHARED,
-				 IS_GEN_I(hpriv) ? &mv5_sht : &mv6_sht);
+				 &mv_sht);
 }
 
 static int __init mv_init(void)
-- 
1.5.0.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] [LibATA] sata_mv: Remove dumplicated host template
  2007-12-16 14:11 [PATCH 1/1] [LibATA] sata_mv: Remove dumplicated host template Saeed Bishara
@ 2007-12-18 21:48 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-12-18 21:48 UTC (permalink / raw)
  To: Saeed Bishara; +Cc: linux-ide, saeed.bishara, htejun, liml

Saeed Bishara wrote:
> The mv5_sht and mv6_sht structures are identical. This patch removes one of
> those structures and renames the other to mv_sht.
> 
> Signed-off-by: Saeed Bishara <saeed@marvell.com>
> ---
>  drivers/ata/sata_mv.c |   22 ++--------------------
>  1 files changed, 2 insertions(+), 20 deletions(-)

Quite true -- but we must re-add mv6_sht once NCQ support is added. 
Therefore I'll drop this patch for now.

Mark Lord is working on this (at the behest of Marvell, I believe).  I 
also created a preliminary NON-WORKING implementation of NCQ that I made 
available to Mark as a starting point:

Branch 'mv-ncq' of
git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git

If nothing happens in six months, we can revisit your patch :)

Regards,

	Jeff




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-18 21:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-16 14:11 [PATCH 1/1] [LibATA] sata_mv: Remove dumplicated host template Saeed Bishara
2007-12-18 21:48 ` Jeff Garzik

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).