From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x225oxLOewfKIiiKSgb4I5m0SkIUwP52kWr2YIoIojodPUOpg0v/vlmM4If6Mo8L+dYWjp5+J ARC-Seal: i=1; a=rsa-sha256; t=1516707129; cv=none; d=google.com; s=arc-20160816; b=Zr7qAdT/Em3KYLEQF3V0FLgpmnaaKM4dDT4SC1UI1GTq3Uts9L5DFN+kZd2e1GQuzk KHkqYV4Nu38TxgdqJoJuW2OQ8nw59IY7IsAzzYyjj7s4ST+5bHHPeRan8QQ3xuIc2CGV 7Mst+x4wjjjab+nzOmjIedw6s4PkzsjYg7i0M09E2T6V8GwZLukeGBNh0YHlW7qYiylG K5toLvjOWk2o6RmFLO9EM77THURzrnAOuEJYce2xfzOhbTOWHx/UJDx+b04uzDe3kOEa IJxyYaZt69DAfN5bjPfG8Y6+j/zs8hv0g9xxj63OK2DCFsrI3rNX/qgZq93GaYpJ7Gie KWOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=IDLNKQ51bLELFDWh+xLQEKd/R1RY5XkJ5KhExipLgX4=; b=Hc5yYx5AZVLThfXXW9hY+sZ1hhevYUbqjEiz06MDtqOCnvIm057K7DsipbfczdEQF1 ZXiH9KfxyU8Amr4BvCcQjY/9lpinvm+5P7MKP2GUfbXzkrudnjLCzyMVLRTmW4Lkc5GV zqkCShI5/r5iD/63MfUlskiY2fIFa7FTXeyL9eywAqQHnpDOZtxYilxWN8XLrCHGsOFA GNAGgmaEngzhePPVebJQzVZyqvewOk+1zKHu+sLrgW5DOvug/Ay2In5fs2Vtcd2IuDZ0 NAE0AbT0PlhYDJRttBfny96wCRMx7bwqOgIs/VGYRRJVUXvjVDSd5cP5YSU8piznCRyE +7zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of fbarrat@linux.vnet.ibm.com) smtp.mailfrom=fbarrat@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of fbarrat@linux.vnet.ibm.com) smtp.mailfrom=fbarrat@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590382694870280415?= X-GMAIL-MSGID: =?utf-8?q?1590382694870280415?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 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