Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2583398yba; Sun, 7 Apr 2019 23:37:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbvzROKIHMrgmqx0fpd5q/pqOuEBK7wbAu9jJT+TjcuGyG6RYx/ehyk72iiC3B8UOaLOXA X-Received: by 2002:a63:5b4b:: with SMTP id l11mr26141658pgm.95.1554705436388; Sun, 07 Apr 2019 23:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554705436; cv=none; d=google.com; s=arc-20160816; b=v9d8KAuzbc2WGfjluMy5l1JPCGT07kmIaliD2Qv8vO8kP01tZ0xkVeVExZNnuU/rAT urY4vMqJUZzZntGVmwNFbH9NxOy/KbecFNdOIDTcY2ZhmjKIIPQkg2WBSucIJS4SlP6H 2JZSavvFWeGVzCcqvgOq+1idaheL3prE4aFi5Td2nD+88h1jzwtiLl/uGL/7O9iL+vp8 56qWWk0ok8fCSzCPtPOjlTbR7l83KleSFqe2KqauHLcO3/dVkALpl6z22Y6jBlVelRli 275wUAJXdWfu1hs+2tufyqjCqV3LXdaYNoiYW/qTF9voiKjSonjcB0AV6CWr8Ppi4+oi 742Q== 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=yHJ6xfhcCNzSkg3ykGTpz0Aj6UOaSOUX6YhMRzEVPu0=; b=a4xE/vPZvtlgYoa7R7HaZsFo/WyZ0pOK7JPGC6YgBgw686rSwa4ZZnZjHCB7DW66B7 yVWyWNiLhFTnx/m/joXxbPhL3f5fDJkb4XG5fQGrT+V+ESqkIS2M4fUpge0dF3X0pswn GY9XPSM0trQfOa2LMgLcRGiaLyLBx9dKzWAmpsWIzrONlRhCizj4tMAdf1AhTZedDxBo sU9cTsJbXZp430L8tOQnSgTY/5YCID7A5QL1CUiozeOe7N0WgmkaodRDaaoAUjcdxgb9 6oz5DXvLDCHskZTEUTHrGzxdwpoCe04Iv8Ab0JSo7KG7tQx0+C0pOHoYSMcc4v8r7e+/ 2oDw== 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 k13si25903733pll.200.2019.04.07.23.37.01; Sun, 07 Apr 2019 23:37:16 -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 S1726554AbfDHGgI (ORCPT + 99 others); Mon, 8 Apr 2019 02:36:08 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:38309 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbfDHGgH (ORCPT ); Mon, 8 Apr 2019 02:36:07 -0400 X-IronPort-AV: E=Sophos;i="5.60,324,1549954800"; d="scan'208";a="29431215" Received: from unknown (HELO smtp.microsemi.com) ([208.19.100.22]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Apr 2019 23:35:54 -0700 Received: from AVMBX3.microsemi.net (10.100.34.33) by AVMBX2.microsemi.net (10.100.34.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 7 Apr 2019 23:35:53 -0700 Received: from server1.microsemi.net (10.188.116.154) by avmbx3.microsemi.net (10.100.34.33) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Sun, 7 Apr 2019 23:35:51 -0700 From: Wesley Sheng To: , , , , CC: , , Subject: [PATCH 0/2] Fix two bugs of switchtec module Date: Mon, 8 Apr 2019 22:34:46 +0800 Message-ID: <1554734088-5755-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 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