Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp193628pxb; Fri, 15 Oct 2021 03:42:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEoyIoH8S82I/7u9qd/HMgUFLPKfT98HFCm7UBUjeyFEHI4a4YtU+7RROaaT5Da8Q6H0HN X-Received: by 2002:a17:902:d718:b0:13d:e2ec:1741 with SMTP id w24-20020a170902d71800b0013de2ec1741mr10406107ply.38.1634294558585; Fri, 15 Oct 2021 03:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634294558; cv=none; d=google.com; s=arc-20160816; b=uwttZY6/ykiZSWS1oDLO+KWcNUhUOSNNi85bCEwm5x5yb/AReZBZHFxWtpg8h/5/ZM vf1Tvv7vZi5TMWZPYPBePSQ544OsI5KKxZV3mf7VfIuEjsvefA7ZeW3/TTGAkM0RHXdR wj4xtXL+3ZcU4AoTAgBqMAXpMM4pSPUh5LCYNuxndcDfcc6C9enx6s7XU5h+UjmXqzLX 5ZlSwpNXuu7kqATPVrV2GM0oilrYHK5Oa97Gvu6b+p5hIo8N91Sp25U/8159NlDE1rnp ygctlaAtg+JGn9ONgQmnOSRLPFt97qT1CNFfE2OGDNyH9QF4SlkgPqYTqLj7H36LGJBH Jqxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IpSaQEoG/BUW0J8Sx8FaAR1StsiXGFl1oWEx3RqNFrc=; b=B/MUoImKVJmEHYg1ReKlkzNCEXDETxr1cDnXn8J019JwMLN578MFPCzSY3wvg1TPVw 1To38TylzpyWuabzBg2eAmjunMnhnMO37CI3o5Qf8ci1RHHLnY8Y30tATZnrfmOrJ5e7 +Q2XYf0AtI0Zh+NDaqJWqOvD/Lhc9zPWooH4GSzp8lQ+s5S9Zo+6gt/bWul4Limbe7a7 fOoBgqmKpbZunIiabOF7rux7ivSFYmNHaPnDmSe688ChJjrpWxdblwdxPBXR9IMz1bMy FxFBNXEelOPU6womej8+vVWExXvE6MFnbbQClFyWNe4pxV407Ex2DO1a3hmxAF+n/Vsa WCsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me15si1761741pjb.43.2021.10.15.03.42.25; Fri, 15 Oct 2021 03:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234818AbhJOB5l (ORCPT + 99 others); Thu, 14 Oct 2021 21:57:41 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:41535 "EHLO mail-lf1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232271AbhJOB5k (ORCPT ); Thu, 14 Oct 2021 21:57:40 -0400 Received: by mail-lf1-f50.google.com with SMTP id u21so31836479lff.8; Thu, 14 Oct 2021 18:55:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=IpSaQEoG/BUW0J8Sx8FaAR1StsiXGFl1oWEx3RqNFrc=; b=CisFiM0kfzqffgg5YJnU8l8n389+vzp9DJ6fCyGsTBRqDJ1RZ8Okfjg6xk6OuBFsUE 8hSnWHpmltiIk8DqZGiprplOLMIb9kbbeuzVVOC01Xta7kfj6CDmu+v7l3x0v+jexOde 9/I7wx7D23+wgesocSGYIII4zanjYrJoc+Rlug/BIEUMko1fZtWtk8xOYyOw5PM+siwh TmvzCWo+iSFq8LwCIwcRH+szd8uvpFfTveyWO/p6hACN9q03y8XhZ9BrhV4dPMgWffSO cGb+PklTCHlybdyMBH6BSUUGWeA206WhhSDjLQ/ciIkFVPogTeTXMahQgFJ9Ygfnhhg/ 6qKA== X-Gm-Message-State: AOAM531L/fAlgIkhtk0HdPlUj0yeWCzH/WlaKWDld8mFkF2TJNmkba0v LW9XU232BZq7AytXc6x6o3GSx0Mln8I= X-Received: by 2002:a19:441a:: with SMTP id r26mr8202587lfa.365.1634262934027; Thu, 14 Oct 2021 18:55:34 -0700 (PDT) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id w13sm370241lft.94.2021.10.14.18.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 18:55:33 -0700 (PDT) Date: Fri, 15 Oct 2021 03:55:32 +0200 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: kelvin.cao@microchip.com Cc: kurt.schwemmer@microsemi.com, logang@deltatee.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kelvincao@outlook.com, Jakub Kicinski Subject: Re: [PATCH v2 4/5] PCI/switchtec: Replace ENOTSUPP with EOPNOTSUPP Message-ID: References: <20211014141859.11444-1-kelvin.cao@microchip.com> <20211014141859.11444-5-kelvin.cao@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211014141859.11444-5-kelvin.cao@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+cc Jakub for visibility] Hi, > ENOTSUPP is not a SUSV4 error code, and the following checkpatch.pl > warning will be given for new patches which still use ENOTSUPP. > > WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP > > See the link below for the discussion. > > https://lore.kernel.org/netdev/20200511165319.2251678-1-kuba@kernel.org/ This makes me wonder whether we should fix other occurrences of ENOTSUPP we have in the PCI tree, as per: Index File Line Content 0 drivers/pci/msi.c 1304 * -ENOTSUPP otherwise 1 drivers/pci/msi.c 1316 return -ENOTSUPP; 2 drivers/pci/pcie/dpc.c 355 return -ENOTSUPP; 3 drivers/pci/setup-res.c 421 return -ENOTSUPP; 4 drivers/pci/setup-res.c 433 return -ENOTSUPP; 5 drivers/pci/pci.c 3600 * Returns -ENOTSUPP if resizable BARs are not supported at all. 6 drivers/pci/pci.c 3610 return -ENOTSUPP; 7 drivers/pci/switch/switchtec.c 330 return -ENOTSUPP; \ 8 drivers/pci/switch/switchtec.c 616 return -ENOTSUPP; 9 drivers/pci/switch/switchtec.c 824 return -ENOTSUPP; 10 drivers/pci/switch/switchtec.c 1559 return -ENOTSUPP; 11 drivers/pci/controller/dwc/pcie-tegra194.c 2244 return -ENOTSUPP; What do you think Bjorn? Jakub? Krzysztof