Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757290AbbFQPOO (ORCPT ); Wed, 17 Jun 2015 11:14:14 -0400 Received: from mail-bl2on0112.outbound.protection.outlook.com ([65.55.169.112]:42352 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756858AbbFQPON (ORCPT ); Wed, 17 Jun 2015 11:14:13 -0400 From: Liberman Igal To: Scott Wood , Madalin-Cristian Bucur CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" Subject: RE: [PATCH 01/12] fsl/fman: Add the FMan FLIB headers Thread-Topic: [PATCH 01/12] fsl/fman: Add the FMan FLIB headers Thread-Index: AQHQo5FecOR+w2bcbEyghvBWm/vSsp2mFoQAgAq5nnA= Date: Wed, 17 Jun 2015 14:59:37 +0000 Message-ID: References: <1433949712-5648-1-git-send-email-madalin.bucur@freescale.com> <1433949712-5648-2-git-send-email-madalin.bucur@freescale.com> <1433949712-5648-3-git-send-email-madalin.bucur@freescale.com> <1433962446.2477.121.camel@freescale.com> In-Reply-To: <1433962446.2477.121.camel@freescale.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freescale.com; dkim=none (message not signed) header.d=none; x-originating-ip: [192.88.162.1] x-microsoft-exchange-diagnostics: 1;DM2PR03MB559;3:LytibyfhGyaX3h7CJi3sFVBQDLJSy47FPgNxPywjYmKlvEKJvniIJUUjbbfbVKZOPIPdiT7tn2JJMr5vXWiBYDc3KEdjASqbbMGUSfJfMPIr7WaTNX5aBkOoc2Liy0SzM4vBATcVnoucA0214i9qhQ==;10:rdSD/Y9AL7URX2/GhOL7UQvGuHohxnFG3aMyaNN5S3rsfF0Vwld8OodHlsgHxCRhfKU3t2Hj/UL5sjHoPNkpjRSVid4Iganbxwxo1j5ezec=;6:BDvCpRE6yxBDSvE/HLO++kcfGZr22nm9dQYvT6XbK74spOFONxzjxb2IcuNkq192 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB559; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:DM2PR03MB559;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB559; x-forefront-prvs: 0610D16BBE x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(13464003)(377424004)(377454003)(57704003)(51704005)(46102003)(106116001)(19580395003)(74316001)(2656002)(87936001)(86362001)(33656002)(2950100001)(66066001)(5003600100002)(102836002)(122556002)(62966003)(77156002)(40100003)(93886004)(54356999)(76176999)(92566002)(76576001)(5001770100001)(19580405001)(5001960100002)(77096005)(189998001)(5002640100001)(50986999)(4001450100001)(19627235001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR03MB559;H:DM2PR03MB383.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2015 14:59:38.0209 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB559 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 base64 to 8bit by nfs id t5HFEKaI010494 Content-Length: 2253 Lines: 70 Regards, Igal Liberman. > -----Original Message----- > From: Wood Scott-B07421 > Sent: Wednesday, June 10, 2015 9:54 PM > To: Bucur Madalin-Cristian-B32716 > Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; linuxppc- > dev@lists.ozlabs.org; Liberman Igal-B31950 > Subject: Re: [PATCH 01/12] fsl/fman: Add the FMan FLIB headers > > On Wed, 2015-06-10 at 18:21 +0300, Madalin Bucur wrote: > > From: Igal Liberman > > > > This patch presents the FMan Foundation Libraries (FLIB) headers. > > The FMan FLib provides the basic API used by the FMan drivers to > > configure and control the FMan hardware. > > > > Signed-off-by: Igal Liberman > > --- > > .../ethernet/freescale/fman/flib/common/general.h | 41 ++ > > .../net/ethernet/freescale/fman/flib/fsl_fman.h | 609 > > +++++++++++++++++++++ > > 2 files changed, 650 insertions(+) > > create mode 100644 > > drivers/net/ethernet/freescale/fman/flib/common/general.h > > create mode 100644 > > drivers/net/ethernet/freescale/fman/flib/fsl_fman.h > > Why do we need separate patches just for headers? > We wanted to make the patches smaller, it's the main reason for this separation. > What does "common" refer to? > I removed ./flib/common. > What does the flib directory mean, in the context of Linux? If someone were > to add code to this driver, how do they know if the code should go into the > flib directory or not? > > > > > +#define iowrite32be(val, addr) out_be32(&(*addr), val) > > +#define ioread32be(addr) in_be32(&(*addr)) > > iowrite32be()/ioread32be() are already defined for all relevant architectures. > Why are you redefining them into something PPC- specific? > Removed those. > > +/* do not change! if changed, must be disabled for rev1 ! */ #define > > +DEFAULT_HALT_ON_EXTERNAL_ACTIVATION false > > +/* do not change! if changed, must be disabled for rev1 ! */ #define > > +DEFAULT_HALT_ON_UNRECOVERABLE_ECC_ERROR false > > rev1 of what chip? > P4080. I'll update the comments. > -Scott Igal. ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?