Received: by 10.223.176.46 with SMTP id f43csp4053270wra; Tue, 23 Jan 2018 03:33:55 -0800 (PST) X-Google-Smtp-Source: AH8x224r49yV0desogL5Bf7TLDP+DAenCLy6NvC3JzY0P7gGv5TILDNWcG486KoVEWLHN0De5TaI X-Received: by 10.98.130.142 with SMTP id w136mr8055216pfd.236.1516707235483; Tue, 23 Jan 2018 03:33:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516707235; cv=none; d=google.com; s=arc-20160816; b=epHJmYNepDDjDfgJNIhTcdt9meOq9mgcvbAtB/3OLJY0KxDGOumhPBFTkbYLq5yGlB XZ2gJzRPhyzCKfRKfL8NUcNKGFtHSSf45TUN7n5PhNNZ36T7RYjo6YFou2tTb7SMU6fa TNrbDfllpV7Yk4XjoXskBKbJVcC9SGNLR7N3gSNlQKm9xL5u1jSjw/nnkVEmZNMtV9Kz yZG71Nvr4Ub/J9vXikRIe5WQUIG0uGxPd+ock+xcij28lgFAiKseNVCY9FWCfwaF7c7M jbLo7JPpnVRmhaIhisEXDL0olN2Ugm02qvZhjmxYAkVGAMFmXl1GSHMlRDxs/U76RR5I ZXVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=IDLNKQ51bLELFDWh+xLQEKd/R1RY5XkJ5KhExipLgX4=; b=z77m4ePMPdGy2dOQ/WTpSLkxbH7UNBPjvTYXx4OF15jeDEK5bRKJS0y6pKCmom+cMG 1QLGzwsJlGsgJMkvJTDYewRkEIclJqN6CvjKjCq0bBDNunFGpgGSuXjhkwnE+j0TpPIg VZenLzD9QWgg5uUoltQLVqZEJIHc/X7EorPVaB6MTyjaJv3Y7RenE17GI1WhwKRfvU0n zB/0tO+qerw3ajSh7hb/zVH2iBiPSErv/9FeiotcmcIRtMydQ+33ec6IQHZ+QHKG1B9t PJwYtJH4L3BjHyoOWoFMo9/5hCQ/raT4hAlx5hrzqtKk8kDgMQHGG/z5p1kjs+IOEMxE CRkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj4-v6si4597759plb.18.2018.01.23.03.33.41; Tue, 23 Jan 2018 03:33:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751666AbeAWLcP (ORCPT + 99 others); Tue, 23 Jan 2018 06:32:15 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:52308 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751609AbeAWLcK (ORCPT ); Tue, 23 Jan 2018 06:32:10 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w0NBVJlh011966 for ; Tue, 23 Jan 2018 06:32:09 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2fp1g76xa7-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 23 Jan 2018 06:32:09 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 23 Jan 2018 11:32:07 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 23 Jan 2018 11:32:04 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w0NBW4HF60424254; Tue, 23 Jan 2018 11:32:04 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0BD12A4053; Tue, 23 Jan 2018 11:25:44 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AF046A4040; Tue, 23 Jan 2018 11:25:43 +0000 (GMT) Received: from borneo.lab.toulouse-stg.fr.ibm.com (unknown [9.101.4.34]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 23 Jan 2018 11:25:43 +0000 (GMT) From: Frederic Barrat To: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, gregkh@linuxfoundation.org, mpe@ellerman.id.au, andrew.donnellan@au1.ibm.com, alastair@au1.ibm.com Subject: [PATCH v2 11/13] cxl: Remove support for "Processing accelerators" class Date: Tue, 23 Jan 2018 12:31:46 +0100 X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180123113148.6024-1-fbarrat@linux.vnet.ibm.com> References: <20180123113148.6024-1-fbarrat@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18012311-0008-0000-0000-000004C4DF34 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18012311-0009-0000-0000-00001E585EBB Message-Id: <20180123113148.6024-12-fbarrat@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-23_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1801230158 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cxl driver currently declares in its table of supported PCI devices the class "Processing accelerators". Therefore it may be called to probe for opencapi devices, which generates errors, as the config space of a cxl device is not compatible with opencapi. So remove support for the generic class, as we now have (at least) two drivers for devices of the same class. Most cxl devices are FPGAs with a PSL which will show a known device ID of 0x477. Other devices are really supported by the cxlflash driver and are already listed in the table. So removing the class is expected to go unnoticed. Signed-off-by: Frederic Barrat Acked-by: Andrew Donnellan --- drivers/misc/cxl/pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index 19969ee86d6f..758842f65a1b 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -125,8 +125,6 @@ static const struct pci_device_id cxl_pci_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x0601), }, { PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x0623), }, { PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x0628), }, - { PCI_DEVICE_CLASS(0x120000, ~0), }, - { } }; MODULE_DEVICE_TABLE(pci, cxl_pci_tbl); -- 2.14.1