From patchwork Fri Nov 24 09:09:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 169321 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1022209vqx; Fri, 24 Nov 2023 01:10:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEW+OLcQy07W14Vj/J66GZKEOyIihim25GWSO3HeS8vjBacaUy9Kjz9cG7H7/RWb1i/R4yT X-Received: by 2002:a17:90b:3b4e:b0:285:9912:a4b0 with SMTP id ot14-20020a17090b3b4e00b002859912a4b0mr65633pjb.24.1700817032577; Fri, 24 Nov 2023 01:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700817032; cv=none; d=google.com; s=arc-20160816; b=PuqSpS/R6m9v3RvKFvmZ2rku3Rc5M2qDZ/yOeb+AKmw6rCsAEC3Q+y+YT35xhvkZ7M cHBG+cho2F1A3taUqZccVWzXRQ5CTHKRxh8Bw3GV9Ft3LqIYbhbM8BsRlftuFZcT0CT0 BUdnKYc6c5V4hMinadT9kSMBe+g4Rv/57z7S5yOFzmtnoummYF8JQNoZqOEAJ3UDYUzM SWxUF6/oGwQCMrX/DQ0zwBx3JyIFy2PaBpW4pekpBJstXxr5yy20QjCLZdqGcZivaEgT /f7C+PQL2E8XX0fxudGJmz1JVrmdE8TMqj9tcV6UGXVMA/6MWat6OHCnsQ/0i4dVUA5Q gJoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F7qkjbpRR0U6JlssN/d9gXUjczutDOWvn5Z6QEY22JU=; fh=DTIXnHNmJa8roWQwAOCRBjPUb+K1Mtzg+HEM7FmsrAo=; b=03KqofAGNwHlhCU7dGyi2RGwTZv93GQq8iG/B0TNo92gpZzIYQKuZwUcOghVw5Q4Yz 26N9FhjIVHKALEYIYqnGSV/rgCyr/KrcX/8nQ4hzkB5LAlPXAzSIzcAsVS9vS9C3SqQC ItzPE3/1qWr6DFAXSWLoTATFtjCprWPZRUtsAdseJTQJ0oNFkG+cJTfMc/gJzxz3hR0l 0VDuQWEHqDyxbT4OubQ6nWmlSSbWHNM1HO71iH5kzM9eH5sIlmZWRTacxe74cmGplSqO fqWbf7+DssFYgsUVDKyfvOV6milDoLrpJDNu0cIn+XhKl5jVwj1myxktR5gFP0weQwn2 r8HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mLbBx5hK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i15-20020a17090acf8f00b002774c17dd73si3154755pju.11.2023.11.24.01.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:10:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mLbBx5hK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6515880A1385; Fri, 24 Nov 2023 01:10:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233039AbjKXJKQ (ORCPT + 99 others); Fri, 24 Nov 2023 04:10:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233995AbjKXJKH (ORCPT ); Fri, 24 Nov 2023 04:10:07 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B49F910EF; Fri, 24 Nov 2023 01:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700817011; x=1732353011; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=66TLivhScrf9PDmhJ5Qy/pTIXujF0a8LJJSvL83bbzY=; b=mLbBx5hKKnigSec5QNzGIf4VS5jO637IueqGnXW9/HYzVYbBpp1x4vYS w+Qz7zG4aF3Nn+QflC+JPgh06zeuXrb0xCAqgvGLVaW2tWPBsUoucquEc S7FEgUBm8RGDAlLSKOrGFYJxu9RkZoHq64121wbmOJQrHHRnhZ8jqWqC5 PuQhECYoW7CEH138YySVyUwtZETynP8BAUhFeFQ+WUDZhWOSaAw/LmiJ0 885+k6TN1vPOrpafAdkIOQHjCMhAzt+MlzYYbxU7TuqVQtjtNQveMlNFs sxdXyS63zSeJaDiaiNvv4quegVMQEvDEb3aMIzJCJX3dSsgf2ESzE8S5I w==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="478603519" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="478603519" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 01:10:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="15911703" Received: from mvlasov-mobl1.ger.corp.intel.com (HELO localhost) ([10.251.220.89]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 01:10:09 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 6/6] bcma: Use PCI_HEADER_TYPE_MASK instead of literal Date: Fri, 24 Nov 2023 11:09:18 +0200 Message-Id: <20231124090919.23687-6-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231124090919.23687-1-ilpo.jarvinen@linux.intel.com> References: <20231124090919.23687-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 24 Nov 2023 01:10:25 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783435920483924053 X-GMAIL-MSGID: 1783435920483924053 Replace literal 0x7f with PCI_HEADER_TYPE_MASK. Signed-off-by: Ilpo Järvinen --- drivers/bcma/driver_pci_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c index aa0581cda718..ed3be52ab63d 100644 --- a/drivers/bcma/driver_pci_host.c +++ b/drivers/bcma/driver_pci_host.c @@ -280,7 +280,7 @@ static u8 bcma_find_pci_capability(struct bcma_drv_pci *pc, unsigned int dev, /* check for Header type 0 */ bcma_extpci_read_config(pc, dev, func, PCI_HEADER_TYPE, &byte_val, sizeof(u8)); - if ((byte_val & 0x7F) != PCI_HEADER_TYPE_NORMAL) + if ((byte_val & PCI_HEADER_TYPE_MASK) != PCI_HEADER_TYPE_NORMAL) return cap_ptr; /* check if the capability pointer field exists */