From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 19 06:10:19 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EC3316A4E0 for ; Wed, 19 Jul 2006 06:10:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04EDE43D53 for ; Wed, 19 Jul 2006 06:10:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6J6AHkF012506 for ; Wed, 19 Jul 2006 06:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6J6AHZ4012505; Wed, 19 Jul 2006 06:10:17 GMT (envelope-from gnats) Resent-Date: Wed, 19 Jul 2006 06:10:17 GMT Resent-Message-Id: <200607190610.k6J6AHZ4012505@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arthur Hartwig Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C07C116A4DD for ; Wed, 19 Jul 2006 06:01:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41C3443D88 for ; Wed, 19 Jul 2006 06:01:00 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6J610nn068459 for ; Wed, 19 Jul 2006 06:01:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k6J610GD068458; Wed, 19 Jul 2006 06:01:00 GMT (envelope-from nobody) Message-Id: <200607190601.k6J610GD068458@www.freebsd.org> Date: Wed, 19 Jul 2006 06:01:00 GMT From: Arthur Hartwig To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/100513: Inconsistent definition of SMBus addresses in SMBus drivers X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 06:10:19 -0000 >Number: 100513 >Category: kern >Synopsis: Inconsistent definition of SMBus addresses in SMBus drivers >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 19 06:10:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Arthur Hartwig >Release: 6.0 >Organization: Nokia >Environment: FreeBSD xxx.nokia.com 6.0-RELEASE FreeBSD 6.0-RELEASE #3: Wed Mar 1 10:46:02 EST 2006 hartwig@xxx.nokia.com:/usr/src/sys/i386/compile/oz-net-10 i386 >Description: The intpm driver takes the user specified address in the slave field of the smbcmd structure and or's in the read/write bit. At least some of the other smbus drivers take the user specified address, left shift it one bit then or in the read/write bit. Consequently, an application accessing an eeprom at address 0x55 on the SMBus needs to specify the slave field as 0xaa if intpm drives the SMBus while the application needs to specify the slave field as 0x55 if amdpm or ichsmb drives the SMBus. I think intpu should be changed to accept addresses in the same form as most of the other SMBus drivers. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: