Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751169AbaK0NU1 (ORCPT ); Thu, 27 Nov 2014 08:20:27 -0500 Received: from mail-ig0-f182.google.com ([209.85.213.182]:37975 "EHLO mail-ig0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbaK0NUZ (ORCPT ); Thu, 27 Nov 2014 08:20:25 -0500 MIME-Version: 1.0 In-Reply-To: <6741d995fbec801d795c5db481e39425bd912f8a.1415962281.git.michal.simek@xilinx.com> References: <6741d995fbec801d795c5db481e39425bd912f8a.1415962281.git.michal.simek@xilinx.com> Date: Thu, 27 Nov 2014 14:20:24 +0100 Message-ID: Subject: Re: [PATCH v4 5/6] ARM: zynq: Add OCM controller driver From: Linus Walleij To: Michal Simek Cc: "linux-arm-kernel@lists.infradead.org" , Soren Brinkmann , Olof Johansson , Arnd Bergmann , Michal Simek , Josh Cartwright , Steffen Trumtrar , Rob Herring , Peter Crosthwaite , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , Andrew Morton , "David S. Miller" , Greg Kroah-Hartman , Joe Perches , Mauro Carvalho Chehab , Antti Palosaari , Jingoo Han , Sandeep Nair , Santosh Shilimkar , Andy Gross , Thierry Reding , Peter De Schrijver , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 14, 2014 at 11:52 AM, Michal Simek wrote: > The driver provide memory allocator which can > be used by others drivers to allocate memory inside OCM. > All location for 64kB blocks are supported Allocation? > and driver is trying to allocate the largest continuous > block of memory. Isn't all genalloc allocations continuous? (...) > + zynq_ocmc->pool = devm_gen_pool_create(&pdev->dev, > + ilog2(ZYNQ_OCMC_GRANULARITY), > + -1); Do this: #include zynq_ocmc->pool = devm_gen_pool_create(&pdev->dev, ilog2(SZ_64K), -1); And get rid of the #define for ZYNQ_OCMC_GRANULARITY Yours, Linus Walleij -- 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/