Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754318AbbFJSyW (ORCPT ); Wed, 10 Jun 2015 14:54:22 -0400 Received: from mail-bl2on0112.outbound.protection.outlook.com ([65.55.169.112]:57792 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751660AbbFJSyP (ORCPT ); Wed, 10 Jun 2015 14:54:15 -0400 Authentication-Results: freescale.com; dkim=none (message not signed) header.d=none; Message-ID: <1433962446.2477.121.camel@freescale.com> Subject: Re: [PATCH 01/12] fsl/fman: Add the FMan FLIB headers From: Scott Wood To: CC: , , , Igal Liberman Date: Wed, 10 Jun 2015 13:54:06 -0500 In-Reply-To: <1433949712-5648-3-git-send-email-madalin.bucur@freescale.com> 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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.0-fta1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:2:5800:3f7:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: DM3PR10CA0014.namprd10.prod.outlook.com (25.164.12.24) To CY1PR03MB1485.namprd03.prod.outlook.com (25.163.17.158) X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1485;2:t/M39yH597wDn+HoFAZRBssTXFCa0Hi6JJ4Sy6pvlIfSLOSVPR+pYcctIafwPG1X;2:G8D9uxLsnInnfHLA3ay8RXyDqzwAb/ZuHwV3EnnEG77buO9sZhyfU3420EDzKPArmjLTxjUilkBQjOWgNiALmmMdxqUb1NEjhPaurLc1tBNdNqXOllkVTFph3GlMijvHt3C11zYMYipSfZEnD0uIsQ==;6:gWYfOlXg7qJg+N85YMDPKd7+wME1NNRBkNX5JCHDd6DSpfUG0SZ6ZiM+PAcxbW3O4TDJ4mCUwatBlFbltL0KM38E2MY75di2nunPcgQODctnefCp7kHpgrDkwkzq+j6Wp2ZKKgfnlf2zkBWbeHNDqQw2AKexH/z4WYxnpsloUE/Lh6l0dS9eLW4tq94atZioWSetph4k6ARoRbd8amdF832Z0qGW4btptX81CkpW+JvwKmXoiyV+rF50869d0U5bzk9KmDPnl651NtNnjm7omkQpBuW9VgOoD6auQ0VfhMpQyDcZ5cOf6Seet5CSlMj1qgtTgpFO9rvGtI6SGCg9Q0/6EXywEP6wnbKDbiPRb6eCi6t4yeLLeA1mmpkgMRHsbz2PafUkxYoTwGzqvNUeNWHjlErnWUGmAfj2xqVK+juM/TgnMAG8obA5gF5t6sSM1o7yLVKDn3hT8qrp7GOtQ48ZJlFzrKjk8j26AQt+2SI2jxUsIJPx8JpQ9zvVUWY4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1485; 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:CY1PR03MB1485;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1485; X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1485;3:QM/oAJm7kcpncPGQicRCQ5EfZWFT+fRjysMzCAYIKVLQmxmzl4MFh3dukONlXiS562WbGZx5BHAqB1yloev362RnWZDQ4sEmF6sVPXK/icLa2vh4L77hNoPsbtR70tADpEjwzoCRsQUZy/HlsaBApcS3QkrqG7R4xxTz5cfMfGjowsgss4bdXqxAg9+7Sl/HyMtEJvppXrzK2/VAFZkq1T/jSDr0jLVH6AfSe/uDvsN7Fj9iFOlHLEhC17fqzo0da4mqVW7uqVFaJHTO2BmYzCss0ZmkgRhEcSUEuG3yIX+loCwB36KDVK1zKP/9EFWk X-Forefront-PRVS: 06036BD506 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(51704005)(377424004)(86362001)(2351001)(19580405001)(23676002)(33646002)(76176999)(46102003)(92566002)(19580395003)(42186005)(62966003)(40100003)(103116003)(107886002)(50986999)(2371004)(5001960100002)(110136002)(5001920100001)(47776003)(2950100001)(36756003)(189998001)(122386002)(77096005)(50466002)(50226001)(5820100001)(77156002)(3826002)(4001430100001)(4001450100001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR03MB1485;H:[IPv6:2601:2:5800:3f7:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAzTUIxNDg1Ozk6Z01PRVFBNEZ5YVJXekE2eVJvNElaMUJIK0xo?= =?utf-8?B?WkFhMFJmRGVtaUFibXFvajRTbEJyRW9wckVGUEF5VmhXd2RacUxvUURaa0N6?= =?utf-8?B?dUZuaWdiSm9TNndvbDN4djM5SlNYRkhMYTgwTEhGZ2RkM3hwa1A5Y3ppNEkw?= =?utf-8?B?SFVtOGdqYUdUM1lrS2MwN2N4Yno0aHJObjlCbjM1R2UyanZ5Mk9XVnBsS1d2?= =?utf-8?B?Q2YzQTFUWGI5VTBZRFhCSkZBV29JMTlxN1pCUElaVlBUZU5OOWNwNTIydDJC?= =?utf-8?B?MkJDdXQ0WG1vVjNEMCtKRUFyMSthcmYvVmo3OUtFRnFLay9pNTFwWXhUdTYy?= =?utf-8?B?ZVozS2VsZVF3ZlJEaC9vZ3VMa0lTWm9zbmZMdFhabTYxK0JjUFNLVFNLTjVI?= =?utf-8?B?eVc0MGJlZ05LZ2M4K1Y3bTl0WkhEa3hQRWZTTHptUFQ3d3MrZmxMSVVBcHBp?= =?utf-8?B?V21LbG9XY1ZqU1hmcDZxZ0RpQ3JPalFrMENWTzUza09NTFp5alV4K205SDNu?= =?utf-8?B?aE9vSDJhWHBlVDJtT210N0N0NlBiVU9rM2E2MlM5QlJqQjloK1JlY2RKK0tZ?= =?utf-8?B?cGhONGZqajRUSWluUUNFb1FSWnFsUmtsYmoveERFT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DZgqH9CpFKCaLBeHG4J8iZzERonIqa26O1ZgxLikoeV+jmjTT2DutiLH2ayGxRRdgu7I7LT0thT3EvPVeLcylAsSx5MYRpk=;6:hnjmRp195K0DYJOrj4ImsgX9TBQjQVrvmDpNuBZD1CUJkYwtg0LEz0AAj1Qt6g5s X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2015 18:54:11.9253 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1485 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1753 Lines: 48 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? What does "common" refer to? 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? > +/* 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? -Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/