From patchwork Thu Feb 8 12:09:56 2024 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: 198383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp145885dyd; Thu, 8 Feb 2024 05:00:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZxWY8ENui3wZJEA113K3bP+a2YlobVUrSBuk+NR7o1mKFhnd3Lkczi1ACi7Ees5fEMfHI X-Received: by 2002:a05:6122:2682:b0:4c0:1cc8:8819 with SMTP id eh2-20020a056122268200b004c01cc88819mr5974582vkb.5.1707397247056; Thu, 08 Feb 2024 05:00:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707397247; cv=pass; d=google.com; s=arc-20160816; b=JNITLijs6Fr3LZMvfs8LkAiHks1RQ+vbrfvq8C9ne/1Q6+EVc25sS0zPR3R3qbrLUW p4aHTEGL+NXK5cmMxhCxpTYmR4Uh8SHnzhcgDW04wo8B6HJEis+akwxnRDu3TGvni1kh L9Ry1EC5gO4w08FVqoIwcq95G9Mq/n+cnWpEHkTb8SloqoQ7HD8mZyjtOQEXZuWdYaLe F8DvjfGc7R63neEqAkx+j6gUTT7nlPhb3Z6pytnsBI0/Cabz7fUTZmqlcPWQZbiM7IDC LInzfSDZ4lYAG4IzIfHuhrpcZ+HQz55Unp1XvtwGXsCk57zGRF8FcstGIChTgKp9f+bX RHJw== ARC-Message-Signature: i=2; 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=xBsQxmwK1ZRX6CKtCMZJhmv9KdA5Ea56jwwOAQ57OPk=; fh=DH5gBrw4kqsDjhAwNsP7kh8V0p5TQnAqeIHa67frYjw=; b=QE6NALRIoz0SXArY2oxbDSiutNT2no2y9RI0UdWs4m/oDcX8MLr2JmIbEov1YILonF pMLz/z4tmbkUl2X7PstIEbdDrmJ98odOAWhFt7VN+8swAUJOMB1YPzAtmb5cp9/kQJ5M ANApmHMKqeLDScdRSDt/5XThg7DYuWDBJIHJwj5l2a34kw4hxrobtED9HamfweiqN+CY ghlmGWQiRFb8rXv0RJT3cqtkALgAIa/270dhJjTrmf7In2g5oACMUiw4oO6u3cse8RQ8 btsAjHc4X6vSDu7OTzwNAohT7tzzOknEO3zvxfiQslR52wtT6TqiSmFVuNTXNE37+CMA pYqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="H/Dt3l7y"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCX6MiR9J5BwY6WhtqKJxAp+TRfkA+w15ItkJODgpeaq2ecj32G9J23E3I1QSPty+TYS7OkdXr46KZqW07J5Z1Ijvybq6A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id em13-20020a056122380d00b004c04425061esi526956vkb.234.2024.02.08.05.00.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:00:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="H/Dt3l7y"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58027-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 82D621C2665D for ; Thu, 8 Feb 2024 12:10:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C9DF71B2F; Thu, 8 Feb 2024 12:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="H/Dt3l7y" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AB296F535; Thu, 8 Feb 2024 12:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394217; cv=none; b=fLdN3pi+E0lQXVF/TmIxguhypqL+GAqLnOfQmH4e8e6bKme5CM64wHYzNAxz+ka1U8Faswlz7o1pK0KDs3t4i0Lo0lyuuYq/dUTi4rhEoR2702zIYprmPfB7gJOa3kEJKYuA3KmTkvr9Ok9mow/agNG7pdN+pGJvxYdmhoFrGC4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394217; c=relaxed/simple; bh=X2Muz8pkoRwEhUvH9ti0eknrxae4vqD1PWSyx9/gso0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=k0LgsBpARegaw3w5NdsEB3RcThdT2maI/LkNn7wqb7Ra6gGHMurjvPosmEkdkTsxjL+Uowye6H4HPjFT0hzzNKwXNgkrkNviTqHmkMtCikbcCz6qTM6/scij+aNwZOljge2OvUZJ7UDqy60WhCqMr/ZCdPvmvjYXjLtmFF5R51c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=H/Dt3l7y; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707394216; x=1738930216; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=X2Muz8pkoRwEhUvH9ti0eknrxae4vqD1PWSyx9/gso0=; b=H/Dt3l7yGZJ4WCUIGhrvpvs8vgp/fqSdn4/0G2wLaRzkhA3Udoy+RRgu SyhLH1Cc/qi3AXZ404Nhgj0Nn8rhvNYCPpPihSVVubUwkLdajcEcIgalS xL2CmUUikdwB8YsPXL/Mzw/QnQLao37FPFg2fOFPhjCMYuKUjL/qqLBm8 p1qFwFYLMJ0eTVkxslFrmD6vbPAFjvnEgDwICpfhdCrIVZ8YqnNk3HbOd Tu3KNIt0tmuU3byJR037jSGCTkiCdZSY0NqMVk3KtHqRdkr2OBfyy3h6u CorYwTq8cs2HpH2Giz9NhPLjNia4ImT6IhlyWnzyVrhjFDvCfWviqMagv A==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1341297" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1341297" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1625935" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.52.95]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:13 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergio Paracuellos Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v2 1/4] MIPS: lantiq: Remove unused function pointer variables Date: Thu, 8 Feb 2024 14:09:56 +0200 Message-Id: <20240208120959.2513-2-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> References: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790335774840320050 X-GMAIL-MSGID: 1790335774840320050 Ever since introduction in the commit e47d488935ed ("MIPS: Lantiq: Add PCI controller support.") ltqpci_plat_dev_init has been unused. In 57c8cb8f2429 ("MIPS: pci: convert lantiq driver to OF") also ltq_pci_plat_arch_init was introduced. With those commit being more than 10 years ago, it seem neither is going to get used anytime soon. Thus, remove both unused function pointer variables. Signed-off-by: Ilpo Järvinen --- arch/mips/pci/fixup-lantiq.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/mips/pci/fixup-lantiq.c b/arch/mips/pci/fixup-lantiq.c index 13009666204f..8bcc136976dc 100644 --- a/arch/mips/pci/fixup-lantiq.c +++ b/arch/mips/pci/fixup-lantiq.c @@ -7,17 +7,8 @@ #include #include -int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL; -int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL; - int pcibios_plat_dev_init(struct pci_dev *dev) { - if (ltq_pci_plat_arch_init) - return ltq_pci_plat_arch_init(dev); - - if (ltq_pci_plat_dev_init) - return ltq_pci_plat_dev_init(dev); - return 0; } From patchwork Thu Feb 8 12:09:57 2024 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: 198355 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp118320dyd; Thu, 8 Feb 2024 04:10:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXPIULSYCIzsyxwr7Uviy+6Ykm+NSYQj+2ezUjmXO3Mzm9zLmBoouV0yOuaOvjBPjnUsst3kmnPRWoXNA6ucbPppPcrdQ== X-Google-Smtp-Source: AGHT+IFjMbtEiLqun6mXs6sYaR/2/vxGSdBUnY0H69/w1uG2Q01265jusE72rY3lyUoQoowse7NC X-Received: by 2002:a05:6402:391:b0:55f:e8b4:4f7c with SMTP id o17-20020a056402039100b0055fe8b44f7cmr6053370edv.5.1707394253554; Thu, 08 Feb 2024 04:10:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707394253; cv=pass; d=google.com; s=arc-20160816; b=D9ZGr1laQy+BabmKKzYWdr6yIvY48dIfxVeMvdV0WG5oauCzA12JgT9kcK7kpjUijJ HjTq6RjZCP9QAWx3w6DlB2zHWOYZHVsu8wmUpL3meeeBMUUqkjNtwnGZ9wmoNpUAQzaP CxLKh+ZdSxA4aAGmJlO5PezexcU2k+luRSkgSCJRN4WfRUyKSEwkkcu4PScisjHNKsMT SrKuzoFFborXi6+pYgdKdMhdKJBcoDypkPLBtHvQXVQ1uY6dW6AcbZMceTYqa/hm4g6u a/W+BiKdMr8PcU9ojVzKO2vsFWR2//k5A+6nU8u+P1TwiBEPBs6MmPMrUZ4Sj6Q/RnXF Phfg== ARC-Message-Signature: i=2; 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=s3YtR86Ahs7XAzb0WxFtdnkMBqawwkqpRrlefVDRBcA=; fh=0gviIJdIoWlOjRvQibp2OlSqidEgiU05//lBS57LNI8=; b=QdzPJsNNsilcNQ6nwH1+mAPQz2nfIQlHiUG8O8z8oxGBvZdkTmo2iSN19RVSnMWf16 IHysblvfx6oFYZY5J2ZmtYWrZxbxUeuvkgGiFIXUL3fbTiyuGgayiLMvng1O1QbBkgI6 rPjz+Bh3/fDkWyDZJFW1QVgP35pacXlgj/nP70S5TDjHaJkSmGwVxibJ7ygL/bCFc3R+ cf84W2lS0/DsbfpY6Q7QJlkR1WOhUrL4biAedlRxQRfVN0aokj5nJJe+fFqCdCr6nBk2 N6zva6OrnbgZSvZcHiDVCIiIe5aGRM904cldDX4ZAjHJijHN0SRvXAXsWzB25DImrwof Q8fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CW1SfG+j; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58028-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58028-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCXRZYKVEyAwjK8ODnuGkMYsr5Q7376CT9+6ykMwOcmhwpzeTJPW5U8ExVyHAoQ6uhP1Um7str8pteuIxjjTMWBVfZ842g== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id co3-20020a0564020c0300b005611242acf3si382221edb.531.2024.02.08.04.10.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:10:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58028-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CW1SfG+j; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58028-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58028-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2D3E41F29272 for ; Thu, 8 Feb 2024 12:10:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6692074E19; Thu, 8 Feb 2024 12:10:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CW1SfG+j" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6142F71B41; Thu, 8 Feb 2024 12:10:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394224; cv=none; b=sBxfaK5aI392R31TMTnCxIZpaDBIFTzUHQqq01h9hIvgtSLcd06WCq7qrseVD/40BGwITrPnnjYwVahNfJX0jnWSKaAtfMfs0NS7hutMYLuG1VmtbHMmIVstzGILBChhruiP47XhzBJ8VipS8qZ9xVYgbqjJZ/loXYaflXvGCLQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394224; c=relaxed/simple; bh=JPdk+Lb9y/P3Nc1X0LzlAL+t7jsIt4F4AidZQorL+eU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=mEB6kCqdZu5yebB4xOSrDbw0SxG/DoB+S+du5eFzTKH6LtCAzM9zpo98528Rq4ppO2dLDkOjlp6scwmzuh3P2QXlUgJlk6yQs0JLWNAdhIUQ/mDHnWyCICU9b+UlOdM9ydvZr+IWlus47WV3ZJc3jQKWIZmY5SvcTBbtcDtg0UY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CW1SfG+j; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707394223; x=1738930223; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JPdk+Lb9y/P3Nc1X0LzlAL+t7jsIt4F4AidZQorL+eU=; b=CW1SfG+jfDU1PP14CM2wroyUCTmSr7SCkhTgBk/SaEyVQrSl8R3jD5/j 5Pngr7RKaQNmZ95cCV84lYDJsBdQXBd7XiCJEJU9LldffxQDGXe/R7GSc 2Nm75ZgVsSBqLyPq0gZdk5Q1gR9MWT4o0pYHTEQdyhLgkqlH7dT5uT/HI Ttbmi3EqGtSg3kxEW0UtVndx1fg8lLR0SdgHxOkxV0IiAqPfK0r3d+ywE OaypUek0AQPzw3tNABnNv56lyyBWjKVjsSPQDe2AOTvKvEVNk0gulpXZd V+GNG/Z3gsj8bHTMmzNqyPqeR/3IjPU6myp5wp+vchd0VpGPDWiHG2R7v g==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1341322" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1341322" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1625945" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.52.95]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:20 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergio Paracuellos Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v2 2/4] MIPS: ath79: Don't return PCIBIOS_* code from pcibios_enable_device() Date: Thu, 8 Feb 2024 14:09:57 +0200 Message-Id: <20240208120959.2513-3-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> References: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790332636845558869 X-GMAIL-MSGID: 1790332636845558869 pcibios_plat_dev_init() is called from pcibios_enable_device() that should return normal errnos, not PCIBIOS return codes. In this case the impact is only cosmetic because PCIBIOS_SUCCESSFUL equals 0 that is success code with errnos as well. Nonetheless, remove the inconsistency by replacing the PCIBIOS_SUCCESSFUL with 0. Signed-off-by: Ilpo Järvinen --- arch/mips/pci/fixup-ath79.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/pci/fixup-ath79.c b/arch/mips/pci/fixup-ath79.c index 09a4ce53424f..6a6c4f58f7f4 100644 --- a/arch/mips/pci/fixup-ath79.c +++ b/arch/mips/pci/fixup-ath79.c @@ -9,7 +9,7 @@ int pcibios_plat_dev_init(struct pci_dev *dev) { - return PCIBIOS_SUCCESSFUL; + return 0; } int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) From patchwork Thu Feb 8 12:09:58 2024 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: 198408 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp165826dyd; Thu, 8 Feb 2024 05:30:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVpKNvxuG2YxFD04JrKCCgkx+1G697RyB1Mhbzq2CS5WtNPKHFOKaQLztp/M9P+Z2YxqsWI9RJJ8pR9u9RmxSikq1M30g== X-Google-Smtp-Source: AGHT+IE33x9ncTElTLBT94Atc1plt3hEw1GWwTj5uaI2rF+UNQEzKGbg0kAHG67elH2kEnweJmJ0 X-Received: by 2002:a05:620a:1a89:b0:784:2f2c:7b47 with SMTP id bl9-20020a05620a1a8900b007842f2c7b47mr4017863qkb.17.1707399020047; Thu, 08 Feb 2024 05:30:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707399020; cv=pass; d=google.com; s=arc-20160816; b=jh85gCVDSYSl4kvpe1jiI//MfmOZrpquVlpKvaAmO5m3VMjUl+SMWSnjD9nxowhF/2 ceNpeH/2x8joWcTPCA4w0vLn5cXvlyA8FTZ72RX2qnNRy8U0GU7zLM3auHgygEkE+Hsp 9XzaGFcnCKIJpVyqcUI7ddGSuWDgKdqZkxAllwL89uRzAOkMydVxAEbYBzCAQVuwSCC7 vuixoerVO2ePqV3XaYn9awYy5KxAAVeibXvzLptNTyoXeoNfoaSwQJQSb86yCFEA6e4V mpwGrrQyGHamdLfvYhwjeaCIZpR7BTDIwxEf8pZt9+WufS0xEcmx/l2XdcZH3zqC9GND 2mSw== ARC-Message-Signature: i=2; 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=LD+OEtoNsnejtTiB6lpMqVzZBITAkyW93NiNWadethA=; fh=E7/rBIbRAdeYEecyT0zehZrWA6xbYBFy+QBsE6QzzSI=; b=JpZiwFg3Vs/nMseXE3qV2abj8FazcXaSYdGBnRTBPjoAewTdkRgSfdaToWbHd4UXTW ttMLjczf8y6ovyLYIRcHR39vYxwfLO+vMqIx8oo9Ty0FrApBmiZ0s+bXzIDY0lBacq97 0m6pu6XDfT4a7gD3FsvtSjRWvMiGNz1KA1w+R7JJW5+RrnJr/6UXCdG+uUIlCorU1f7G Ts9YE8Ym9YNd8mToGZd9ab2Sl37sIe/eDbhyS1/4ZoFCHCwihcEZHs89pDzmXgpb5Aov j8Jrg2CItJ32lmg6JXYnTPhsDThaHSg+EtXPy1zkFdHGfJ2RdvI2Y72RtVa3F3WN5sN8 1sjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HGk9B80S; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58029-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58029-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVC5zcljZMtnZXAViKpxFo/iTzQA6hM+uEiZmFyJja+naFMrdhbgjttARXx91spTsVbjAdUn6ujjXgrc8HWgXdiy6Lg1g== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j10-20020a37ef0a000000b007859fde04cdsi2498848qkk.769.2024.02.08.05.30.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:30:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58029-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HGk9B80S; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58029-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58029-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 208A31C28145 for ; Thu, 8 Feb 2024 12:11:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD2747602C; Thu, 8 Feb 2024 12:10:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HGk9B80S" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DBC274E31; Thu, 8 Feb 2024 12:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394231; cv=none; b=X0Gaqj83R+XR1HQpUHbigBAA26CawlpvzWLwvAGSAclLa2m0v3lfIxyYIjVWTPXYM0PH6oTfsvCXdFEZnOnOFtluR4gQIoWPbNt/3dC2wB4aT11Wo+TZfIMbNvn9Y4MXWXknFn0Bov811XC1WPQz45S+ojoFZzk6YxjGh5qnUUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394231; c=relaxed/simple; bh=ivHn9eMnqjSo1Ck3bYq1BD7aGM0SlKEDNFiHnIfMXAA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=N0VoSOCDejFg7twqSQsVA/e4Wow6qQLzLfJ3S5Ofn2kqfZAui8QMTfLeanINpDJ9oYl8EcxZtkXE4aEAb1q49pwIfMl7Q7XVOOBJJf4k8dG/1DT9Gi+HFpVHpEP20gJEApcroLqS0xjVGOkY8C1RStQL/r0LJka+Q2Ud0QcoHw4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HGk9B80S; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707394230; x=1738930230; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ivHn9eMnqjSo1Ck3bYq1BD7aGM0SlKEDNFiHnIfMXAA=; b=HGk9B80SwqoBiAWLwhqYRXOeRbh3ANwta7SzF/DrX5q9YQtqO4bApgo5 7TYOYjSdpoz/jfId87Ru+0avKbHkhdvUN7zRfpzoIIRlJQndUWAJSqVOM 5wDe4McS0KvZHys8rQM9kUbV2T87LggUENIQ3MRHHZukWPYKKUti9XwRJ bUqbJR3/gPWR9y2Sv94zTzP97r7npQgK1+IvooKqwQJJEGKFR78kn/4Ey a3InvSsZJy3JZIwkMskkMsHhGDJ6KEpy5YaXgA8goPQ+A7Gmh+QIrsLIj Bm3UbLjzF03UqP+3UuDANuKxPAL1M2lcptV7qVPzWvuIL2GLpuBccr/Dc A==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1341344" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1341344" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1625955" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.52.95]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:27 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergio Paracuellos Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v2 3/4] MIPS: PCI: Return PCIBIOS_* from tx4927_pci_config_read/write() Date: Thu, 8 Feb 2024 14:09:58 +0200 Message-Id: <20240208120959.2513-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> References: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790337634469860496 X-GMAIL-MSGID: 1790337634469860496 pci_ops .read/.write must return PCIBIOS_* codes but tx4927_pci_config_read/write() return -1 when mkaddr() cannot find devfn from the root bus. Return PCIBIOS_DEVICE_NOT_FOUND instead and pass that onward in the call chain instead of overwriting the return value. Also converts 0 -> PCIBIOS_SUCCESSFUL which has only cosmetic impact. Signed-off-by: Ilpo Järvinen Reviewed-by: Sergio Paracuellos --- arch/mips/pci/ops-tx4927.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/mips/pci/ops-tx4927.c b/arch/mips/pci/ops-tx4927.c index f7802f100401..670efbc5c585 100644 --- a/arch/mips/pci/ops-tx4927.c +++ b/arch/mips/pci/ops-tx4927.c @@ -60,7 +60,7 @@ static int mkaddr(struct pci_bus *bus, unsigned int devfn, int where, { if (bus->parent == NULL && devfn >= PCI_DEVFN(TX4927_PCIC_MAX_DEVNU, 0)) - return -1; + return PCIBIOS_DEVICE_NOT_FOUND; __raw_writel(((bus->number & 0xff) << 0x10) | ((devfn & 0xff) << 0x08) | (where & 0xfc) | (bus->parent ? 1 : 0), @@ -69,7 +69,7 @@ static int mkaddr(struct pci_bus *bus, unsigned int devfn, int where, __raw_writel((__raw_readl(&pcicptr->pcistatus) & 0x0000ffff) | (PCI_STATUS_REC_MASTER_ABORT << 16), &pcicptr->pcistatus); - return 0; + return PCIBIOS_SUCCESSFUL; } static int check_abort(struct tx4927_pcic_reg __iomem *pcicptr) @@ -140,10 +140,12 @@ static int tx4927_pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) { struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(bus); + int ret; - if (mkaddr(bus, devfn, where, pcicptr)) { + ret = mkaddr(bus, devfn, where, pcicptr); + if (ret != PCIBIOS_SUCCESSFUL) { *val = 0xffffffff; - return -1; + return ret; } switch (size) { case 1: @@ -162,9 +164,11 @@ static int tx4927_pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) { struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(bus); + int ret; - if (mkaddr(bus, devfn, where, pcicptr)) - return -1; + ret = mkaddr(bus, devfn, where, pcicptr); + if (ret != PCIBIOS_SUCCESSFUL) + return ret; switch (size) { case 1: icd_writeb(val, where & 3, pcicptr); From patchwork Thu Feb 8 12:09:59 2024 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: 198406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp162073dyd; Thu, 8 Feb 2024 05:23:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhKEJnE9IRf9nWM+AiYDGlkekwmMpTKChpSK3ZF14Tz5iDs+TG5v4V2Wqb3XThFem9oig5 X-Received: by 2002:a17:903:40ca:b0:1d9:c367:203e with SMTP id t10-20020a17090340ca00b001d9c367203emr9323739pld.5.1707398615279; Thu, 08 Feb 2024 05:23:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707398615; cv=pass; d=google.com; s=arc-20160816; b=CGp4PypO61fRWwr/Q1c1nQ4HqP54t6j/TD0s9wEK6yS17v2ge+YeW/Q974/YOfbfyV 4iY1F4Y9wzs5b6LHseBAm+0cXzRMOfllC/JfWzxx1AJC+RcSIN1hHuwQhZ5ODJb2UwDf 2kWPR3ycMs/2ZF3jqf1rhLQz2fMSmMfpLe5TPMXLO8BtwyZvEE9Uv0o0rtkv2Ngcmoqb fEbM3YqfjowdSB0+nabFZspjTzsq9zMka3FR3s594OeCyUak9UPS0Yj3LCUDaa2E37zr YKurFj2OEulCeOmORTXIXopzuX5OPdmb3eCqDTLdRminJi4c1/+wuw+FK/WSXxmR1dyr TKuw== ARC-Message-Signature: i=2; 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=8QRhRHOv4HqRL/I3bO0k6pjJfg69XDnbcYYxhyarmfA=; fh=0do+vPdClIz0LOgdVFr54JfEtMUZL0cVd2NxE9s0wHY=; b=osTsd60Om3J1hJWf39wLJ7/1KPrKgrDNm21GJkhBw7XmLxWz8lCxSvw2kvhzAVyP8B ttXt17hKoiQn9E8UMNLO4SYxSpp6yBOPX9zMHVmXfOT5GHjhmROUAyQyKLMtIlJhs0EZ jSW5uhwJi+/Rp24/B/VLYm3Yq/5eMUFA4MtVxb3yCKHZ7VVk+ZhU5e/5VIB0Fz/nNJnb zCoEuqKtu36qCcALbE3byKBvvSBJ8+dTtEMcOpKXdCLa+2f3CK/0QW8hnKoI0ouzc2ZK 62vBfyb9TyC6XELgUMdXYWE7hA5DNZRP3ttbF+q1PGN8TanQjqA7rwSSpmg0x9KNGmjY o+IQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Dbg6R4PW; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58030-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58030-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCU5nG6D6NuPg+ZG6kE/F1gtEvjb6jaJvBGSw0sBmetNRksRJw4qA8OG1bwu1mrU4eWIJX7yl9GDmwK2wHOlATCxX9ykfw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m20-20020a170902f21400b001d975878279si3917975plc.589.2024.02.08.05.23.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:23:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58030-ouuuleilei=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=Dbg6R4PW; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58030-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58030-ouuuleilei=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 75F3EB261F8 for ; Thu, 8 Feb 2024 12:11:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51395762C6; Thu, 8 Feb 2024 12:10:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Dbg6R4PW" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9F0B71B37; Thu, 8 Feb 2024 12:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394238; cv=none; b=Ykqbj8ROuxTOBXtMyhU3z0ptpHZ0CbOTkQWFL3U34S+Uff2AImjj9iodagL+bwIOHSLE+fFpZCHp7Y6MVodY804pORYXO/3jEFpRxEidlluDdmh0JjKmBfOVyiK4Z6UOd599MmnoeRVv793uWv7DlBV/WUj/l9G69P3zB55ttBI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394238; c=relaxed/simple; bh=gp0Jc6yWvRgb0ZO7bBbrnkeUPabEgmu355DVGo33jtM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=hAvtw3pcZjNt2+SGLa/+G6AFvXlhcohMZlRtViNpZwnUsN1Q0TqXP7hjS0C4xFjjvcA2lH4kLKfwzvGSaMzsuClAPUQWhlnGxibxs2IX1btoZTY82ByUXjvndBSfajZkf4obaOlOtemtPK6idmSKkk6rzIge7WAH6W2qqqbLktY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Dbg6R4PW; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707394237; x=1738930237; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gp0Jc6yWvRgb0ZO7bBbrnkeUPabEgmu355DVGo33jtM=; b=Dbg6R4PWkO1rd+HkAynLWhW/UbG7OYlF571/VBCkjZd9hnDFxHDP7Ts/ tiAdZw7Kx5b/ysNkBzpHz5/RG+Te7B3vJ23LAXyQY+aMgOBeUIJfgykDh 3DcfItG7wi9nwQzUnx4u8ViMNt9IInt3ia7ubsABVAqtAxSBfJOf2UyAF c7tRxkpEAGoyPBvND2dwl0tF5zpLXYkIVxpypvmr9CyzFvWSrqd7t0hEi rXhXwyiRGbR56IMEoQf4PSKFLoepyHZMdwcFMe+CKHUTdq9mEhzCoTYl3 zeRvON9VaSvev4MdRWVGkPSqJNkvreQRvZN6FlmptBCvW9sjYbGlztjie w==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1341362" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1341362" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1625964" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.52.95]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:33 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergio Paracuellos Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v2 4/4] MIPS: TXx9: Use PCI_SET_ERROR_RESPONSE() Date: Thu, 8 Feb 2024 14:09:59 +0200 Message-Id: <20240208120959.2513-5-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> References: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790337210569388938 X-GMAIL-MSGID: 1790337210569388938 Instead of literal, PCI error value should be set with PCI_SET_ERROR_RESPONSE(). Use it in tx4927_pci_config_read(). Signed-off-by: Ilpo Järvinen --- arch/mips/pci/ops-tx4927.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/pci/ops-tx4927.c b/arch/mips/pci/ops-tx4927.c index 670efbc5c585..37087f4137ee 100644 --- a/arch/mips/pci/ops-tx4927.c +++ b/arch/mips/pci/ops-tx4927.c @@ -144,7 +144,7 @@ static int tx4927_pci_config_read(struct pci_bus *bus, unsigned int devfn, ret = mkaddr(bus, devfn, where, pcicptr); if (ret != PCIBIOS_SUCCESSFUL) { - *val = 0xffffffff; + PCI_SET_ERROR_RESPONSE(val); return ret; } switch (size) {