Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752172AbdFOIzM (ORCPT ); Thu, 15 Jun 2017 04:55:12 -0400 Received: from mail-by2nam03on0083.outbound.protection.outlook.com ([104.47.42.83]:21568 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750948AbdFOIzK (ORCPT ); Thu, 15 Jun 2017 04:55:10 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Ioana Radulescu To: CC: , , , , , , , , , , Subject: [PATCH] staging: fsl-mc/dpio: Propagate error code Date: Thu, 15 Jun 2017 03:55:06 -0500 Message-ID: <20170615085506.31784-1-ruxandra.radulescu@nxp.com> X-Mailer: git-send-email 2.11.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131419905079632712;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(39850400002)(39400400002)(39410400002)(39450400003)(39840400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(48376002)(36756003)(33646002)(50986999)(85426001)(86362001)(2906002)(2351001)(105606002)(1076002)(50466002)(77096006)(54906002)(106466001)(8656002)(104016004)(189998001)(47776003)(356003)(38730400002)(5003940100001)(8936002)(81166006)(50226002)(8676002)(53936002)(4326008)(5660300001)(498600001)(6916009)(110136004)(305945005)(39060400002)(7416002);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR03MB2391;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD045;1:HFhAm+Ne5sEr1ooLfSgA9zkrCgKcnWifJaAlYIBUm4oWTbdGynVsExiu1ERjIL08mhlVkz4Dc+wu15+5KpT4aZnZBDSh7ZkQwSfIaekfEhEkYJE9aZVckF+udJMGWTKXYjiMnPUpCBxhbFM0EtKk/PVhSq+HKv6y7k6KghcCgqXQnqNyKuyGwHfsYTzsKLTq86YzvYMx1lPDHe3betXhKKFso9fXjjuVXn+JnRk9/1nOx9gWaDBg5PlTWxh0ou/nC5KlaeCCWTvkFCZBcMjDQW6e215HSd6z/xF35N/ySrfLKveX0ioP2rDYSbZS5Ojqt1G17wRQG2df9TX0pQrpd04d4BdYoxbBGnNjoHRd5Rl6GUGMtO/38F73VKsL/9W2QWIBS4834yzL5qZHu45WliYOb2V0pHT6oTzaGdhzKotHJGy8EfH3FiqSyHkk8EYxGqX9PFDFD1GzBNyS4X9bhql84cFnNOyH6NzwiEgFSptkuWuVbYxdzExgMY19TpVPQNMLkDmH7cmZkPdYDgpJ+Wvp6cHm8oWG2aJJT6hBQ8oqoExOxa+WsjDxUPZFfgjNkeBeQBd3eOAntO55q+0l/PIBKRkWE6vtQUeQT9BZuLaXkRIlw5h5JSM6tuKy+/C+bEbLcgPVAbfcQH2XQX8DVW97x+P0vN5GaaqNzwKzelO556A9HGyNzc+4vXE66KMu MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO2PR03MB2391: X-MS-Office365-Filtering-Correlation-Id: 19b04d2e-f4ea-4d6b-81e9-08d4b3cc3924 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:CO2PR03MB2391; X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2391;3:95P7rPgnTgLdKBW7Nh6xp043HeLjV8bLUSmERJQhxoy7I+qn1/FGMKyUDbnQ7SmvIUCJmSngY+wCs3j+5NO41zuCDm3DEPlWI207i7JtJhNY3ghwYVRmAWLGZaawglFdDUP1JEHrStIM3ysu5ojx3GbelY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jnJaFxAwkei3gFoJRrtru8/5aor+byQbHSJNB5pB5OKMSpvt001+YHi8U= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123563025)(20161123556025)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO2PR03MB2391;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO2PR03MB2391; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR03MB2391;4:X4fwdTj+OwMmVSy6HLjrqbj/1HzlNgzGxqXqoPY7w+?= =?us-ascii?Q?EjldUB6/puciyNQ/QGjzrsN7G6M+RjJeAhMpB9wiD+bxzqYNrx+Wkt1ZN7w5?= =?us-ascii?Q?418ZQP/5rFKzcjmL6L+XGUtFXWSzn5U0FUwF7sWL3JirjXTzf2iz9wUpTd9p?= =?us-ascii?Q?jae1hZ869quvjsqoBfFXV3MqoZkYhRtSqKCTbLrNl2qNXxqoIqq9X2n/Yqt3?= =?us-ascii?Q?Q0iMQRuqfNdMjxD2SkJPDcI2dLN8rXUWnFQdTHTmh2x6kJvG9r7IX7CMneWW?= =?us-ascii?Q?Q8rI/GvTy+0CRG7T5g71Tb4Wh/2dpSVPO9uyByXYw5ntgYapq/euM5r1MaHl?= =?us-ascii?Q?f4XQTRWGEiAOq80OSn+9xj/UldTguW7e5sbTK2cpahUrXELGWT6IbbRD92+N?= =?us-ascii?Q?VxedHRZXHIYIrZXW2dOSPQqAq209G0bNuaaD845p9t0ryGeftcBz5WIVrzTX?= =?us-ascii?Q?sSNITggw+eNW+napxjyoUkpWFtd5rn3+KPnNLW+tV3/hk8uJA3oJLADboBOb?= =?us-ascii?Q?2aARFZAT5bGrCCSa5+a8S1fOK0kjCmCICo1tPQnQRAVPxagaOe1TBG4Mu3w6?= =?us-ascii?Q?irqX1290yT21AF5ej971itc9/w87HJAOvUcnPelH0DqOtirdC1EHffiNHoC2?= =?us-ascii?Q?TpHDw7cUdUxdGyMporTdeQJTqrENtIpiRBdsUF+jkTXdoe8SKdFLmpLoIbta?= =?us-ascii?Q?Qxh4LLE8fZ6xO4HLa1irBqa8hIOVACp01CBgWFr2/4bF54lwDKLQ+ufdldW3?= =?us-ascii?Q?YY6xAA9Zj7heI4G5z3e74wSCxjRWHu7AkagLbypXR9duD64pY4ICNM2iLr4m?= =?us-ascii?Q?twCoQpgBkrlsOX4suOOE3X56YS/SmS5/pFLA5oFai5s62ZKEP2SjV3ViGvWy?= =?us-ascii?Q?EQLjqZhVD9RwLudNYa8KTwobFbG2VpCpGL79RXPsaYfy2U4Ytgae2ECyV0sg?= =?us-ascii?Q?iMVC724wqy1r0/YCARx64LwaIFlKA0Wnq/KkFDc9NxoqsYyzXJKD2TjNo0Nw?= =?us-ascii?Q?iM71iQ5+CFZLHMhvthTZCRMTvm6oEknhUwXllmpRmKZURwreyBLhRqKyMcll?= =?us-ascii?Q?esp9nyrvVwdcxRpgL1KFWsPvJnWX11PfTsEibg2xlUEf/i98H9OeYOOcco0n?= =?us-ascii?Q?BCrbbi00G7tWpIKoWkWwTnKwLdTgHshaAQoX8s55XfeDYBJuZs3Elm+wUmlq?= =?us-ascii?Q?MukjXaqwSpSHmaVu+CDlJXb1kqGoYGdNyz5laAwFv/+AmrJTu7qqGazdXyv8?= =?us-ascii?Q?ZFzC8U6ZWQTGvx55HcHsH/CsSlu3+Q5VUrEqll?= X-Forefront-PRVS: 0339F89554 X-Microsoft-Exchange-Diagnostics: =?us-ascii?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y?= =?us-ascii?Q?QSQoKhKR4aAPKJ3T9IlUKOqWXuRZ1HXAGbmU+k3ojVoTqe34uaTCli13gpU1?= =?us-ascii?Q?l6r6bJXpOf9zsXFId11MSqa5ttwUEsKOCH+g986m/gy0WJuDwqGllee9KghY?= =?us-ascii?Q?KX8dcoqHb/yts016Nyd/chA2fXUtX/bRY663I4rEUhOGhvi8hotkHyrsDlur?= =?us-ascii?Q?lTquRyti2dw2kt2wlovr5q+pP9ckgiZlaMhm1+tdW/Qb9x8HA+gQRR7lclhh?= =?us-ascii?Q?Slonmpc2NppTOc83svMmfhasTPr3jRMF+KzsUQy+gEcCJI1Zcd8D/CiIBRHi?= =?us-ascii?Q?GgfCId3SSgjnZR0pnfDU123QEAcixAYDS/EjTj3FM1SIJ88r8nBlTADwGLzN?= =?us-ascii?Q?WNeI5FuLZn7CiDUTMg=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR03MB2391;6:YS2xnAMH8O/GzIUWbbaxAMEe/0QGjy3lQppWjl0kga?= =?us-ascii?Q?RPvbvmqQflZTSzJSHE/cZAtocOlyVWlvITZgc9K0MWdmyFvUPw5NmbgYNxTe?= =?us-ascii?Q?3Ls3VWMC/HlGcO/jznIedAYuWt3rcdn87Aw47UZ7iwodeoFISPbCwCNVkcW2?= =?us-ascii?Q?uK6tRYheX4+7uJUr/gMHljtCvWBVO04n9tzNycZzyXWU7+hJZtu5nfa0ZVoW?= =?us-ascii?Q?kqaFWJsWyuBYdWmbPZZDo5Gw20pzECDqLZdDQt24tTgxCXtHia35SfSlMlZ3?= =?us-ascii?Q?idRaEiB/bmqdFSfvdM3fw88/2x8a1Udv5yxh/sLlG2s7McCoHWerTm3uHPIH?= =?us-ascii?Q?t5BAa6/DEL5VpTkYIZYXwCK9Hbm4Jyx0gajyIAEnMS5XXPx2Y2765+FtuGeL?= =?us-ascii?Q?a57W0bi+YhwigyujEaY41/juzuFnamt7/zcGJ0Sx/v5PfHapzPd1ZrB+9NK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fEOIdE/5vdR4rCuzasqUTvIoiKHRhjlaY557r3cvxoJDVPT0GOSx+KeFcUw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2017 08:55:07.7604 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR03MB2391 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1056 Lines: 30 dpaa2_io_service_register() returns zero even if qbman_swp_CDAN_set() encountered an error. Fix this by propagating the error code so the caller is informed data availability notifications are not properly set for a channel. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-mc/bus/dpio/dpio-service.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio-service.c b/drivers/staging/fsl-mc/bus/dpio/dpio-service.c index e5d66749614c..762f045f53f7 100644 --- a/drivers/staging/fsl-mc/bus/dpio/dpio-service.c +++ b/drivers/staging/fsl-mc/bus/dpio/dpio-service.c @@ -260,9 +260,9 @@ int dpaa2_io_service_register(struct dpaa2_io *d, /* Enable the generation of CDAN notifications */ if (ctx->is_cdan) - qbman_swp_CDAN_set_context_enable(d->swp, - (u16)ctx->id, - ctx->qman64); + return qbman_swp_CDAN_set_context_enable(d->swp, + (u16)ctx->id, + ctx->qman64); return 0; } EXPORT_SYMBOL(dpaa2_io_service_register); -- 2.11.0