Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1881900yba; Sun, 14 Apr 2019 23:43:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzS0VYa6jcZpudsUdbNNDwkwaupskV2zTVPxS3lhUwualx6/PM5oEsAvGT6P5CQhRaG8YKO X-Received: by 2002:a17:902:2b81:: with SMTP id l1mr74257270plb.289.1555310620935; Sun, 14 Apr 2019 23:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555310620; cv=none; d=google.com; s=arc-20160816; b=ViEsy4eZwci//XlrD4Jj5Chh5mBy9HwGkzG3PD6BgYWZ/NDjrcxK1NTXT4rehNsxba 9xDspkctoKhO9C4ol1YsA3jTJOx0mMkdvAh6EuRopUoBTz6Lgyv6Qcr3GrqUXy5H6A16 lynujKQzoCsh6zhcZjEmr/BVJ262MTXOQDnU9dnZmdWRUJll3tan6E/uzPO50yVL4xIP i2mWOL8wcKiZrW7LiHV2kAL1Kiu+IHqsAJPO069k01pMiGP70Dx6iYxCI8IQ6JxECaDG kTP+rOy+EfcLYC4d5vaJOl8rjM22vG8V0myX8LHfhjTRieAwIfaNId0ByG0woKFGP31a g7BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ta38IQdLXqLrdLXRFLYNwFFKo4HPLVsrIIMvIUswR4Q=; b=wpD1ZNOV+HKdQqA6+4GPyWZwNasSEHn/HwvzUkPvnolQI6QEkBW3zFbr9fVyYSwU9y sKp2Mszz48cVv2Lv3hl317rgMJ3RYJ/oWv9HToNmuA7uQwfdRD/B/YSHkU8/Z/OGMrgK rNOreVGoNKyKG6zilo7CFTW1HqV70iN+1wDdEKubwqpSLs7IWuYpZiTNH+A6JwgsT8FA OPTXBCwwY85Q96DWXiJnqBjWrg8z9gen5lVb8K9m4kNRLqxKFrYriZPH3u6VTPGByWqx zJENcVoQxdX5wWvXN6iBAboutVvdya1chlmv6y1GWDhPEyyf2h3RRB5FRcC1aJQZtgNi cfEA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si41197976pgr.121.2019.04.14.23.43.24; Sun, 14 Apr 2019 23:43:40 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726094AbfDOGmr (ORCPT + 99 others); Mon, 15 Apr 2019 02:42:47 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:59092 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbfDOGmr (ORCPT ); Mon, 15 Apr 2019 02:42:47 -0400 X-IronPort-AV: E=Sophos;i="5.60,352,1549954800"; d="scan'208";a="31501905" Received: from unknown (HELO smtp.microsemi.com) ([208.19.99.222]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Apr 2019 23:42:45 -0700 Received: from AUSMBX2.microsemi.net (10.201.34.32) by AUSMBX2.microsemi.net (10.201.34.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 15 Apr 2019 01:42:44 -0500 Received: from server1.microsemi.net (10.188.116.154) by ausmbx2.microsemi.net (10.201.34.32) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Mon, 15 Apr 2019 01:42:42 -0500 From: Wesley Sheng To: , , , , CC: , Subject: [PATCH v2 0/2] Fix two bugs of switchtec module Date: Mon, 15 Apr 2019 22:41:40 +0800 Message-ID: <1555339302-31829-1-git-send-email-wesley.sheng@microchip.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Everyone, This patch series fix two bugs of switchtec module. The first is introduced by device spec definition issue: the maximum supported PCIe function number by hardware should be 255 instead of the false number of 48. Rectify it in driver and for backward compatible, a new ioctl and corresponding data structure are created, while keep the deprecated one. The second is MRPC event unintentionally masked at corner case. Fix this bug by skipping the mask operation for MRPC event in event ISR like what we already do for LINK event. Regard, Wesley -- Changed since v1: - rewrapped the commit message of [PATCH 1/2] into one paragraph -- Wesley Sheng (2): switchtec: Fix false maximum supported PCIe function number issue switchtec: Fix unintended mask of MRPC event drivers/pci/switch/switchtec.c | 42 +++++++++++++++++++++++++----------- include/linux/switchtec.h | 2 +- include/uapi/linux/switchtec_ioctl.h | 13 ++++++++++- 3 files changed, 42 insertions(+), 15 deletions(-) -- 2.7.4