Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp617030yba; Thu, 18 Apr 2019 06:56:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTgKs1nxwErsBq0skQ8F0NwOvTNlm7QtjOVgsvX6UI0UDUW6aHt4fIQ/CaXrcwh/+jUQCu X-Received: by 2002:a17:902:2be8:: with SMTP id l95mr6415768plb.330.1555595780363; Thu, 18 Apr 2019 06:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555595780; cv=none; d=google.com; s=arc-20160816; b=UVsIL09twtDgmjgBbPoNWD4ARSPipSlD7R/O2LQSvbBpU04T3ZfuEJ6h+KBybufvEx 46lpDwDDM4mYsSay/y7wBBxETBcJP/osCJVwspUq/WVGqHEFRkHcFISWXq6Q9E8FZEZP qd+t8xMTdcdrJSGx2MQwHjhkgrC7jw3aUbK3Ap4y65R+Ann9zs3Qim4sd94dXCIymUo1 5u8ednv3Sj1tbNcludOtWe/u5cHUQj9BmgoMaTc429gBOUcavcazkdjhiQkQBvCYs+KI 3yYF3TVMOhSP0WnSb+LCEyEDcbPrx6Q2WNam+p9QAGYaRpcR/YzEIhYPtpgxVL2lWygM d48Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=91J4rokWlUCqunquh/WjYJQiECNtVPmoil36pMUuz8o=; b=P51bsPC0oaQwj39ncyNMfLA2XaahUbMY/3sVlc/4SKO9ZMFnN7ULRsOugkFLyZ+n3M gtQ859O4XGmX7s1Wt5NA7Rvxx62dY3IUjjVEITtFTmz2+IV/obopsuQS7/G7fjXaBUOc /G4+lS1YWbxgoe3EXQnFx6/r1syM9w8+PaihTuz3T6Juolc9kdnyzOKOuf4yShLNYDaH 53B9iNLNs3/RbyV9AVsF/b2WUyyfzJDuc06KI/2uNRveAAbQtC0VkEORMTHVHxTIyxi6 E9G+Li4w0GhkYr7nQkTmadvFfgUpEO0xzLjT3Dp99Tkbyr3Bt65Xh1UZK9oVhfEHDyGb aPxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qe3KkeAW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k62si1893175pgd.444.2019.04.18.06.56.05; Thu, 18 Apr 2019 06:56:20 -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; dkim=pass header.i=@kernel.org header.s=default header.b=qe3KkeAW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389112AbfDRNzL (ORCPT + 99 others); Thu, 18 Apr 2019 09:55:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:35790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbfDRNzL (ORCPT ); Thu, 18 Apr 2019 09:55:11 -0400 Received: from localhost (173-25-63-173.client.mchsi.com [173.25.63.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6538720835; Thu, 18 Apr 2019 13:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555595710; bh=dJ32c9YVsVuxpoD4f+g3olQkO+nfTWVl9BA8+VYQno4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qe3KkeAWwWfZ9Gl/VUVdEDmbdd0LhC5cEYmzubqOQRJLEmNnKvFwDlVcZNoKhbUnz XqjIgQ+QXblHFSocw23U8iTGTFnsJiDq1TFsNAnkO2gpPu+7m0zL6SJYsP91R8UHHS GxaUId4DbGgDAneeRtXmPrGB9I7RN7cLGonlimXU= Date: Thu, 18 Apr 2019 08:55:09 -0500 From: Bjorn Helgaas To: Wesley Sheng Cc: kurt.schwemmer@microsemi.com, logang@deltatee.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, wesleyshenggit@sina.com Subject: Re: [PATCH v2 0/2] Fix two bugs of switchtec module Message-ID: <20190418135509.GA126710@google.com> References: <1555339302-31829-1-git-send-email-wesley.sheng@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1555339302-31829-1-git-send-email-wesley.sheng@microchip.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 15, 2019 at 10:41:40PM +0800, Wesley Sheng wrote: > 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(-) Applied to pci/switchtec for v5.2, thanks!