Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2327529rdf; Mon, 6 Nov 2023 10:42:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEawW7MGWRDVBndAh+6FEhEjGgkSyF41t2AcUqojqGelc2Y4LHdUPZij5vT84t+P0dhoRZt X-Received: by 2002:a17:902:e743:b0:1cc:47d5:b761 with SMTP id p3-20020a170902e74300b001cc47d5b761mr21691845plf.35.1699296124783; Mon, 06 Nov 2023 10:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699296124; cv=none; d=google.com; s=arc-20160816; b=jXx9ZDED1kICRnCdo9u7p83OI0e4N+XTbXct/u4W7uF65lySEOf8EaGvNscMPQPGjY Bch844T79g3j65KU4cNUBOXqWLQx/j3JCykRx0v/9A/NWF3STKjVIJ3UKvpOt0YsSbJB 0r3gz773HTQJX7MPp4S7tZVR/obujzJhLeswRY0krCSvsVwKD891ytLz5F3EqMfNSwCf +GPhCcfIMujx34Kx5kdt74fF5LjDOrTRVlSp0FdP0KCi4ADMncKyBrdFXDZMIezpK2TS B0XxIVpf3z068aIuxeElmtlmXRGPZM8+C8Q99WH0dxRaUSQcfu5VYJ7auuu3zKVScKJa Cbxg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DZDTgfGX6qiSnHUX7Lc3ddAcaXTeBea7gBpJ4/8h9aM=; fh=EhYQnArFbMHj9GetyMtC39fFiEl2zsDTlAIuGjtTRaM=; b=LNtm4igD7BnBEteoPzr4ZJROsr7mdiZ9faymUfr+zY8DiRORu0Dqua+wHzCMuoSPCU EYOFSgXnE3XDAKds2wSH2fUzMHJH9gkROFH1AeEpP6fY2CcBLPQ48kECC3IH+4iWgUBU 26AdNFzNKKjPr+OG2Dg3qhvYaGYBbLzHQXraSTRUSNKftXapIqythKN8v9JhDV0zuJyt +/LSMMKL7W/b0J6v8k9SId+ZkrQUjiK9Sv6dIOSxzc+s6IP1BOFis78+mgPrM5BS3BKJ 064gPxpq5OrVazGWzP7z0E/StzDxutHja3EcVmTOQdK0BUlliYSXS2O9YtphWpKSe5sM xS5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y3O0hyLw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d15-20020a170903230f00b001c74d1da69csi9715047plh.362.2023.11.06.10.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 10:42:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y3O0hyLw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 147DD8066659; Mon, 6 Nov 2023 10:41:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232321AbjKFSlF (ORCPT + 99 others); Mon, 6 Nov 2023 13:41:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbjKFSlD (ORCPT ); Mon, 6 Nov 2023 13:41:03 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 784BFD57 for ; Mon, 6 Nov 2023 10:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699296059; x=1730832059; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nDaE5gZt44QLBdwS8FvZ6dreGzaftv8+ViIX+mgmasM=; b=Y3O0hyLwLqClC2gOpufm6/5V3uPGD8+vsTHdWxVOCpm1EO6/6DBEj8GW 4q2+Wzw82LvEOShbQNrD5Nev1AmiKD1eFCpi/Nu0a0z4t1GgfDd5puul0 +Uq4/Du9hgZ/0ZCswk0wUJBqtoW3F5mtk0k9xY7T5SuAdWCNxFWpYk/s6 j4PamHpFVF6HRKDmIk8zE0Rnn3w7+wQdAD5W1+6IfTZWfuQxBCPXDcQId KTzdSM5j5xRwX5LvDaTqX8PZ86WIB1dxGJ/Madf1h9ya3eFiBIA7nBc1e mIZnsDTEC+Vqj20hpMkihZdiK+BM+EA4SgwlVRMWzLEgsuyYUfLWkZL+8 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="7975895" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="7975895" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 10:40:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="832807950" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="832807950" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 06 Nov 2023 10:40:56 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 365961A5; Mon, 6 Nov 2023 20:40:54 +0200 (EET) From: Andy Shevchenko To: Jarkko Nikula , Andy Shevchenko , Chen Ni , linux-kernel@vger.kernel.org Cc: Lee Jones Subject: [PATCH v3 0/2] mfd: intel-lpss: refactor PCI probe and common IRQ check Date: Mon, 6 Nov 2023 20:40:50 +0200 Message-Id: <20231106184052.1166579-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 06 Nov 2023 10:41:15 -0800 (PST) The PCI code can be refactored to use respective PCI APIs instead of direct dereference of struct pci_dev members. With that, we may unshadow the error code that is promoted in the irq field of info structure. PCI core shouldn't propagate 0 as a value there, and in case it happens it reveals a bug somewhere else. Changelog: v2 -> v3: 1. Refactored PCI glue driver a bit (a new patch) 2. Updated commit message in the original patch v1 -> v2: 1. Update commit message 2. Fix IRQ check in intel_lpcc_probe() Andy Shevchenko (1): mfd: intel-lpss: Use PCI APIs instead of derefereincing Chen Ni (1): mfd: intel-lpss: Amend IRQ check drivers/mfd/intel-lpss-pci.c | 8 ++++++-- drivers/mfd/intel-lpss.c | 5 ++++- 2 files changed, 10 insertions(+), 3 deletions(-) -- 2.40.0.1.gaa8946217a0b