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) {