Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1038253AbdDUMBA (ORCPT ); Fri, 21 Apr 2017 08:01:00 -0400 Received: from mail-cys01nam02on0047.outbound.protection.outlook.com ([104.47.37.47]:26016 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1036874AbdDUMA4 (ORCPT ); Fri, 21 Apr 2017 08:00:56 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=fail action=none header.from=nxp.com; From: =?UTF-8?q?Horia=20Geant=C4=83?= To: , Roy Pledge CC: , , Haiying Wang , Ioana Radulescu , Stuart Yoder Subject: [PATCH] bus: fsl-mc: dpio: fix alter FQ state command Date: Fri, 21 Apr 2017 15:00:18 +0300 Message-ID: <20170421120018.22232-1-horia.geanta@nxp.com> X-Mailer: git-send-email 2.12.0.264.gd6db3f216544 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131372496532663346;(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)(39840400002)(39450400003)(39850400002)(39400400002)(39410400002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(8936002)(50466002)(5820100001)(6636002)(6666003)(2906002)(86362001)(50986999)(189998001)(356003)(50226002)(305945005)(77096006)(54906002)(5660300001)(105606002)(23676002)(106466001)(8676002)(8656002)(39060400002)(1076002)(2870700001)(85426001)(33646002)(4326008)(36756003)(47776003)(81166006)(53936002)(38730400002)(104016004);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR0301MB0593;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD044;1:KcMOuYUH32wVF3W3qHonsXALs1dXd6toQx3In9RPyKShmgtC+GH29Eaaz1bYV+bpt4A1hmPn+1kNzfpYHe0phxKD19La5jZRkkwU6dtMlW2JeAlPwB/hxYWT249F+yRUjFga0BtgPTP0hyscWJpEUjJMxM4LDYv2Rl+9XbIIUH+PHwltHV51ryz3tBtHeKh0VIQxjWU3pj+jVzX42VGoewvbIWXykfPvXgcxiUW+TMuS8bL6KyukiI5BEuZoYcl2vMbyJPXtom1Ro0q0d6I8eyjQysMvijzaqP6n1rjPt5pY08BX9+kbzRFiIYs0fJhv24P6mZvfYSoiVtZJEeCYm/MZv/6yPiH6Aougi+u/vyC9ULrHN/D2lGJuY6QuoHvK5dx2e238VH+YAqHcKArbqSYcPsabHx2atJOGFOyMUM1XvfK/zh8NzcVlDAC/2cHUqIG0kLQ3IyY8dW0omjI7aDf1Bpql75yhFqpc6fYYTaxknNgSNqVO7nD+ptlPbPpYgo1hIIiBvlPfRKCB7scpo+VYSS7tIIRy9Q2rZ2ld2ShpCbnQOZNMnvWFGkfWRukl4XWXrXJjXmvx7FfHspvexPw4b7vAATUKgjk01GQf0uOZRr4UOlD6gF37ltgDBizm X-MS-Office365-Filtering-Correlation-Id: c976546e-81a1-480d-8b22-08d488ae0f8a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BN1PR0301MB0593; X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0593;3:KXm5WQb7+QpACjUFos2skWixEcVBlCaQeYEqHUyKnL0rDP1RIypcu/BpiZyRCRxuDXUfpUcWXl5fBcvNO9GNJfL3/WEpElaXbAtViSK0lu5fLZnlyd9P2yy4pg7El/4PVCNOoF4IejvTEMAc1VxCzzL3odyM9tG0G6PS51eZBSA3nv+N9TUygFF7e08ANB2I7QP6iy32n0kwR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an:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(601004)(2401047)(13017025)(13018025)(13024025)(13023025)(13015025)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(20161123565025)(20161123563025);SRVR:BN1PR0301MB0593;BCL:0;PCL:0;RULEID:(400006);SRVR:BN1PR0301MB0593; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFQUjAzMDFNQjA1OTM7NDpzZDY0eUtsWWpNZW1GSDkrNTF2d0NlbUZm?= =?utf-8?B?STFZOEtrbFh5bHRuZnNIR0xaU0dSZFFpRmFPRnBqQm5OSmx1R20rbFg1WGgv?= =?utf-8?B?dkU0VS9Wc29uWGdQTnZFU0dJZjdiOHBuUEROOTVGWHNneFltNFE5ZTYrS0lK?= =?utf-8?B?Q2kyWmRTLzlZV1FXUTdRQlhvK20vVENLNVRnamdNa2Y4UU9KbklLUlpsOFlC?= =?utf-8?B?YkRkSHpzYWREaEJPRnNSK1kvV29oMjFsQklGMGVkOUI2ZVpiK0Y3dlFsM0dS?= =?utf-8?B?eHFWZWdNbmlJVmFZREk3WHVVSWo3MXhtOVUxMGhmOTVXY0JzdGlyK1NMWkF5?= =?utf-8?B?d3N2UTk0WVRHTHA4cGQzU2VvYzBrOUU4M0xFNmRyWUhVVVBGMWk4SExHOVZp?= =?utf-8?B?NTQzb1F3QndtUmVTa0V1NC9ERDhjY2x6d3ZubmdBV3V4aDVTYmZDS3RaRERP?= =?utf-8?B?Q1JxNlZHVVlIYSs3enpLMUN1NVFlVGZrQ2E0eHlOU2FZYkhGakVqUWxtZk40?= =?utf-8?B?UDRtekJsUDdWTDNPQ1RSUU14UkdxQklkQVBaaXFnQithb3VDM09VT2Fhbm1l?= =?utf-8?B?bGF6elMxL2hsZzFSYldQQzlPSWhqTEY5U01kVklnd3I3VmpQT0J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8b0wilcZVpNHrYuxc6rVz4fmRaSnGTHmsXFep/Ll4Nk9+Op0/aBtzChsPWCWpwXylg3rOar4HQ/DFm1Mew0YjR/zAIpxC8Z/mULXHbDbKlnbp8IZp3/ULmn/ip5QiOx3NqejccA31IH7EcIgAUb2t4VNesn+Ej/FWMhTd1OUUlpt+enJv6VQaTrHYmTlb0SECFgAdw==;5:i4pjzxbXdvfNv98bVk4Wcn3RNUHPmtbjhKSzUS4g3ile7VZeJMGSOuU9RNjP4CVySs+brh6EPhJ8zS3EiZzampO3/PsVRzC6Zd2gp9vLEzqslBa18QADsw46xlpd1wr6DsfybSU668SBp9736ntAdQWtLRPkPFf4qEv1tMzinnp4ip2R86pDOU09JYopWAre;24:8vBzDF0agQYAWeQvlBH76Xlo2ZX41ObkQBP8xBRnhEJB4sKJqLgzi5uoTqQ2XaEtCQkPg1haGfRJmBO+C/zBN+8NaIJLug7XW7NYiWUIkCY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0593;7:kZqauWS1UUpotSHF+ivwpSab+HihM79joWKeRHp+sHkIUet5ThccMC0zk6b9wtXV1b5itpCJdSjm9E7VLiQaDLpjDtAKUZGsfx+yfSMuELUnl3jofGTmS4LFY/JMzk2TFkJZ9kFRBQOBCHRWg6pUD+Xg9jOp00E8aie4QLtgP6ocTRYwindzrzoZ+nJX1BzFfosO4oQtyhX0WYp/fkvCWGwTkbGiLyfy+RVABxL9vlsrIWQHpAf84rRr9NA4GvQ+KJn5zzydZkKfuYXFMKOhy4Z7gvnqkXFtpUXC15uoWCA8qoMfCQ2vVZAM86lev9hGfCOxghrOgQ6/G1M/7rdFAw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 12:00:53.0792 (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: BN1PR0301MB0593 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 954 Lines: 25 When checking the response verb, the valid bit should be masked out, since its value flips depending on what Response Register (RR0 /RR1) it's been read from. Fixes: 321eecb06bfb ("bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2") Signed-off-by: Horia Geantă --- drivers/staging/fsl-mc/bus/dpio/qbman-portal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c b/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c index 2a3ea29d9b43..5d020fb98c66 100644 --- a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c +++ b/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c @@ -963,7 +963,7 @@ int qbman_swp_alt_fq_state(struct qbman_swp *s, u32 fqid, } /* Decode the outcome */ - WARN_ON(r->verb != alt_fq_verb); + WARN_ON((r->verb & 0x7f) != alt_fq_verb); /* Determine success or failure */ if (unlikely(r->rslt != QBMAN_MC_RSLT_OK)) { -- 2.12.0.264.gd6db3f216544