Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753678AbdHKQiy (ORCPT ); Fri, 11 Aug 2017 12:38:54 -0400 Received: from mail-db5eur01on0075.outbound.protection.outlook.com ([104.47.2.75]:51712 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753561AbdHKQiT (ORCPT ); Fri, 11 Aug 2017 12:38:19 -0400 From: Leo Li To: Yinbo Zhu , Yinbo Zhu , Rob Herring , Mark Rutland , Russell King , Felipe Balbi CC: open list , Laurent Pinchart , Catalin Marinas , open list , open list , Doug Ledford , "Stefano Stabellini" , Greg Kroah-Hartman , Bart Van Assche , moderated list Subject: RE: [linux-devel] [PATCH 3/3] core-arm: add a member about dma_map_ops in dev_archdata struct Thread-Topic: [linux-devel] [PATCH 3/3] core-arm: add a member about dma_map_ops in dev_archdata struct Thread-Index: AQHTEosRD6LgBRTaaEyU/3Mk8edJhqJ/WqHQ Date: Fri, 11 Aug 2017 16:38:14 +0000 Message-ID: References: <1502445633-33772-1-git-send-email-yinbo.zhu@nxp.com> In-Reply-To: <1502445633-33772-1-git-send-email-yinbo.zhu@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=leoyang.li@nxp.com; x-originating-ip: [192.88.168.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB1263;6:UKGjRP5nPf7DIR0fv+KoMNnWsc0M892cDq3fsxtTso5Pd802HS1CVflwhLORiAelg4sSopENoARCZAwL3ZMGe5GJJDi1i70jjsn1EsqxNMq4aFNVrjhH2OSUA0F2OINrVl0v/mCMGQhDfTXZNiopCM/Of3/1hiSRpf8hyTaPuEDbsJoTRXQDKUx7D+YgqVGp0H9Z7gvWnkn4LkocBIbqDIPoW+BdRkk19YTl73dWc7jjd0PAq5YkQQ2WUn0SEsplzwk3kONn3i4ttUQ1vYHHveqTSGMKZHJfDT0eSEvTe3wShAVgzaYg75FOQSKm4BgwMIfwjP85Zhfw6xsXZVuSIQ==;5:39QrovbVnKC13a+BlR+F4SzE9fKyg+pAHSUV522iG1EAXDjkuGkvvNSEbrVj4By8ni+KORDTKg0A4jHQ0TZ/SVFkQnA5gNMgpvhvt9tnovZvsRVEMccxlQ9VxyX3RVpYNCClrTz7ClN+bIAfK7TE5A==;24:joL9kucEsWdeW3naMq13snT8EknQkfzmjmEkqV+MapWhNxCf+7mIzfRsI8Jpj/fxI3Pfmgzax+o1Y/pMTGqKy1ut2crZ50p7v4l4mpm1P1s=;7:Q/duJd4IzJq4OHramZeRtMQVxqmwyZygNNdE+ZRxpl5EpNtODGaK2pZ5uobR0S/5k99f8i7bFxf1GBYD+uTdT7OQkunw21cv2OqLwqMgh8NoB+7cp8OlZDKH5mPM8GJg0InjL80gdJ+QFTIjURyWLPJNe28yY+aqpu8aBb0K6C+URxhX6vra1I5I1ObB2RP54RfkEIXUD0JADQWxi4cacv0gnrm/JoCm8FW86bOgKrU= x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(13464003)(377454003)(199003)(189002)(81156014)(81166006)(6246003)(53546010)(966005)(14454004)(575784001)(5250100002)(86362001)(101416001)(4326008)(3660700001)(53936002)(8656003)(189998001)(478600001)(8936002)(6306002)(68736007)(9686003)(3280700002)(25786009)(50986999)(7416002)(33656002)(45080400002)(76176999)(55016002)(54906002)(5660300001)(99286003)(74316002)(66066001)(7696004)(54356999)(2906002)(6116002)(2900100001)(3846002)(2950100002)(102836003)(6506006)(6436002)(105586002)(97736004)(106356001)(305945005)(7736002)(229853002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB1263;H:AM4PR0401MB1699.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: dd432a85-008a-4826-19bc-08d4e0d75d0c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:VI1PR04MB1263; x-ms-traffictypediagnostic: VI1PR04MB1263: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(189930954265078)(185117386973197)(258649278758335)(259967162476793)(45079756050767)(42932892334569); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR04MB1263;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR04MB1263; x-forefront-prvs: 03965EFC76 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2017 16:38:14.9122 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1263 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 nfs id v7BGcwsh019940 Content-Length: 2212 Lines: 52 > -----Original Message----- > From: linux-devel-bounces@gforge.freescale.net [mailto:linux-devel- > bounces@gforge.freescale.net] On Behalf Of yinbo.zhu@nxp.com > Sent: Friday, August 11, 2017 5:01 AM > To: linux-devel@gforge.freescale.net; Yinbo Zhu ; Rob > Herring ; Mark Rutland ; > Russell King ; Felipe Balbi > Cc: open list ; Laurent Pinchart > ; Catalin Marinas > ; open list ; open list > ; Doug Ledford ; > Stefano Stabellini ; Greg Kroah-Hartman > ; Bart Van Assche > ; moderated list kernel@lists.infradead.org> > Subject: [linux-devel] [PATCH 3/3] core-arm: add a member about > dma_map_ops in dev_archdata struct > > From: "yinbo.zhu" The dma_ops was just moved from struct dev_archdata to struct device with commit 5657933dbb6e25feaf5d8df8c88f96cdade693a3. Don't duplicate the dma_ops in both places if you don't have a good reason. > > Signed-off-by: yinbo.zhu > --- > arch/arm/include/asm/device.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/include/asm/device.h b/arch/arm/include/asm/device.h > index 220ba20..c93d3df 100644 > --- a/arch/arm/include/asm/device.h > +++ b/arch/arm/include/asm/device.h > @@ -7,6 +7,7 @@ > #define ASMARM_DEVICE_H > > struct dev_archdata { > +const struct dma_map_ops *dma_ops; > #ifdef CONFIG_DMABOUNCE > struct dmabounce_device_info *dmabounce; #endif > -- > 2.1.0.27.g96db324 > > _______________________________________________ > linux-devel mailing list > linux-devel@gforge.freescale.net > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgforge. > freescale.net%2Fmailman%2Flistinfo%2Flinux- > devel&data=01%7C01%7Cleoyang.li%40nxp.com%7Cc83542988dac448bd8b908 > d4e0a230af%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=1pbSjxG781 > yjcCF%2BuXbRCkV6ytbfTTgQkHNWmm0e9nk%3D&reserved=0