From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5159245CE2; Mon, 11 Nov 2024 11:26:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F51140EDC; Mon, 11 Nov 2024 11:26:33 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2052.outbound.protection.outlook.com [40.107.20.52]) by mails.dpdk.org (Postfix) with ESMTP id CEBCF40E0C for ; Mon, 11 Nov 2024 11:26:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gEt9di2m7Dk4zz3bMIJ2meTIKlA/bNwlCCQowUejcouBVscbjLFkZE72/WcpmI1dM7RJPPnui2dkubdF518leINqFzTbQl/qOTF3TgyzK7j4IVb2bG5iR3lg5d0VlXhQYzVUd0H8d3ypmSVYTnZyjrx4FIUSl9KCKURBw0Iar0F0idCqW4t8LsWMj/qKyCB7s1XcUb8ugW3pC1YNsRssghhcn2+Zue6AZ6xdqvvyKhCfrL5u+ORQpkoctuj+MEdyG+Y21vW3ZCoCfG4SW6NcH2yX5m6BDSlkhZ9/VS+ek4YIBsX66G/ROs6KIxxSr/p2uz6rpfaoudM++KwgKcMFKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HwGLWYP1I1XGDUdRLRaiXv8VnegI3a73+gNPvHaWhes=; b=lcELV14Fxd/DqtDgwAUw77HCEesqQVOWVBT7No4GvPAMS7GLsQIUC63iLM8OLRWrYaDkyVm4PJ2uWICVSz4vqe/ueSn8xpZGXxurg6Kl22AzIXCQpBZzgH7dfRjAPoCRit8bwNHva2x1HCGbufvnboU6JL1dYFI5vPC2lJjqZNdtYTxZMjCHoQrTFDeBEGG+qeAv6xs/g2icS/az1Qg5hIvAXg8jJ2uMB9vgRybaSG3YTXtk445o6rhHWSDkniKmLJYssb7rHDaVrOT3i3FcnyaA18+k0KTZRq+PtvF77DnpHNzuxazFklW9M1B+j7r3oarHRTPBcMUF/YTZ1IGWhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HwGLWYP1I1XGDUdRLRaiXv8VnegI3a73+gNPvHaWhes=; b=M4o2v1zB/oQJ5fyELs0pLwU6pdOXsDe1lGDG+tfTHTyJt7Zh3tj54+8cUsP6QoLzFkhXnJ/3gXd08ljyeqqVYIfqflNeNikcsp29dzo2BTFLfg4mTMgjNt4lm4a6k1VQ0YQ2QbOEKeeJSCNKxNbbu+/DHeJ6YazO9kEMlBy45yn1B8/F9mPQX7su/EnyXyvnmpUwe+94Qu6cLnIbI8Gt2N+pQZYFUh0E9Pui3g9huhnOSvE6kSJHQKVaNWZRIykpU5eOKEDpxfDh0QZ9j9Aj0cOAMVJJWRrgCuFFezToT28RxuzRppfmWuki0/GXYkhxL9ApROeXBRULs4EcRwvBzA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) by DBAPR04MB7239.eurprd04.prod.outlook.com (2603:10a6:10:1a8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 10:26:29 +0000 Received: from PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87]) by PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87%4]) with mapi id 15.20.8137.027; Mon, 11 Nov 2024 10:26:29 +0000 From: Hemant Agrawal To: dev@dpdk.org, thomas@monjalon.net, stephen@networkplumber.org Cc: Hemant Agrawal Subject: [PATCH] bus/fslmc: fix bus scan return failure value Date: Mon, 11 Nov 2024 15:56:07 +0530 Message-Id: <20241111102607.1571897-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGXP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::32) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|DBAPR04MB7239:EE_ X-MS-Office365-Filtering-Correlation-Id: 77b41b60-d5ed-49e4-a21f-08dd023b4e32 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?RHuY0hoOvINNXe+P1ZnrivzUbgkbTze9vb5oskVWQhM8ljSKIadxNtFHii3h?= =?us-ascii?Q?hqxKILyyJFtw7SbTo2+2qp82QMmFT9kPUHapggK7iJYFUtCCBmFIlDhW+wrC?= =?us-ascii?Q?jYz5w98mmWrEnusiBqp+W0oZwLTIAUGKiuDosoPJgxjjQm0ilmNLvpYLI7Yk?= =?us-ascii?Q?BekFflbOV25PmyMehNL7PpH6rhJ+EJD2dE7kPuY8w861DP3iA85DiT56XmHV?= =?us-ascii?Q?0OhDWAvVJp/JY9ZistEVqUUmZ4ogogwMacdw6vGBeDj7vw6IxX7p8cPx5BXb?= =?us-ascii?Q?UQ9rrVX8QQ2ZfZZ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ULHztZzzaUyhbG?= =?us-ascii?Q?P5JjN52Fw32vftbJFWd8ShQjAAyxFcf5FdmQSfUB45t3vo6GarmnWz+t0zgC?= =?us-ascii?Q?+aj/s2Cwq/NO1HXhmV3TySRRMQbTwKc8X9hnu9BvKegnI7MaWME9uiyhg6bn?= =?us-ascii?Q?g3RL5F2gPCV4jxXGPRsZ6f5LdRaqvGPI5zBtY3+pFy7K9a102oLlaWgYJaNJ?= =?us-ascii?Q?AVmoyeM=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9328.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?GuSP0fisAOvn2csAanKKaosHqzQAMovYVv1axmO2pBmZpJE2qpYD16atI+T6?= =?us-ascii?Q?wpYnvwCJ0KOMc76bk0771FN4+00XrCgRxJ15BkYEeeDXb3i9EiZaDO00Hgc0?= =?us-ascii?Q?mOpcVskJUbVl8kwpVkoIYJf320PM4hjNHnaY75ZxMeR82TaCe3xv84MLNQcy?= =?us-ascii?Q?hQUMyN4SkgXG3BV8l5PyfrAx9H2bZnfNL7s+v2H8oy1sXuYv3Qv2Q298pB0N?= =?us-ascii?Q?Givsr9vnRvTiXHNC3JhZ9zGfgCfEBjuKGU4vxCk47xc+u/7xMIvkUf9aaKBb?= =?us-ascii?Q?zNIf7nzos6AqIASjGTNGG/4Ui4pVrqwjqDBesf+7/i0D+YW6GrVhtBHX34Dn?= =?us-ascii?Q?+k5KZ1XgJdzYDQUbzazTku1MjFF54YHWRYeC4dex//hKud5Wwxp8H5cAxQXN?= =?us-ascii?Q?MiFpj8NWKH5Tc9I3T85QTMoF8Wr4TNBlu6QT0B5ym36yVVQvW32B+T53MKnX?= =?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1oPW7Y6iRB/+X75Z6kNnJk51P3gJWvrMGijOqo1z?= =?us-ascii?Q?QULmDFDektHozZeTqu3/JtG4RFmhNiWcFPhkGq2UEfbm+6ZjT2HUUK0Z8R2O?= =?us-ascii?Q?Ob/IpSvQ5VYJh1cN1KVRndyrNBHJVWQA1EHwZmqZozFNmj4D5gCYBkdt2eyB?= =?us-ascii?Q?idJRFqpn8rml0vkTxqWrju8taaX2JOiYXjPubSaFQZEOlAdl+FN+5W9mkpbU?= =?us-ascii?Q?TFJExVBVQY3T1U02tIlfgHPZ8jPHbS4rdeLP07YwrOqJS1SB5qcyQcPqPIxg?= =?us-ascii?Q?Ig=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 77b41b60-d5ed-49e4-a21f-08dd023b4e32 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 10:26:29.8313 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4axQu1RvPlmOGvoKp9meEPadHZ4SB9DZeAfg2AtAFcEGkni1F/V94uZEuwm98RJxun91Fso3wlk5t8740Iomcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7239 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org fslmc bus will not be available on non DPAA2 platform. Do not return error on scan failure. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_bus.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index 17b3b6156c..68ad2b801e 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -243,8 +243,6 @@ rte_fslmc_parse(const char *name, void *addr) uint8_t sep_exists = 0; int ret = -1; - DPAA2_BUS_DEBUG("Parsing dev=(%s)", name); - /* There are multiple ways this can be called, with bus:dev, name=dev * or just dev. In all cases, the 'addr' is actually a string. */ @@ -329,7 +327,8 @@ rte_fslmc_scan(void) group_name = getenv("DPRC"); if (!group_name) { DPAA2_BUS_DEBUG("DPAA2: DPRC not available"); - return -EINVAL; + ret = -EINVAL; + goto scan_fail; } ret = fslmc_get_container_group(group_name, &groupid); -- 2.25.1