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)