From patchwork Wed Apr 18 17:28:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 10348729 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 20788601D7 for ; Wed, 18 Apr 2018 17:28:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E0DE28782 for ; Wed, 18 Apr 2018 17:28:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2C5F28796; Wed, 18 Apr 2018 17:28:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7656228782 for ; Wed, 18 Apr 2018 17:28:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752166AbeDRR2w (ORCPT ); Wed, 18 Apr 2018 13:28:52 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33912 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135AbeDRR2w (ORCPT ); Wed, 18 Apr 2018 13:28:52 -0400 Received: by mail-oi0-f67.google.com with SMTP id e23-v6so2326509oiy.1 for ; Wed, 18 Apr 2018 10:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=9iXXUF1hmDLkE5XXGD5Q2jnAkdBge88jp7pB0WPpFUE=; b=X615WBRCaN5R6Own/xcjpzVJTfxeceYH28ESY8prB/3JPpVS8jbjqJNuu55sg9CoFm bnVD4yc9XTsp2kjY5PSWUlkLH07zyXBQ9+MoDWievOU5QiM5A7X30DKbpB+LDpMXyemG h4uqZo3uSGcLQg7AR07CONBB9+fM5r0ovqMKuDuthAYRX+gN+iInTImyhgSZ6LfcOabx +MaMe5aaeoL5hlIAZI82ZZMj2hX55gmFH8iJSPUdg3gE07h3xZkRUlfjQx6kRa0DcXEH ay4Sypk/dcYgzWXSSBgKIpSz0p2wfD7krTBknl/DFvsroFGTXKatFyZvgIQquKnoX5ky yfDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=9iXXUF1hmDLkE5XXGD5Q2jnAkdBge88jp7pB0WPpFUE=; b=ANhoNCD/1UXH/KZdhIpSZRfzHBdn70LkREFbxoUfbu+xujq/RahFuBglewF0uMCmb3 ks6usygBQmDvl7X72txibC6xJqp1UZd7DPBg4bQM+1dnsrj0k8zy5XcUcWMzHiYCBuav uqF3gaLmjXU1hr/UB6cUXRFvsgi/l4IEwDqakaxisu7qRhKpri+duBDccmDuOyUCL/6K L10IBbPruYKv2piqNQZeuASxBNopMKPL61PDmHSEByrYtGfzdUZurJURd32Za1wbXAk/ rX6sSKmRG+zOHTjZUWsTut4jOjBCMAv/aJxyQtIhHkIcFYb0TQO2cmarqPsdZObYtW+Y wrcw== X-Gm-Message-State: ALQs6tDQfHABET7dNgc1kH6HqWmNfCBYBi+p+d89/JVkwbzbeIa2vIDP V5eWez/dlU2h9f7krd2n9egl8Oo= X-Google-Smtp-Source: AIpwx4/JLlcokgtmd1ujXrlzWIdS7aQpH7DXCOTp0i9FSkDx7KLxww3DnUL1r+lzkbUZXOvAI7DaDQ== X-Received: by 2002:aca:90f:: with SMTP id 15-v6mr1650949oij.36.1524072531372; Wed, 18 Apr 2018 10:28:51 -0700 (PDT) Received: from serve.minyard.net ([47.184.168.85]) by smtp.gmail.com with ESMTPSA id o9-v6sm779801otj.30.2018.04.18.10.28.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 10:28:50 -0700 (PDT) Received: from t430.minyard.net (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPA id 46C59377; Wed, 18 Apr 2018 12:28:49 -0500 (CDT) Received: by t430.minyard.net (Postfix, from userid 1000) id CF9453000E7; Wed, 18 Apr 2018 12:28:48 -0500 (CDT) From: minyard@acm.org To: Bjorn Helgaas Cc: openipmi-developer@lists.sourceforge.net, linux-pci@vger.kernel.org, Corey Minyard Subject: [PATCH v2] pci:ipmi: Move IPMI PCI class id defines to pci_ids.h Date: Wed, 18 Apr 2018 12:28:47 -0500 Message-Id: <1524072527-11690-1-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Corey Minyard Signed-off-by: Corey Minyard Acked-by: Bjorn Helgaas --- drivers/char/ipmi/ipmi_si_pci.c | 5 ----- include/linux/pci_ids.h | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) Changes from v1: * Leave PCI_DEVICE_ID_HP_MMC in the IPMI driver, per comments by Bjorn Helgaas. There's no hurry on this, if it is suitable I can keep it in my queue with your ack, or you can take it. Thanks! -corey diff --git a/drivers/char/ipmi/ipmi_si_pci.c b/drivers/char/ipmi/ipmi_si_pci.c index f54ca68..bdba128 100644 --- a/drivers/char/ipmi/ipmi_si_pci.c +++ b/drivers/char/ipmi/ipmi_si_pci.c @@ -18,11 +18,6 @@ module_param_named(trypci, si_trypci, bool, 0); MODULE_PARM_DESC(trypci, "Setting this to zero will disable the" " default scan of the interfaces identified via pci"); -#define PCI_CLASS_SERIAL_IPMI 0x0c07 -#define PCI_CLASS_SERIAL_IPMI_SMIC 0x0c0700 -#define PCI_CLASS_SERIAL_IPMI_KCS 0x0c0701 -#define PCI_CLASS_SERIAL_IPMI_BT 0x0c0702 - #define PCI_DEVICE_ID_HP_MMC 0x121A static void ipmi_pci_cleanup(struct si_sm_io *io) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index cc608fc5..ac79652 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -117,6 +117,10 @@ #define PCI_CLASS_SERIAL_USB_DEVICE 0x0c03fe #define PCI_CLASS_SERIAL_FIBER 0x0c04 #define PCI_CLASS_SERIAL_SMBUS 0x0c05 +#define PCI_CLASS_SERIAL_IPMI 0x0c07 +#define PCI_CLASS_SERIAL_IPMI_SMIC 0x0c0700 +#define PCI_CLASS_SERIAL_IPMI_KCS 0x0c0701 +#define PCI_CLASS_SERIAL_IPMI_BT 0x0c0702 #define PCI_BASE_CLASS_WIRELESS 0x0d #define PCI_CLASS_WIRELESS_RF_CONTROLLER 0x0d10