Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Feb 2003 13:16:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Feb 2003 13:16:17 -0500 Received: from 23.1.111.219.st.excite.co.jp ([219.111.1.23]:16619 "EHLO master.hanzubon.jp") by vger.kernel.org with ESMTP id ; Tue, 11 Feb 2003 13:16:17 -0500 Date: Wed, 12 Feb 2003 03:25:58 +0900 From: ISHIKAWA Mutsumi To: jejb@steeleye.com, gibbs@scsiguy.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2.5.60 aic79xx] aic79xx build and lun detect problem fix User-Agent: Wanderlust/2.9.15 (Unchained Melody) SEMI/1.14.4 (Hosorogi) FLIM/1.14.4 (=?ISO-8859-4?Q?Kashiharajing=FE-mae?=) APEL/10.4 Emacs/21.2 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI) Organization: Yendot.org unstable guy X-CVSROOT: cvs -d :ext:cvs.hanzubon.org:/var/cvs co -r unstable HANZUBON MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Message-Id: <20030211182558.DED278DC14@master.hanzubon.jp> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1524 Lines: 41 This patch will fix two problems. fix build problem related scsi_cmnd changes http://linux.bkbits.net:8080/linux-2.5/diffs/drivers/scsi/aic7xxx/aic79xx_osm.c@1.16?nav=index.html|src/|src/drivers|src/drivers/scsi|src/drivers/scsi/aic7xxx|hist/drivers/scsi/aic7xxx/aic79xx_osm.c This change(latest aic79xx driver and scsi_cmnd changes merging) is dropped `hscb->lun = cmd->device->lun;' (in aic79xx_osm.c line 4272). This change cause lun detect problem. I believe it is still needed. --- linux-2.5/drivers/scsi/aic7xxx/aic79xx_osm.c.orig 2003-02-11 14:58:01.000000000 +0900 +++ linux-2.5/drivers/scsi/aic7xxx/aic79xx_osm.c 2003-02-11 16:08:00.000000000 +0900 @@ -1560,7 +1560,7 @@ hscb = scb->hscb; hscb->control = 0; hscb->scsiid = BUILD_SCSIID(ahd, cmd); - hscb->lun = cmd->lun; + hscb->lun = cmd->device->lun; hscb->cdb_len = 0; hscb->task_management = SIU_TASKMGMT_LUN_RESET; scb->flags |= SCB_DEVICE_RESET|SCB_RECOVERY_SCB|SCB_ACTIVE; @@ -4269,6 +4269,7 @@ */ hscb->control = 0; hscb->scsiid = BUILD_SCSIID(ahd, cmd); + hscb->lun = cmd->device->lun; scb->hscb->task_management = 0; mask = SCB_GET_TARGET_MASK(ahd, scb); -- ISHIKAWA Mutsumi , , - 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/