From patchwork Sat Jun 6 13:13:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wan ZongShun X-Patchwork-Id: 481651 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3A0ED14027F for ; Sat, 6 Jun 2015 23:29:21 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751945AbbFFN3O (ORCPT ); Sat, 6 Jun 2015 09:29:14 -0400 Received: from mail-bn1bon0147.outbound.protection.outlook.com ([157.56.111.147]:17664 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751728AbbFFN3M (ORCPT ); Sat, 6 Jun 2015 09:29:12 -0400 Received: from BLUPR0201CA0020.namprd02.prod.outlook.com (25.163.116.30) by BLUPR02MB068.namprd02.prod.outlook.com (10.242.187.154) with Microsoft SMTP Server (TLS) id 15.1.172.22; Sat, 6 Jun 2015 13:13:50 +0000 Received: from BN1BFFO11FD008.protection.gbl (2a01:111:f400:7c10::1:120) by BLUPR0201CA0020.outlook.office365.com (2a01:111:e400:52e7::30) with Microsoft SMTP Server (TLS) id 15.1.184.17 via Frontend Transport; Sat, 6 Jun 2015 13:13:50 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; alien8.de; dkim=none (message not signed) header.d=none; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from atltwp02.amd.com (165.204.84.222) by BN1BFFO11FD008.mail.protection.outlook.com (10.58.144.71) with Microsoft SMTP Server id 15.1.190.9 via Frontend Transport; Sat, 6 Jun 2015 13:13:49 +0000 X-WSS-ID: 0NPIY31-08-6NZ-02 X-M-MSG: Received: from satlvexedge01.amd.com (satlvexedge01.amd.com [10.177.96.28]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by atltwp02.amd.com (Axway MailGate 5.3.1) with ESMTPS id 20B61BD879A; Sat, 6 Jun 2015 09:13:48 -0400 (EDT) Received: from SATLEXDAG03.amd.com (10.181.40.7) by satlvexedge01.amd.com (10.177.96.28) with Microsoft SMTP Server (TLS) id 14.3.195.1; Sat, 6 Jun 2015 08:14:19 -0500 Received: from SCYBEXDAG01.amd.com (10.34.11.11) by satlexdag03.amd.com (10.181.40.7) with Microsoft SMTP Server (TLS) id 14.3.195.1; Sat, 6 Jun 2015 09:13:47 -0400 Received: from zswan-developer.amd.com (10.237.75.59) by SCYBEXDAG01.amd.com (10.34.11.11) with Microsoft SMTP Server id 14.3.195.1; Sat, 6 Jun 2015 21:13:41 +0800 From: Wan ZongShun To: , , , , CC: , , Wan ZongShun , Wan ZongShun Subject: [PATCH 2/3] i2c-piix4: Use Macro for AMD CZ SMBus device ID Date: Sat, 6 Jun 2015 21:13:39 +0800 Message-ID: <1433596420-5612-2-git-send-email-Vincent.Wan@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433596420-5612-1-git-send-email-Vincent.Wan@amd.com> References: <1433596420-5612-1-git-send-email-Vincent.Wan@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD008; 1:h5Qydkfo1z+F0KozEGKxyJh4x7W/ubWVYfhchUgwLGD8RdslSid1z5IK/p3M0X+noj/CUVhqlxsfIyiQfszpiGsnv9/XhoxTvJr5Hn9zBtwhg5aIdqriBQ5vHpw/Uz3Dz8qPMgYMuHn89tlhbxoWAp79yDrEbXp4qF4xZ7k/W8N+PH0JXE2Sups00dECXxNn/v2vU3lnpeqSGQ58j60faNN2M+uPx6X6rygwTVl4TWlD0O3QZ2oRidkMO+TqPVKCW7c6vzfI0RU0bssQP3hH6kEO9OFKlpBcZ+crMzn0qsiyKFvYFR/udPHix1GM8RUh X-Forefront-Antispam-Report: CIP:165.204.84.222; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(428002)(189002)(199003)(77156002)(62966003)(76176999)(50986999)(101416001)(53416004)(19580395003)(19580405001)(46102003)(50466002)(48376002)(47776003)(86362001)(2201001)(92566002)(106466001)(36756003)(50226001)(2950100001)(105586002)(87936001)(5001770100001)(189998001)(229853001)(77096005); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR02MB068; H:atltwp02.amd.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB068; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520003)(3002001); SRVR:BLUPR02MB068; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB068; X-Forefront-PRVS: 05991796DF X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2015 13:13:49.7780 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96; Ip=[165.204.84.222]; Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB068 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Change AMD CZ SMBUS device ID from 0x790b to use Macro definition Signed-off-by: Wan ZongShun Signed-off-by: Wan ZongShun --- drivers/i2c/busses/i2c-piix4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c index 67cbec6..630bce6 100644 --- a/drivers/i2c/busses/i2c-piix4.c +++ b/drivers/i2c/busses/i2c-piix4.c @@ -245,7 +245,7 @@ static int piix4_setup_sb800(struct pci_dev *PIIX4_dev, PIIX4_dev->device == PCI_DEVICE_ID_AMD_HUDSON2_SMBUS && PIIX4_dev->revision >= 0x41) || (PIIX4_dev->vendor == PCI_VENDOR_ID_AMD && - PIIX4_dev->device == 0x790b && + PIIX4_dev->device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS && PIIX4_dev->revision >= 0x49)) smb_en = 0x00; else @@ -545,7 +545,7 @@ static const struct pci_device_id piix4_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP400_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_HUDSON2_SMBUS) }, - { PCI_DEVICE(PCI_VENDOR_ID_AMD, 0x790b) }, + { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_KERNCZ_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_OSB4) }, { PCI_DEVICE(PCI_VENDOR_ID_SERVERWORKS,