From patchwork Sun Aug 27 13:36:57 2023 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: 13367264 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63FA3C83F01 for ; Sun, 27 Aug 2023 13:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231317AbjH0Nhx (ORCPT ); Sun, 27 Aug 2023 09:37:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230449AbjH0NhV (ORCPT ); Sun, 27 Aug 2023 09:37:21 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29A7D139; Sun, 27 Aug 2023 06:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693143438; x=1724679438; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=jtC8JeCuHQBuQkuR379mt3V20ulh/Vbw9AsnZRG2Oak=; b=BxXeLcrO6PGUCpFVtXKmyCpHhGLkTlw4Wrf3lf+2vHBNkUKFo2JJUG6g /whlZRj5deWRJvTm0eWCMrZC4L5lHSAFEq4EM34GUCT/uUgh9uN5Rha2E 9hkhjHIZFIwdZaFVZdcQQHwGx06LJ2lMbe3wmI46hWcHOWL6+/4vOEUNk 3zzPhQh96dIe5T4rv9xU7bbPGm7E+zHAte3nYSpqaRvPRtodfdCsBsXYj sv1dgkwiHiML9PlPyMSqb0CIjpcnhTtuRaXg2usZEb3INZB+ztc38SyVx qHJR7rdHUkXhhx5HSsfax0Fy2SGkod6Ovnfk55Kc/04kKePajBNMD6Kyu A==; X-IronPort-AV: E=McAfee;i="6600,9927,10815"; a="354470944" X-IronPort-AV: E=Sophos;i="6.02,205,1688454000"; d="scan'208";a="354470944" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2023 06:37:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10815"; a="1068752070" X-IronPort-AV: E=Sophos;i="6.02,205,1688454000"; d="scan'208";a="1068752070" Received: from dplotkin-mobl.ger.corp.intel.com (HELO ijarvine-mobl2.ger.corp.intel.com) ([10.249.41.231]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2023 06:37:14 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-pci@vger.kernel.org, Bjorn Helgaas , Andi Shyti , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v2 0/8] PCI/treewide: Cleanup/streamline PCI error code handling Date: Sun, 27 Aug 2023 16:36:57 +0300 Message-Id: <20230827133705.12991-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org As the first step towards converting PCI accessor function return codes into normal errnos this series cleans up related code paths which have complicated multi-line construct to handle the PCI error checking. v2: - Moved ret local var to the inner block (I2C: ali15x3) - Removed already accepted patches Ilpo Järvinen (8): alpha: Streamline convoluted PCI error handling MIPS: TXx9: Do PCI error checks on own line sh: pci: Do PCI error check on own line atm: iphase: Do PCI error checks on own line I2C: ali15x3: Do PCI error checks on own line PCI: Do error check on own line to split long if conditions PCI: xgene: Do PCI error check on own line scsi: ipr: Do PCI error checks on own line arch/alpha/kernel/sys_miata.c | 17 ++++++------ arch/mips/txx9/generic/pci.c | 43 ++++++++++++++++-------------- arch/sh/drivers/pci/common.c | 7 ++--- drivers/atm/iphase.c | 20 +++++++------- drivers/i2c/busses/i2c-ali15x3.c | 11 ++++---- drivers/pci/controller/pci-xgene.c | 5 ++-- drivers/pci/pci.c | 9 ++++--- drivers/pci/probe.c | 6 ++--- drivers/pci/quirks.c | 6 ++--- drivers/scsi/ipr.c | 12 ++++++--- 10 files changed, 76 insertions(+), 60 deletions(-)