Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751264AbdFEP5S (ORCPT ); Mon, 5 Jun 2017 11:57:18 -0400 Received: from mail-dm3nam03on0063.outbound.protection.outlook.com ([104.47.41.63]:57130 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751077AbdFEP5Q (ORCPT ); Mon, 5 Jun 2017 11:57:16 -0400 From: "Madhani, Himanshu" To: Corentin Labbe CC: Dept-Eng QLA2xxx Upstream , "jejb@linux.vnet.ibm.com" , "martin.petersen@oracle.com" , linux-scsi , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] qla2xxx: remove writeq/readq function definitions Thread-Topic: [PATCH] qla2xxx: remove writeq/readq function definitions Thread-Index: AQHS25Q1sZaWSP0W+UCbd4a30TlIyKIWcaCA Date: Mon, 5 Jun 2017 15:57:12 +0000 Message-ID: References: <20170602113225.24816-1-clabbe.montjoie@gmail.com> In-Reply-To: <20170602113225.24816-1-clabbe.montjoie@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=cavium.com; x-originating-ip: [173.186.134.106] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR07MB3456;7:KDCXrosrCotOzLmhBXPqkHBazfDIFqZAZSuMwCcAKpGXSHFEoDYsaFzvH42IWcyGg1YatExYr6TSE8JJPaO+jfrf5OaEeO3wInH2WcTLmIYKhcM8O1C1VwKoiFjkOpOYNsDYvi++p3svwHyfv9Q1hldcrL4YdPamh6IoI19i5g5msbJEs0b6ZkyeD0bEGJQoG+4aUMSuGQhh8a8DgXGMFo5SwlRFjBSk1YcJf1cUg5PkX8806bcz9iBe2i8+Q9tElYneGVkrhDcRlp424lIKCe68yt9rlLIXWK9QRTbOxlALckDpVhXLkPkzfqeSK9/3vZflm78CNrofJAM969mDyg== x-ms-traffictypediagnostic: MWHPR07MB3456: x-ms-office365-filtering-correlation-id: e765a0e6-b4ea-4aee-8d99-08d4ac2b8781 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075);SRVR:MWHPR07MB3456; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR07MB3456;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR07MB3456; x-forefront-prvs: 0329B15C8A x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39450400003)(39840400002)(39400400002)(39850400002)(39410400002)(377454003)(24454002)(189998001)(229853002)(39060400002)(76176999)(122556002)(54356999)(50986999)(3846002)(6116002)(102836003)(33656002)(6436002)(6506006)(6486002)(77096006)(3660700001)(5660300001)(2950100002)(305945005)(6916009)(2900100001)(2906002)(575784001)(86362001)(7736002)(3280700002)(110136004)(38730400002)(8676002)(66066001)(82746002)(81166006)(25786009)(8936002)(83716003)(6246003)(72206003)(14454004)(478600001)(53936002)(36756003)(99286003)(54906002)(4326008)(6512007);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB3456;H:MWHPR07MB3455.namprd07.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <0E1271258F5E0441A274A4C157E58793@namprd07.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jun 2017 15:57:12.1505 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3456 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v55FvLc3002022 Content-Length: 1572 Lines: 57 > On Jun 2, 2017, at 4:32 AM, Corentin Labbe wrote: > > Instead of rewriting write/readq, use linux/io-64-nonatomic-lo-hi.h which > already have them. > > Signed-off-by: Corentin Labbe > --- > drivers/scsi/qla2xxx/qla_nx.h | 17 ++--------------- > 1 file changed, 2 insertions(+), 15 deletions(-) > > diff --git a/drivers/scsi/qla2xxx/qla_nx.h b/drivers/scsi/qla2xxx/qla_nx.h > index 77624eac95a4..71a41093530e 100644 > --- a/drivers/scsi/qla2xxx/qla_nx.h > +++ b/drivers/scsi/qla2xxx/qla_nx.h > @@ -7,6 +7,8 @@ > #ifndef __QLA_NX_H > #define __QLA_NX_H > > +#include > + > /* > * Following are the states of the Phantom. Phantom will set them and > * Host will read to check if the fields are correct. > @@ -819,21 +821,6 @@ struct qla82xx_uri_data_desc{ > #define MIU_TEST_AGT_WRDATA_UPPER_LO (0x0b0) > #define MIU_TEST_AGT_WRDATA_UPPER_HI (0x0b4) > > -#ifndef readq > -static inline u64 readq(void __iomem *addr) > -{ > - return readl(addr) | (((u64) readl(addr + 4)) << 32LL); > -} > -#endif > - > -#ifndef writeq > -static inline void writeq(u64 val, void __iomem *addr) > -{ > - writel(((u32) (val)), (addr)); > - writel(((u32) (val >> 32)), (addr + 4)); > -} > -#endif > - > /* Request and response queue size */ > #define REQUEST_ENTRY_CNT_82XX 128 /* Number of request entries. */ > #define RESPONSE_ENTRY_CNT_82XX 128 /* Number of response entries.*/ > -- > 2.13.0 > Looks Good. Thanks Acked-by: Himanshu Madhani - Himanshu