From patchwork Mon Feb 5 13:34:47 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: 196846 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp923755dyb; Mon, 5 Feb 2024 06:51:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IExxcEAdMPERkEDnxyqHO10sCsdgbrAecvkhBCC4yD6HTJsxBNIr5RK8ijHywzL04JiN32w X-Received: by 2002:a05:6512:2c94:b0:511:4a6e:862b with SMTP id dw20-20020a0565122c9400b005114a6e862bmr3398791lfb.43.1707144698648; Mon, 05 Feb 2024 06:51:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707144698; cv=pass; d=google.com; s=arc-20160816; b=Wju+frLOPisLCnOoUxAqpE2SWzBN9j2A4W0T+AJTjhuoCO5cq0sSA6ctu4Cvyrgy1f k7Y4BhS6yHYoW56x62/S0E1VPvxyhlLdIap9lrhkbTuOZV4lybTTvViQMu7/som3ENCo M8ki1m+vuqEPrPhQodGpsolwhirqPrOAMsVbbPIetqe0YYcVJ70lBnqCEkA080d7biG3 xQsZ2GKUcHso0UONDF/uZs1HBa766s0zTnZKcFap937zoYJJmwnGQ4Mv8v1GvLrasvqy Vsgqo0Q01WYPWyWcTd+1auiyVlVw2Tp5k8gcfga1Ve5JjgDDe3sKh4JQOWgQujWiIZz1 ipYA== 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=6v9b1WNjY9hFQ1NyB1bXmvMu93sBhtz2OuN2HVvjpuI=; b=CSuahiQaezUcHuvWLv7doWqYnSQKsS1YZvw6r+6SQCcGsomJ8dbwbRPSAjBwhh324v 8UvNwu2Vl5vi0cedMeoI/RZamPS0mU5y1hpNqo2iFCNrVyKMsedhcLSALmNFQ8McvIoS ZfU7jMjVTDxMMW9+xDvHnYNBKqNH4uXDKOYzA0NUZ+F+XSolwZM/OQ6VFe23B2vgIX59 WUK/VWXdXUAnqHAoN4IHzUAe13JQt9Khwz7kyQmiMiGVT6uIv7HGVNntbZJT0ncgb61N 9WyRXkcsLPRA6kf/jZ4F73Mx+u2a4g1J43V/Hez+10H0axbEasWXt4LcCiFyGywEwVGb CNVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UBGvnKcM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUrUNmOSQ9tCEIW1cW9ge/4J5c+fwUQKFSsHub1WGAR72asashUQsosPdWkUx5/WXKfDVT4E7XOUvDnO0DF67jg0OpCgg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id zj2-20020a170907338200b00a36008f4674si4195061ejb.160.2024.02.05.06.51.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 06:51:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UBGvnKcM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52723-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 2896E1F247C1 for ; Mon, 5 Feb 2024 13:35:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 824B42C195; Mon, 5 Feb 2024 13:35:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UBGvnKcM" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 263E528E0D; Mon, 5 Feb 2024 13:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140112; cv=none; b=L4TGJlp5q+DAMFcFaGkW0ffwB3sY43Mm9RWEjeRbzskJtOUs+suRnqXRbgLJc6xNrEhKQ2Bl0g+Dku4JLQXDyR1PKzzApocTJt9vI1NkE1Rqz+Ao+K6K7Z30Fd5jwRh0m0k4qOD8U6hL3SFMHD+4KZ9rlzYwY0kMI5uYNMWL+jg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140112; c=relaxed/simple; bh=X2Muz8pkoRwEhUvH9ti0eknrxae4vqD1PWSyx9/gso0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ZTbDEUT6ipbyUtKKeRS9r+nim7KLhBcZFzjGDWuMWYvWYJ1daY+effDB4GLAbryLaNzajaFtbQPjKWAya+itfMC3bBjJWBf+pglPzizGM4Qsjnd/LiBda3YgYG/BQfDAbQqsaBMlzoPeox4QE0UtdMDYLAI9/dE9K3Jbi++/JFE= 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=UBGvnKcM; arc=none smtp.client-ip=192.198.163.11 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=1707140111; x=1738676111; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=X2Muz8pkoRwEhUvH9ti0eknrxae4vqD1PWSyx9/gso0=; b=UBGvnKcMsGdbbJKLJjzHHHrCDQTkaaOfFnSj2p9Adk1HyVerbVSyCXJb zGEEMgKVvKYRmsXWdj1s5DBx3ln8xX4TjJ2a9sbxEGs61UjqknN8pSpFk XKqOK0Eq4VbUyCdJ8RptV/yo3uU+DKekXqV2ZFslnB0TlZq7eUMSTEOaG 5y9dYgicI6IwmAygqQsoKNNcVQODYFHTjm1cDRHFYx1YhegNQTVTGL66g HJgrP321qNf785Rkzy6OUHok2xHdNl4rZiEKBozXZzogwlZlDuW2E8HmQ OE0To3oqOSLw1JM56isFRg97OFTndlGvZUdYJEp5KOB/7bntjT3h1BEkW Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="11167269" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="11167269" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="5329233" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.35.237]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:08 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 1/4] MIPS: lantiq: Remove unused function pointer variables Date: Mon, 5 Feb 2024 15:34:47 +0200 Message-Id: <20240205133450.5222-2-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240205133450.5222-1-ilpo.jarvinen@linux.intel.com> References: <20240205133450.5222-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: 1790070959644015245 X-GMAIL-MSGID: 1790070959644015245 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 Mon Feb 5 13:34:48 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: 196928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp994425dyb; Mon, 5 Feb 2024 08:40:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrqK4zhv/FF2ANhe+THULHQM7fmO/AxAV7NKVe9FWky+RINALaLs1uekmcrf4Ug40sC1WS X-Received: by 2002:ac8:1348:0:b0:42a:b2b1:a800 with SMTP id f8-20020ac81348000000b0042ab2b1a800mr5647936qtj.26.1707151230324; Mon, 05 Feb 2024 08:40:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707151230; cv=pass; d=google.com; s=arc-20160816; b=Bkw5SFGD6PiDF7A0li8uStWc8FpLOR11MgeVdZiEdRyRO/imIWpsfDXFKQl8a/KOwc HOK4x2pWnFk4WYcPKLTiOpN1734b77wNYg0qsyMdA2HH/Smhnm0uj1lmdI8uKwhca2MF 6v2xcKLcORF13NjzslYqTkVqbo46altOflHbB6upVB9bX8LcDIilfthBPfao5l5utLdM CfFIMxnFTKTyk8Zli+fHoyUkZcO6TiW3GRMzODsmdRXqPh/MWeZALu2R/in6i4KuZTgy dLNGUYErSyjgkcQxFAHid/8rig5sRIYOPxUB0Rvs/4udTSGgt97WWkx0mfPBT49HASxx 0UJA== 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=3i5/0gS2+n2C7MgAPlyciEKGQZZet7WJtq+Q+3Zmh44=; b=wFXSmVS6GxXMsQfJhfSCvYQBBFTnuO77SjLqj4Xnk0qMQ1xAfwz1rOoWorPSWeBqmw 1agTxZC16CBa9GGhMGPVIPnd5jb9XXV5SWY2/xg4KlEyf4sedRxqyCKfOCONtObNQBVf +Us78NbypvzEFlWFHX/3V2fGBs9iTgDrHvKkQpcS3ZXdHHYV2kVnPpUp5hVAVQV3mNzK 2uczpFU2vxpH9oW3HSp+5+SGMJSYY6FFdNRUQ3v0TPDxh42/+dl6G5TzwJFqK41sc5wg 8HkjPQvpOF1RIA5tlqmhcOUdW5fYkir9CcZ1GvvdXaL9WdSIe2Xf5s6ApIWdXy6q3tXl PwqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WiDeMxQC; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52724-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52724-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUZ4crenFIq5SuZ10FzstlPfxNA5YL0Foe+AMjTnCn14NOcG1W8g5e5iPuvOM3NbrcCEJ21WY08lpygFCRmIPpR/bcVKA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bp42-20020a05622a1baa00b0042c0b9380a4si211415qtb.56.2024.02.05.08.40.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:40:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52724-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=WiDeMxQC; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52724-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52724-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 D140D1C23411 for ; Mon, 5 Feb 2024 13:35:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8061E210E2; Mon, 5 Feb 2024 13:35:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WiDeMxQC" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 145372C1BA; Mon, 5 Feb 2024 13:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140119; cv=none; b=X2CMXt+UV99a8zWqRNShlcHc1ykO0/H77HvmymO1nJm0vsSpg5LnNHWLbIC/augHk3KXIniy1W6O+u1ZvsPwKhl6HZGI4oDp5PKPoNTXHjHBOsN+fRFmD1/ZPbpEWCRoN+xcy042nQKBXS+PFHk4fdb5O92525s+ZhMQr4cVsPE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140119; 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=sbzmdGXmY3nLlMGUPnch950+TVAlEDWvC7lSXiW8bOU68cMbvnlYU0+xH5NvNysz+RULBmRoNI3l+JuGoVkwMkkzPh9u4GcCiHxIBMo4U/t58W9MZfIMesQn34oRqBsLkKZQzaII8yg+YNHo19e7TpaQzIhJJO5fgXESa9OYkOI= 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=WiDeMxQC; arc=none smtp.client-ip=198.175.65.16 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=1707140119; x=1738676119; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JPdk+Lb9y/P3Nc1X0LzlAL+t7jsIt4F4AidZQorL+eU=; b=WiDeMxQCxNFU6bVzFUr1v7ALuo5q5NsI6vOZ/a/s23OmLGBg62kNgAgB VFtcya12OImy3qgVOZ649BGVevEtkmeARsBE9K63lDRAoGz60I6HALPVd U1Dj+QkAX2KoaIueh7qofi0iobB9EjOT0Q+WuLD3+0tpGFWymBTENHc5W 8WT60f1m3PJyD3FGSFfQ28IlxB5XxtZJ/y+AWZtvO0ImKvX/UOQXojBrA XcYVJDorwGNdx3WtF9lm3KWAQwOgQt7SFvRc7RO3iHmigFykcQVlmRvVt zv0czQXQfyjGcFO5w2NsVcPxYtAZ7dZckor8QXeqBzyVAIjm4zi6Znwhh g==; X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="690053" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="690053" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="923228" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.35.237]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:15 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 2/4] MIPS: ath79: Don't return PCIBIOS_* code from pcibios_enable_device() Date: Mon, 5 Feb 2024 15:34:48 +0200 Message-Id: <20240205133450.5222-3-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240205133450.5222-1-ilpo.jarvinen@linux.intel.com> References: <20240205133450.5222-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: 1790077808490324778 X-GMAIL-MSGID: 1790077808490324778 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 Mon Feb 5 13:34:49 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: 196849 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp925526dyb; Mon, 5 Feb 2024 06:55:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrvOWJ+N++/SWXSvtCpY3FKRHYHwbEVJpMc+nBanUqyYA10966wjy+CxVEW+14nRKYA3Gl X-Received: by 2002:a05:6122:a1b:b0:4c0:25db:3618 with SMTP id 27-20020a0561220a1b00b004c025db3618mr2508839vkn.0.1707144909786; Mon, 05 Feb 2024 06:55:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707144909; cv=pass; d=google.com; s=arc-20160816; b=ghhf7lMA1RS+QEK9+Em/MsmhO5/l7XShvRhJwHJSa0QLZOr7Zm5qVDYHDfSd43JFPa wCyhEsSrH7q9FhRGD/9gFG2PGbS74jqYDvmiYSVYOECmsw8uVlgOIyrWzYb0Ee/p6/Tz OwPIeCHolRIypkD2SZ8IochS5G/YG0ouXXH/SHBJsqPbWrkLTgLzJgh7t3h/KblAOsP4 f+DMqjBOPg52KTraDg6vULBydlL4R7P7eVjIb6jal0i7iTrEqckL1S3wyJKXimqVsVFc Jf3OS0DAQubSxxU5Ra5I/+xn2QbznVS3Cnb9UNNyJe/97cO8IiEr/E5yOXKMqj3hQdiP VDzA== 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=sY8tjdT0LtWh1q8qqSFPRl+XyvQW6iZ+u+W+ZjcBNvo=; fh=TTsGqUb/cvSZh/P11HnWOIqkdkAij41Y64u7GLmOWCA=; b=nbPBEUrNgN2fSPHCGb9uBVakOXov+PP2gGXfekjMNbk3wSIVTP5Ju4hAkpYoTEjN1B UBtIIsyZ9hcdpsm7JCZC/cLLFGPMAk5OF1+SIpOp5t4JSAyxOYLHjxGboB1SZsiR0Atv lZyAYnCZ5CBbLv/RQdEQNGQ5yB0QfRcJO5/fbtTt9UpqJzG2hUR1e5T9oF+Of2D7ZzYF eTcbCcZNlYVv0VayuNUXZZG1Ku9jApl51qv0ozCqsaiXhFoaSTnhqtZd8bSI9R6a42Wf W6qvdFnLe65clOWxHg62MUYBxqNYk5+xJ+mwPdDoq3VAHvNjrEpYVCdzQ94jWe1veN4v Oybg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RcUITd3Q; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52725-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52725-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUloXETGHDLy9t/0hDgYSZAc9cDkYI+RhLz2uDzQMc0uou6DoDdFrztrFOlQQivUtqRM34QAFGRV9I0lWKuQpYWdLsGOA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ea11-20020ad458ab000000b0068c51eb0a95si69686qvb.83.2024.02.05.06.55.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 06:55:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52725-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RcUITd3Q; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52725-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52725-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 42FAA1C23707 for ; Mon, 5 Feb 2024 13:36:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E138724A0F; Mon, 5 Feb 2024 13:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RcUITd3Q" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 BA4022260A; Mon, 5 Feb 2024 13:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140129; cv=none; b=Fz2C6BcTUfEeKrBqN2DOkyU3On4g3eeGzHagTLVoAv1pst5nPCSud+a3C8XvXgXUoL30COiAOfboMNxuKQmhDO4bPY9+bEQ33frv0dTvjY0pw1EyrK0vhQ6QG2e8LYwyrEnpvak9gnWx3MKShpie0vOF83DI7VqwpB444HZCW7Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140129; c=relaxed/simple; bh=Q3+800fhd/fwWAp0F7nWO/Ih5K1cq1Tqdf0ZT226Bzg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=VbwOxQRJ2+zi7NvXDdxPfDQNSx4GbyGd0aHUMsSxzWU5WQcDhOklomCRcPlvwrjtdUA7vF82KUZDlDmz9foXyipSjNE8HNc4bVmiC5XfQ8ur+I+NUCBJauyQprksXj4CB43J4RGV7cFwuhEq96pEDV4UW1eI35xVEimyKeKmY4w= 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=RcUITd3Q; arc=none smtp.client-ip=198.175.65.16 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=1707140128; x=1738676128; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Q3+800fhd/fwWAp0F7nWO/Ih5K1cq1Tqdf0ZT226Bzg=; b=RcUITd3QMEvhfE9bwSJwnvNIVikJeqzeg6S0BGkUEuXmM0I3+vJgOGGY /zKgfrSPlZ2adJel2Lhxt/n5w/Ins7HkMr7k0mL/THR+q48IniqVfzHgP eu38ospjuK791rZwodxB2dkhhgZM2ryDKfqS5O1lGCMMGRdAgQyh8YpeQ 8cUNjjIwTsL2EJvNHKq3KGs3c2JPfFgKpPW85cl/Rp8tqmXUU7hpvgAcT T99xRZ3jFfAgsaBkOtr6wSnP02GrhpJfmvK5Coe+/VYJ6wjWPut7gq5JP 5gAZiTijsiBfbdeMlAgdv3ByiKydRu+m1UHxIJCbPKHl3w0mV8SwDB7ZG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="690079" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="690079" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="923292" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.35.237]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:23 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 3/4] MIPS: PCI: Return PCIBIOS_* from tx4927_pci_config_read/write() Date: Mon, 5 Feb 2024 15:34:49 +0200 Message-Id: <20240205133450.5222-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240205133450.5222-1-ilpo.jarvinen@linux.intel.com> References: <20240205133450.5222-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: 1790071180477709811 X-GMAIL-MSGID: 1790071180477709811 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. Signed-off-by: Ilpo Järvinen Reviewed-by: Sergio Paracuellos --- arch/mips/pci/ops-tx4927.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/mips/pci/ops-tx4927.c b/arch/mips/pci/ops-tx4927.c index f7802f100401..4dd8b93985fb 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), @@ -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 Mon Feb 5 13:34:50 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: 196963 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1038318dyb; Mon, 5 Feb 2024 09:51:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/J8kjXd7KjYp3AiP7XSp+ceRZX5cwalaSd6S7xsTAvu10vNVmN4gr0/SaT8jn9BBz/Vlk X-Received: by 2002:a05:6402:3455:b0:560:64f4:cbd1 with SMTP id l21-20020a056402345500b0056064f4cbd1mr33194edc.19.1707155480596; Mon, 05 Feb 2024 09:51:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707155480; cv=pass; d=google.com; s=arc-20160816; b=ZnKGgFE0YLh6sbAadUE145lACeC2NQkC8bJxWFXtroyDUYVSaG8K90IXjVWod8ynna +6sR1mBbORlbuGiGwy0jn4dq+jZ/mw6yml85rbxzJ1sEscp87MVfeI5Y4Z9WAGQF2b36 NcmxiSWQl5xHwjupgvSiiIIyNt6PvaOmu7q1iWUCtehlHr4ayZ35fjYfC8Vb/CesEJ2k NNXLFz8Gwpb6y4lQxWQlKV4vWraKIINTVp2g8+GTI8c1WvyB7d+06KbibxIlmb/TqI5F CwgsowZHPjModLg2DuMUdE/Vx+4wx0kMIs7kiT7YIYToqBXUICeH8KDq1cIyELfNM+VY EdIw== 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=j75kmtl7vgj4mf6hqsPoSMnxKsLETHZZsLxqODOPOjA=; fh=qSB1RwFWsxDLfC13okUR740peHV3PdGAC3c+rKSULLQ=; b=esPExF8+QPgbMMqNCTH+8i4W0L9gI9/6f0Pm/KJnbJhwV9K+8IBSx7dgQKXPTiVUZN o42ceXjXWg/8QsWwR74jnKh7bz1FFwxYewyPuKrv29K905nBQSIvBkwhDFQpBkP/qbe4 M7QrWdRD9L2hKm0MklBCngGRVXKRiuQu9xQEn7rfmiR7mso9pB7MV5pjCHFksRA8Nj9P GtjWDXUw4dr8NkGWiWZ8tPOzJvZS/IUXK+jpCDzDQOt/ov6IIMhEgoegSJL0tQdkZT15 qzzFZi+zFsY7vJrLMeqbEFMDB1HatT0+I17jUaV8MMBM+3seicSQqKTfplK77NOD4ZrB bF8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=k1g2MzPJ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52726-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52726-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUNUqVVoup5ZrU506tM/qFpAcMKmYwzEi9SIzZ+eagBr5HjvLhMw5x9FVhVnkBC1ZVADBhxtgfqWlAlAqjqkubeioc92A== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cq21-20020a056402221500b005605c48d9f1si107954edb.417.2024.02.05.09.51.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 09:51:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52726-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=k1g2MzPJ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52726-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52726-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 4910A1F23A24 for ; Mon, 5 Feb 2024 13:36:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CC7026ACD; Mon, 5 Feb 2024 13:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="k1g2MzPJ" 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 65B4D28E1B; Mon, 5 Feb 2024 13:35: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=1707140137; cv=none; b=Hj1f2f1LCZPRPRZk8lzZsXN3ZV3zA+JslzCVPzsuQdwjE+eQy8DgJIoR1HvgwHVa1FauB6UhJhv5CV4/Ua7y0wb8Nbmo3YDnaoa+Fx2r8WkFEKSQbjThFcUhTyiyaAgmdBtmQBlqCemFDEQsQEhBRVJki8P9hdW/jzHz6WoCuOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140137; c=relaxed/simple; bh=w3ZRuyQJPqlcygfflqUwjB5dmA/ao32uXeZE76jR82g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=o05OHy10fhW+wrCYiuIMh5VVkNDb591WRKtT8miEgKmAbW5iboLx5dJyJztAN1HRKFbwX7QmbqxytjwDTWbCp8EplZ2iDGu+XoMiLvopHMV61wKMnCk5MuosH8dCNy017lwT60eZKLWB4OZTXgdlEqUyyZJen/4VDSvjXDrq538= 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=k1g2MzPJ; 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=1707140136; x=1738676136; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w3ZRuyQJPqlcygfflqUwjB5dmA/ao32uXeZE76jR82g=; b=k1g2MzPJgPT9UN6EmG5QeXVFGb8i3M94xCGmAHBDHlcdLXHiTScYxEqw YA7fBe3GC8OSUiuepnwNTritQ9YtCHkYz96lXXgWJ/7RuFNA10lSHycZH qiHLYlH8ZPctzFK+5+je03WKOVc3qxYBbUE+BSqGkMR35W9+bbYe+Sigx r/99gV4vil9JzVMDLfCFMSP4S5VdN0R3I2cs/2zienY51LQzJBeGpE8L3 ykSH3qQIDgs3fgT2Qt9ErcE948h5ulAHzuspZpjgHMkzhE5/9xw2bNpOi e5dqII+lmQ0hOmPLK3DbkmKbcCnPb77klvHiHkZ5/i9/GvL2oMLCQpJDV g==; X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="670979" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="670979" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="933155273" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="933155273" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.35.237]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:30 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 4/4] MIPS: TXx9: Use PCI_SET_ERROR_RESPONSE() Date: Mon, 5 Feb 2024 15:34:50 +0200 Message-Id: <20240205133450.5222-5-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240205133450.5222-1-ilpo.jarvinen@linux.intel.com> References: <20240205133450.5222-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: 1790082265367498507 X-GMAIL-MSGID: 1790082265367498507 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 4dd8b93985fb..2db4938d3c75 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) {