Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755158AbcK3HMV (ORCPT ); Wed, 30 Nov 2016 02:12:21 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:51696 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbcK3HMM (ORCPT ); Wed, 30 Nov 2016 02:12:12 -0500 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com uAU7BwIQ015944 X-Nifty-SrcIP: [209.85.161.182] MIME-Version: 1.0 In-Reply-To: <20161127171606.3acd2c54@bbrezillon> References: <1480183585-592-1-git-send-email-yamada.masahiro@socionext.com> <1480183585-592-22-git-send-email-yamada.masahiro@socionext.com> <20161127171606.3acd2c54@bbrezillon> From: Masahiro Yamada Date: Wed, 30 Nov 2016 16:11:53 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 21/39] mtd: nand: denali: support 64bit capable DMA engine To: Boris Brezillon Cc: linux-mtd@lists.infradead.org, Linux Kernel Mailing List , Marek Vasut , Brian Norris , Richard Weinberger , David Woodhouse , Cyrille Pitchen Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 24 Hi Boris, 2016-11-28 1:16 GMT+09:00 Boris Brezillon : > > If you follow my suggestions of definition function pointers, you'll > just have to add a function pointer to the denali_caps struct: > > void (*setup_dma)(struct denali_nand_info *denali, int op); > This is possible because both 32B and 64B variants have the same function prototype. However, I am not keen on doing so for ecc_handle(), so, at this moment, I am not keen on doing so only for setup_dma() either. If I see more cases that fit in callback handler approach, I will think about switching to it with consistency. -- Best Regards Masahiro Yamada