Message ID | 1503607075-28970-5-git-send-email-roy.pledge@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E50A7603FA for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 24 Aug 2017 20:41:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D826C28BFE for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 24 Aug 2017 20:41:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCD9028C5B; Thu, 24 Aug 2017 20:41:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F10D128C76 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 24 Aug 2017 20:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6aLF/nyGKUApvzeHCTYDGJ1zSjpOP1RFfrJGASTLy14=; b=AKw9swBuovjmhn wdsW2TrUGtElI9hyQg9iBt0qPJDJPkfY3vbRoZTmfG2miGXaCCMw3b0fn1oqsNuU0Vv4T2MTLJsy5 1jNnkD34/5CKafZkG/dCsdy0SJ2+Yivv7qypcxWY+AvaaZRXeZSVFq+AM5ne99Q0bHPV2Ft9Dd1Ne y6c9/6iZlLc7Tkmmeva6IjazRrov1HbBFwR5ya1fYJt2Y2Y0mV0o6ew6Aj/KL4CuBJWtVq7OLTaEL P6jLdrZIaDKfGJsPGf7eK32I3KYEqquFn4Dp3xTxYHJyYeIjTcGyDc5O3MQjk7T88z+E7xoNiwqOX xl9xLFcMbPYe0CD0a7xQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dkyvf-0006on-Gm; Thu, 24 Aug 2017 20:40:39 +0000 Received: from mail-by2nam03on0610.outbound.protection.outlook.com ([2a01:111:f400:fe4a::610] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dkyth-0003WS-6t for linux-arm-kernel@lists.infradead.org; Thu, 24 Aug 2017 20:38:47 +0000 Received: from BN6PR03CA0006.namprd03.prod.outlook.com (10.168.230.144) by CO2PR03MB2264.namprd03.prod.outlook.com (10.166.92.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Thu, 24 Aug 2017 20:38:03 +0000 Received: from BL2FFO11OLC008.protection.gbl (2a01:111:f400:7c09::140) by BN6PR03CA0006.outlook.office365.com (2603:10b6:404:23::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Thu, 24 Aug 2017 20:38:02 +0000 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; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC008.mail.protection.outlook.com (10.173.160.143) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Thu, 24 Aug 2017 20:38:02 +0000 Received: from otc-sw1.am.freescale.net (otc-sw1.am.freescale.net [10.29.200.182]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v7OKbv0l004767; Thu, 24 Aug 2017 13:38:01 -0700 From: Roy Pledge <roy.pledge@nxp.com> To: <leoyang.li@nxp.com>, <linuxppc-dev@lists.ozlabs.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [v4 04/11] soc/fsl/qbman: Drop set/clear_bits usage Date: Thu, 24 Aug 2017 16:37:48 -0400 Message-ID: <1503607075-28970-5-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503607075-28970-1-git-send-email-roy.pledge@nxp.com> References: <1503607075-28970-1-git-send-email-roy.pledge@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131480806830180164; (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)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(81156014)(81166006)(68736007)(2950100002)(33646002)(305945005)(8676002)(7416002)(43066003)(356003)(105606002)(5660300001)(50466002)(48376002)(50226002)(6666003)(106466001)(54906002)(498600001)(189998001)(5003940100001)(53936002)(626005)(8936002)(3450700001)(4326008)(2906002)(104016004)(47776003)(77096006)(36756003)(86362001)(85426001)(8656003)(97736004)(2201001)(76176999)(50986999)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2264; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC008; 1:bIP0IkRXUBjYWYfCSo1eM/plNwUwoKRRNx5VMGjbspUee93RLaHYl011DI7KTeBsCe6W5Nb/RbG1zRH5Ygp5MbjLRDKyGY6I5DrBbcOlZHvStdQoNFjtfjewTfKX90Wy MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5580f918-b59f-41e1-0744-08d4eb30045c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CO2PR03MB2264; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2264; 3:VkWA3iVC3PX9UrIu2+FBCgKkbYEloHXmPUQaO/tqFj3i24ktQiTKil5Tdvp3i2H5hkbP3e3GNlI0sUFLHVjfS3c8hCh4ILmqyn3yd32IY8G39t/n2hZQJGDxIRa0HiP0BxLxgEfynK522CFUy4hNl8SJ/KyDaUDY1/A+BtxP87aitdDzC/prfd2Nz+T2f/+gSYhM3uUaPqGn58KB8FW9ElHrhqePGWkx81V+0XB9mdqX3K7ejObp8XxMoHoJOZuteoNujSbWuskyNn5z9RLzQPttemmr2RlrvV2lILBgsl0rjIn09ECvkubdBw9HQq1LFz96QV8+2QJquu+H8WuHTMh/QqAHxQ1W1l0VN82R7xI=; 25:tLY54lpI2N17LmjrW34LVCAjtf7iIDewbSbsS+LNvJqscy1lQ/w+YcKlKbCANZtGyFTf685T4SgdTnad+i0t0lqTks7gIoxtvuBDUrwOmsXEhVguaL0t+utfwJbsTBUsmMyIAu2cFsyvQuz0xqWrby/tbHy59Ymzal01CHbz0Tk0/s1udLWrCNYJefyjCZTiSF3pV235bWgSFKYGgIhB9sLSvwcjlrRn0Dlo1RD3NCoNbG8tySYcVLxdu6NzszTJ2NhgKLhdl2JO2NBayoClV3Q1iZxt+myGTIQS/32/FKxpKGExYK1O8M1OLwuCqTpRUQBJ4VsVJKn5vnfpkHIC9A== X-MS-TrafficTypeDiagnostic: CO2PR03MB2264: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2264; 31:jU5MAUJ1f+3lM/aa8JqKkrjbVfyuRnmjnVhgFt4yRPetMJ+o2bp0vMf1hGG2lWx8R6NmSEDDEEK+plkAmG4Co9DVc4Mmid5xnAhJyqfJ04G10Eek1Y91efMQ5evlQQmA5ThWZgDBaranHY4MU+EcPqYRRMSuK6it1sor/keKI8BFSaPULBrIwQAPBSK5a4KhyHaqZERvk6Nldq02TieRnCkBHF1QXRgraPTkvr/9qMc=; 4:+B8AhbKBUeXKmSM88gh6q2wr1HBdCAPFEVImzjgJfDALpFE5XEx0UXlouS5iE1adKHXZ81ZW+LzCEx0MabwVsNGNAxFIuR2nN0KyDw7AixF9y7j4LXIgAqiQb1+R6hmeBaGnFBMjBuI/FBFbuMrlChkRg8QIhUgbSkvWscE/RouN52fJM+GK1Bcw8+UjgSHo9kyL24c1Kzyi2TCyj5jUbl2J/LB4IsEhda3VHpGJzE0D5DQwud9lBzm8NSSxahtcc5sddfA6Rf2cjO2esh7CxDWXuFxkFtq0hYW0YW1ivAmi+CV2B99EcM8sdEjS9+SfR8WN9MgY6Wc2FnH7CtycNA== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(788757137089); X-Microsoft-Antispam-PRVS: <CO2PR03MB2264AD0F27C162FD773C6FBC869A0@CO2PR03MB2264.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123556025)(20161123561025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2264; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2264; X-Forefront-PRVS: 04097B7F7F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2264; 23:8qHTh9O6MlBAOWLod78JzoVfZamPsHUdmrX4S3yJY?= =?us-ascii?Q?McRoe/PxvQLDm5QTZhQ0RuZCJ0aLpL4EEj7JxPy29tdzmoRiGYcFOP7ovXaI?= =?us-ascii?Q?kThZmsHXDdd/LBFOzTp1LC4pAJs+MSkxFehBgFKD0skejU5DUpfKSSF5sN1W?= =?us-ascii?Q?nKVKkIrDCGt4uEMjTvOZ3UqHjKI9G+1R9RDt1/ynXFzTRkLTHbn6StveOU/M?= =?us-ascii?Q?pRbvxVo7Co8iOaOS2OodiFYyliBTufQwSnaxg8vTjBpMOWgGMh2XUCqcWGqr?= =?us-ascii?Q?2/MvqptZXe85CPBEr4OlQERrLK53+KRmDCPwaeTT3Hf78sGlLuag69puOyxf?= =?us-ascii?Q?5rsWNtljquieOGnmX85xlDzPRI2CAqJD40s2yHYjEe7b3CXGTJnM/tum32P+?= =?us-ascii?Q?NoLqu425eQGHjLjeZVpetd2NXegpfg6W39oyKBqkUc4Ql9pdxtraGHUp1SLz?= =?us-ascii?Q?RdZI00koGlkd69UrebkRU0Bd/LvBOd53HKnBaLHNTA5Rnsin1c3hiPWtEEJY?= =?us-ascii?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weZ6PG1Tr5NlxZJvxKccrtzlzC355tV4mjOqjPdHqk9AgVez5ceBZJGOXTyQYZUlse4VC3bEJw+RaXN9wIPByUtIH+cN/5SBWplo0ZPh5mhameFFbQqzBecYMszhkA81Si7fhr4mgqJVvWWR7YR5g==; 5:e4zxrPbXNRFZzNdoaOayUSJQgn04GqMs6WC06gqaUe2PT6dk3ar4A34WjDicTJctEQeJ8QNKBuj9lptDIjtrBkj1EDs/b06t+Lpg2RhA4OHyjU6M7wC2+t++JgglrXSPwyxUx8X7kSVkVj7NA3s/PA==; 24:LL35VH5CtM7DS5sLQ2AlM9+p4YXjGd/D3PyzY8iwNmFsJ9cGK+YK/sfEahGfcZ7nCCnO5z2+8fr0aM0P/+czFi7XNZQSualOfrxU79Cnp0A=; 7:p6YNroZppBUXIXqFf1bCT7Gqy2nybP0dee93Hgkau9lKqbgBz6rdVflHotoBzj54t5Yqhc9fSamFk7NaLKpKqnhgeMYfovOIX9Jrk7yR3EVsX4b2JMqbK+3I2UGvVGj24TdIncVgGGWPMTr6WPKaz8RC0sDnDDWkwT0BANzP1J/carblkLMcmmKt2R70xFJ5IktZThI5ewjz1NG2Ul/sXH5gFhnokrYK4NOAXuhQO+g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2017 20:38:02.8308 (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: CO2PR03MB2264 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170824_133837_607380_524015A5 X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Reply-To: roy.pledge@nxp.com Cc: mark.rutland@arm.com, arnd@arndb.de, madalin.bucur@nxp.com, catalin.marinas@arm.com, Roy Pledge <roy.pledge@nxp.com>, linux@armlinux.org.uk, oss@buserror.net, Claudiu Manoil <claudiu.manoil@nxp.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/soc/fsl/qbman/bman.c b/drivers/soc/fsl/qbman/bman.c index 604e45c..ff8998f 100644 --- a/drivers/soc/fsl/qbman/bman.c +++ b/drivers/soc/fsl/qbman/bman.c @@ -616,7 +616,7 @@ int bman_p_irqsource_add(struct bman_portal *p, u32 bits) unsigned long irqflags; local_irq_save(irqflags); - set_bits(bits & BM_PIRQ_VISIBLE, &p->irq_sources); + p->irq_sources |= bits & BM_PIRQ_VISIBLE; bm_out(&p->p, BM_REG_IER, p->irq_sources); local_irq_restore(irqflags); return 0; diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c index 1bcfc51..25419e1 100644 --- a/drivers/soc/fsl/qbman/qman.c +++ b/drivers/soc/fsl/qbman/qman.c @@ -908,12 +908,12 @@ static inline int qm_mc_result_timeout(struct qm_portal *portal, static inline void fq_set(struct qman_fq *fq, u32 mask) { - set_bits(mask, &fq->flags); + fq->flags |= mask; } static inline void fq_clear(struct qman_fq *fq, u32 mask) { - clear_bits(mask, &fq->flags); + fq->flags &= ~mask; } static inline int fq_isset(struct qman_fq *fq, u32 mask) @@ -1574,7 +1574,7 @@ void qman_p_irqsource_add(struct qman_portal *p, u32 bits) unsigned long irqflags; local_irq_save(irqflags); - set_bits(bits & QM_PIRQ_VISIBLE, &p->irq_sources); + p->irq_sources |= bits & QM_PIRQ_VISIBLE; qm_out(&p->p, QM_REG_IER, p->irq_sources); local_irq_restore(irqflags); } @@ -1597,7 +1597,7 @@ void qman_p_irqsource_remove(struct qman_portal *p, u32 bits) */ local_irq_save(irqflags); bits &= QM_PIRQ_VISIBLE; - clear_bits(bits, &p->irq_sources); + p->irq_sources &= ~bits; qm_out(&p->p, QM_REG_IER, p->irq_sources); ier = qm_in(&p->p, QM_REG_IER); /*