Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp933317rdh; Fri, 24 Nov 2023 01:10:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeDecRRcN/pQZvQzjo2iyO2XzovT/GWap54t8XCCb3HWWqj5uLbfuzE5hjDqUSxvAmLrl7 X-Received: by 2002:a9d:76ca:0:b0:6c7:d033:bcfa with SMTP id p10-20020a9d76ca000000b006c7d033bcfamr2409925otl.37.1700817021593; Fri, 24 Nov 2023 01:10:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700817021; cv=none; d=google.com; s=arc-20160816; b=pcm6IUJT0nXn28P9XreAMPEJBAPwYG3Mww4GCaCbjqk+V8QLPjCgI9TiOenUUQGSAS ddIUmBLwCz5R7XO/ISA3152GSuijwHT0PO5rX+nqVnbLtVnIqpeltqfKwK42OfuYyf/u wwbTUOz9wBg2S4EWfdmSDqPQEWKAavgAjZrnUESBy0kR74YqfOzPDVKVUGDshPrgRRWc pKOl8OdxAkfamNL9Y15en9iUjEtleTfLqFejbz+HpF3I9E64ABhqIdpl3m3yAYt0fSYc fzToZoAFYq3usOb95Et2HHtFENzI62zwT17FCk5ou/iRbtg6knJ0i64T4WmfVw7AE+Go 1YcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=F7qkjbpRR0U6JlssN/d9gXUjczutDOWvn5Z6QEY22JU=; fh=DTIXnHNmJa8roWQwAOCRBjPUb+K1Mtzg+HEM7FmsrAo=; b=stDnx0cRNN5aLWAx9e5CMAqCY/HLjFhx0LLvK+96GAEMtxgzMjzJNr8J22nkpkW6ra HA3P97iY2sVnVOiDj55WX03ZQ6DBQOwjzNeWcYY6pHAUg9wB6Btcgf/Bt5Y+zVZ9E/xr UbcEcJ49G7HJii/Jtg9g7laRDvTB2e4vPa1lGLKgZjijD55BxMO2L3NyjPcmv0LMGFA7 Aa5oPxe+0dMe0ssLj+q15+QkNZVMT8njQBrowMjXCYGwIgclEZ7UMRvbg7Z48N5WO9Dq i/aN4x+8iU/uPaYiCP/mlPGRtCNaQ6koRZes+ySd2skvkEHZFoAjdMi23RzYSkopTyEs 7KUA== 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-wireless+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b36-20020a631b24000000b005aa83686f32si3172525pgb.42.2023.11.24.01.10.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:10:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mLbBx5hK; spf=pass (google.com: domain of linux-wireless+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-46-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4137FB20F0F for ; Fri, 24 Nov 2023 09:10:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15A944C64; Fri, 24 Nov 2023 09:10:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mLbBx5hK" X-Original-To: linux-wireless@vger.kernel.org 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=20J=C3=A4rvinen?= To: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=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> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 */ -- 2.30.2