Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3108262pxa; Tue, 18 Aug 2020 06:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGllJVSLy4KXinULvoFLqZq4XHwyF8/GapR4HdCkg8TPG3Aepm+HoHaceB+DA1Zb78mBkf X-Received: by 2002:aa7:ca54:: with SMTP id j20mr19966237edt.270.1597758826396; Tue, 18 Aug 2020 06:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597758826; cv=none; d=google.com; s=arc-20160816; b=VevRW2DgyqizpJ6NyE+cafQRKlz3IBPtc6lY5fhcNHj1GYARut2bslOwohoNAno8z9 FHjzR5iHNqVyVEFWKLx/f4WBGCgT65HSw/puat+UGUbIqggImttVMZ4LTqaalB+RZRhn UHcmLim8RcXYr1uJOzg1aGFT72FnPjh12Mz6WUOSHmJ1t3ySApWrqA+b4DnlNBVSS5gF QFLtTm0NQuJPpsJ4nFTSTfSmVMCzEt8+YVp2riOeh+qSr3QYq/GZbho6G7EDApKqyr8W xIABrDOcr3EiN+zZ1jRcpCeQspybNCfSSI1seWLIFtTB+XGG0exEAlvI5lnmJXkcA8T5 zZKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lIVDRCektusPaEx7Ai3kz1KUk6B/SNEST09unXdmRWw=; b=IBdrxwUR9zZjMuz0CWLBQp9/EjZwd3exOQQwnfIMUHstqEDaXoo0T/S0bQbX65R4Ju 0GcPE3AENGcduwQ9AelhQfQYa5D2Y4WR3pRzOOnAXwkgqSL9lP2zdHQvCGbKxSQZjn/z hhgpHYvxhdyTnXc9ZDpedqW8FIi43ECtyZMVak31fkE9b4nTotU/ybvZv2RP0Kbp0XYK ybcoYqJyJjtgufeQGbDvUtF59y42UyxYhzjXfw4nDpDII3tO8PffOV6O8zTTFrdsy+8o slVpacHOUOA4nMIzvIYStmFROSw/TXIokMEVzSXNRBwkV3NoqWsIamBtUrGM2ZvczNMW r/3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qWcE7oAM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id dc16si12729599edb.369.2020.08.18.06.53.21; Tue, 18 Aug 2020 06:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qWcE7oAM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726690AbgHRNwJ (ORCPT + 99 others); Tue, 18 Aug 2020 09:52:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:54946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgHRNwI (ORCPT ); Tue, 18 Aug 2020 09:52:08 -0400 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 08973206DA; Tue, 18 Aug 2020 13:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597758728; bh=F1UGo65DXs9OFY28Zjp/23kFoGYwJB2tDZeX0WHQAH8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qWcE7oAMdEGkAelwMQFfRzDDR4EPsjKKKRSCPWcR1zusul/q822eJ5A6LaxzxX5Q1 Av/J1ix4PSiT0Az8MqyHDj7kZVjk2d0aSCmSxAmgUz/tkeUMGSnHlMvZMeoElMP71D TPFui8zsHWVQmyU09KtHoL9uluL6HEs2y/IIei18= Received: by mail-oi1-f179.google.com with SMTP id b22so17945771oic.8; Tue, 18 Aug 2020 06:52:08 -0700 (PDT) X-Gm-Message-State: AOAM5339h0ifrPnf1cWiO+FsTYtMrdieORdQj2zxQL1rPIMyHXHprkhq jy11bAxI7QRn1cHdQiAlEWzbx6/7j0iLKcOOyg== X-Received: by 2002:aca:c3d8:: with SMTP id t207mr79157oif.152.1597758727392; Tue, 18 Aug 2020 06:52:07 -0700 (PDT) MIME-Version: 1.0 References: <20200818092746.24366-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20200818092746.24366-1-Zhiqiang.Hou@nxp.com> From: Rob Herring Date: Tue, 18 Aug 2020 07:51:56 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv2] PCI: designware-ep: Fix the Header Type check To: Zhiqiang Hou Cc: "linux-kernel@vger.kernel.org" , PCI , Lorenzo Pieralisi , Bjorn Helgaas , Andrew Murray , Jingoo Han , Gustavo Pimentel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 18, 2020 at 3:35 AM Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > The current check will result in the multiple function device > fails to initialize. So fix the check by masking out the > multiple function bit. > > Fixes: 0b24134f7888 ("PCI: dwc: Add validation that PCIe core is set to correct mode") > Signed-off-by: Hou Zhiqiang > --- > V2: > - Add marco PCI_HEADER_TYPE_MASK and print the masked value. > > drivers/pci/controller/dwc/pcie-designware-ep.c | 3 ++- > include/uapi/linux/pci_regs.h | 1 + > 2 files changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Rob Herring