Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp249738pxb; Wed, 20 Oct 2021 21:31:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwucBkICEST1xSIjUPCXpbMGn5aJRP/Zl9q5Chqmi84nm8AbU2JRM1zZ8VR9JDp4WEv29GE X-Received: by 2002:a17:907:7646:: with SMTP id kj6mr4513964ejc.152.1634790667422; Wed, 20 Oct 2021 21:31:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634790667; cv=pass; d=google.com; s=arc-20160816; b=kq9GYd09KMFTXln17B/UomtOjbQm1EBbyRt78PpsTJ2HKr4NCWnOfMDCAMZcIuM1wB yQJ/0JvP/TgGhwaLS9aPx8BNHM3sHyRrjdYQcefnzmOFnwE/TXJ94dUHotyUFJb1oRQV QfmHTH74VtH45xJd89FKr0h9JMvGfHhpgNp2YQNdesLqELrvFdKIvkWgr+MaCT4hByR0 hnvyuMD6SsJ/59S2ln62rZq2U0KNcEK3QrfzbhdzsfLl13+tu02vPpd4W6fGLRo4IbR4 etxDfAD+OBGjv5Q3mTM1NnkYMqtvWNZ6lmDcMjd11Uo6tRkQp0z6iDw9qlFRqkHlHORe ff0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=6z698OAcAk6uS76r1Va7eFcrgC3ISL2KW1oykeUW2fU=; b=EOWMiJuuOZCOxD//MbbR+M+2+qaN0afhDTG2db4hT9Om41CpAednFw8RUlEyJwJcfk lJA9pu649i/8dyDag9Urkko6p9QtJSa07E8JG9CI4tN0mVzLeB6O87plDYUBngf74c1C 1hEYA3nVlwKxRG9sTqtzxawfkzntNZ93A9eVTN8q2OQ6T0uDvwzN9He4JH03Y/lW59EA 46ANU1Gv0WD/BAkV6EAVEuHx3ZRAnEQdnAfKl/ql2yaBK2DVG9+HB87Ea/ouhtfO9k4L +36Xex0WmPpzEi3k9MSFVCIPQdBmpcCh0Vgd5HSrrGVUMjvqJIfFIisKy/5xqOYHAhJZ bTSQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=hkMhe4ed; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.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; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si8845401ejo.671.2021.10.20.21.30.43; Wed, 20 Oct 2021 21:31:07 -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; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=hkMhe4ed; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.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; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbhJUE36 (ORCPT + 99 others); Thu, 21 Oct 2021 00:29:58 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:23178 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229452AbhJUE35 (ORCPT ); Thu, 21 Oct 2021 00:29:57 -0400 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19KLUUPZ008628; Wed, 20 Oct 2021 21:27:39 -0700 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-0016f401.pphosted.com with ESMTP id 3btu389jhp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Oct 2021 21:27:38 -0700 Received: from m0045849.ppops.net (m0045849.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 19L4LwmJ011850; Wed, 20 Oct 2021 21:27:38 -0700 Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2170.outbound.protection.outlook.com [104.47.55.170]) by mx0a-0016f401.pphosted.com with ESMTP id 3btu389jhk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Oct 2021 21:27:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PH1W8djYFPMZrdntW5t6RV4DREogqW3Xii2QchyC7tTey9wpUzK5dZnZQMXARuHij9qjUIzMIncXb04c0LcKrz7wJJFpwgt7MYFcJll8mSfQe9RVEYumlmbxqD86rIzXA/veI2Vu1fnNgAOikral0ELziHoDMGpPqWdM8nLXmGrDIvN3MBo+pBxpqeLxlPi7nM+4IeJX+9ekmxU5ECEqBfUiN+4UIEYDgLNzy8O8afb0iGkmKEtO3tbyN5eOBs28fQJhmnY4u77DukZ0V5GxFba3epSaKTQjFGC7ofuJqsL1x+INxNHd10YeMO76xaT8390XmDPXKoD6BtYxQ5K33A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6z698OAcAk6uS76r1Va7eFcrgC3ISL2KW1oykeUW2fU=; b=Aw6dpwovYB1fQQN3h0djR4aqa9NmRsLWzwskY0F0SU5HYw0o0qDlQ1ni0K3iskazuGLOHg9BcPX5WMTFWhMG7pcm79a9KVFzZ3LE37m+Iqk80ZLdFGCjkYtFTFTeTP4qFyz28QDxVzJwdrXP+64xpKpTZ6+254AzC8wNoSMwk+5qPYCsidYmrjl6O/tGlK21+4x0YibUsnTyD1uZk86L070LsxxwrN4ubKIgg72RhADFG/CRRKti2tY2GE26lEpEjDztaP391DAi7yh/ZGB7Y5YORYIm/z8ZUAtCDbif+8xu4PHKOGryBu6Zqa42KcBALRobxxJwlVeVx+igQfFW9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6z698OAcAk6uS76r1Va7eFcrgC3ISL2KW1oykeUW2fU=; b=hkMhe4edLaK475781+1t6+RHQXjuk55B3YtwRfY8PH4EbdHHtUYgIueWQJrBS012T2ctGt1eOWuN9RKdEOqY0ygLIWBI9i2EbS3WAzn9CtD+9r1EaSdga9ASq9wjBDzyM8rdRSFuTR8mPZuLoozLbQHF8KKtUelSJzwTgZB2094= Received: from DM6PR18MB3034.namprd18.prod.outlook.com (2603:10b6:5:18c::32) by DM5PR18MB2135.namprd18.prod.outlook.com (2603:10b6:4:b8::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Thu, 21 Oct 2021 04:27:36 +0000 Received: from DM6PR18MB3034.namprd18.prod.outlook.com ([fe80::75c2:4fd:a07e:fe18]) by DM6PR18MB3034.namprd18.prod.outlook.com ([fe80::75c2:4fd:a07e:fe18%4]) with mapi id 15.20.4608.018; Thu, 21 Oct 2021 04:27:36 +0000 From: Saurav Kashyap To: Zheyu Ma , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , Javed Hasan , GR-QLogic-Storage-Upstream CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [EXT] [PATCH] scsi: qedf: Fix return values of the probe function Thread-Topic: [EXT] [PATCH] scsi: qedf: Fix return values of the probe function Thread-Index: AQHXxb9uuNMPn5nJGkKEM22Ji9UpcKvc3CLQ Date: Thu, 21 Oct 2021 04:27:36 +0000 Message-ID: References: <1634740388-27238-1-git-send-email-zheyuma97@gmail.com> In-Reply-To: <1634740388-27238-1-git-send-email-zheyuma97@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1bc427b5-9c7a-40f0-fa11-08d9944b1c21 x-ms-traffictypediagnostic: DM5PR18MB2135: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OeA+7+CEcI8EvLW0K55YPcSRZ/FU2ISqUfmM14d8YTdF0+S3N7Yz+7NGcqd2FTTi2yJZmffL7z7UjaTOCJWTJiog5DfQCz0m53zbviS0b/SWLghAomyI9QOso8nOCbTBoMZs2Qwr3ywrMOyL0fczt/OozcnTdRQubRgU4h4iRVRk3CQu4acWv4azRhOJ0HQ++eaU9+Hy4gTjc5KmQcCeS2heD326E9hhYAtbdIrgxLst6QvT6fmn9rJnP4sUXmbzWTgepM/Y1nmJeWkOH11aXnULgUcfftOkqlQFZtuMBuloOxhWx2pECbhmYZlvjPvie3NLvfhMYdw9cP84SnYXJljRDrIcUpj1UasfoeBo57ZR647uSeU4pVnHAHGlEOzOZ1enTMRypG2UOU2wMVAnLpQbfJCjjoZvwHSDTv1yOafWA/eTl3gkQs+KrGp58tIIIlJXWDK1cAUEl+0OQzKO9Ec5U2puvDbcfYpL1716rfahDIhbtAfwFU0rhRQkYsVITCNtzcxSr7kOf6fGmhh92BZmCEZUUfrY59K1x949ts5j7i+oRafYsUx2XskOog2FiT5e/GRte9IGRiizLmo/SZ+7Cw68IImwCfwDa2L97S3dM2W09680J/ynB2ouKPThkA7GOLPB76YuP0TGrY/lQpo92ymNyS73Cag0MvOUqZhTQVoK3c10PO3TCf5NrLC3ySxwZsPjD14lDxkYyCvN2g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR18MB3034.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(83380400001)(186003)(66476007)(66946007)(9686003)(5660300002)(66446008)(38070700005)(6636002)(8676002)(2906002)(52536014)(55016002)(508600001)(86362001)(66556008)(76116006)(64756008)(7696005)(122000001)(38100700002)(316002)(8936002)(33656002)(54906003)(110136005)(53546011)(6506007)(4326008)(71200400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?T1g208ttCz2hSOae9d0n2d+t4x36lHqnFh+H7zU99Z9MKuZ1AvLLzcD/9z6W?= =?us-ascii?Q?UlStWs0tw/zFKSkHrsGNwW395sFXgSyyemmggjTWG6M/n+VgLDc/WDqHox12?= =?us-ascii?Q?Y/83VblC4eGYfMYAO0r5WvrqoLKLBaaV4qOhxZWbiV+6mSEyoxQPW/+5T4dI?= =?us-ascii?Q?wU8W9JYJcvvW/CyUVNXBFybGTzRY0iNPWAFtxVVgiQ6oDl9y2u7KQx0LPTMI?= =?us-ascii?Q?5i9UweAxSaCA2UQr5Vi7Xp1u0CUbCgWulNqMaYSMaIFigq3H4dbs8ON1KPRv?= =?us-ascii?Q?zGkYm4tcL7hFRLYOa9ddMvJqMYHZUbxrpTJhBQ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2XwRDafeEWzKSWBTyVhiHK2UEKal7omK5Pv5o3DYsxZr76snB?= =?us-ascii?Q?XKI9LdrwXKPXqNU0G1BxwWD22R3Burm520jL/LPdijDCbgiEeqvr5faBR/Z+?= =?us-ascii?Q?TL9lt5rIwkSjVNRQcQ7NUKxu0OmGjB4R5C5HuWCPZ/MqJW2JHbG5qL6YKB2U?= =?us-ascii?Q?vI+XBkC0VbYPa3n1xjNBMid4pFzU?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR18MB3034.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bc427b5-9c7a-40f0-fa11-08d9944b1c21 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Oct 2021 04:27:36.3963 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: skashyap@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR18MB2135 X-Proofpoint-ORIG-GUID: cnqadCe0JVBzc68zw-Q42oGrYotIa6N8 X-Proofpoint-GUID: 9NelQdZ98YTI_1mFFSQoS4gNJ17EcmDQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-21_01,2021-10-20_02,2020-04-07_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zheyu, Thanks for the patch. > -----Original Message----- > From: Zheyu Ma > Sent: Wednesday, October 20, 2021 8:03 PM > To: jejb@linux.ibm.com; martin.petersen@oracle.com; Saurav Kashyap > ; Javed Hasan ; GR-QLogic- > Storage-Upstream > Cc: linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org; Zheyu Ma > > Subject: [EXT] [PATCH] scsi: qedf: Fix return values of the probe functio= n >=20 > External Email >=20 > ---------------------------------------------------------------------- > qedf_set_fcoe_pf_param() propagates the return value to the probe > function __qedf_probe() and then hits local_pci_probe(). >=20 > During the process of driver probing, the probe function should return < = 0 > for failure, otherwise, the kernel will treat value > 0 as success. >=20 > Signed-off-by: Zheyu Ma > --- > drivers/scsi/qedf/qedf_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.= c > index 42d0d941dba5..52f2a52bea2c 100644 > --- a/drivers/scsi/qedf/qedf_main.c > +++ b/drivers/scsi/qedf/qedf_main.c > @@ -3161,14 +3161,14 @@ static int qedf_set_fcoe_pf_param(struct qedf_ctx > *qedf) >=20 > if (!qedf->p_cpuq) { > QEDF_ERR(&(qedf->dbg_ctx), "dma_alloc_coherent failed.\n"); > - return 1; > + return -ENOMEM; > } >=20 > rval =3D qedf_alloc_global_queues(qedf); > if (rval) { > QEDF_ERR(&(qedf->dbg_ctx), "Global queue allocation " > "failed.\n"); > - return 1; > + return rval; > } >=20 > /* Calculate SQ PBL size in the same manner as in qedf_sq_alloc() */ > -- > 2.17.6 Acked-by: Saurav Kashyap Thanks, ~Saurav