From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932657AbbKRIqZ (ORCPT ); Wed, 18 Nov 2015 03:46:25 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:43824 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932099AbbKRIqR (ORCPT ); Wed, 18 Nov 2015 03:46:17 -0500 Message-Id: <20151118083455.601781406@telegraphics.com.au> User-Agent: quilt/0.50-1 Date: Wed, 18 Nov 2015 19:34:56 +1100 From: Finn Thain To: "James E.J. Bottomley" , Michael Schmitz , , , Subject: [PATCH 01/71] atari_scsi: Fix SCSI host ID setting References: <20151118083455.331768508@telegraphics.com.au> Content-Disposition: inline; filename=atari_scsi-fix-host-id Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The NVRAM location of this byte is 16, as documented in http://toshyp.atari.org/en/004009.html This was confirmed by Michael Schmitz, by setting the SCSI host ID under EmuTOS and then checking the value in /proc/driver/nvram and /dev/nvram under Linux. Signed-off-by: Finn Thain --- drivers/scsi/atari_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/drivers/scsi/atari_scsi.c =================================================================== --- linux.orig/drivers/scsi/atari_scsi.c 2015-11-18 19:25:56.000000000 +1100 +++ linux/drivers/scsi/atari_scsi.c 2015-11-18 19:32:58.000000000 +1100 @@ -880,7 +880,7 @@ static int __init atari_scsi_probe(struc } else { /* Test if a host id is set in the NVRam */ if (ATARIHW_PRESENT(TT_CLK) && nvram_check_checksum()) { - unsigned char b = nvram_read_byte(14); + unsigned char b = nvram_read_byte(16); /* Arbitration enabled? (for TOS) * If yes, use configured host ID