Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757187AbaJ2VK6 (ORCPT ); Wed, 29 Oct 2014 17:10:58 -0400 Received: from mail-ob0-f176.google.com ([209.85.214.176]:64651 "EHLO mail-ob0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756988AbaJ2VK5 (ORCPT ); Wed, 29 Oct 2014 17:10:57 -0400 MIME-Version: 1.0 In-Reply-To: <20141029210250.GM18557@sirena.org.uk> References: <1414436825-19416-1-git-send-email-jcmvbkbc@gmail.com> <20141027193229.GE18557@sirena.org.uk> <20141028154224.GX18557@sirena.org.uk> <20141028173853.GD18557@sirena.org.uk> <20141029210250.GM18557@sirena.org.uk> Date: Thu, 30 Oct 2014 00:10:56 +0300 Message-ID: Subject: Re: [PATCH] ASoC: add xtensa xtfpga I2S interface and platform From: Max Filippov To: Mark Brown Cc: alsa-devel@alsa-project.org, "devicetree@vger.kernel.org" , "linux-xtensa@linux-xtensa.org" , LKML , Takashi Iwai , Liam Girdwood , Jaroslav Kysela , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely 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 Thu, Oct 30, 2014 at 12:02 AM, Mark Brown wrote: > On Wed, Oct 29, 2014 at 05:23:15PM +0300, Max Filippov wrote: >> On Tue, Oct 28, 2014 at 8:38 PM, Mark Brown wrote: >> > On Tue, Oct 28, 2014 at 08:00:45PM +0300, Max Filippov wrote: > >> >> > It's also about ensuring that the code is cleanly split up so that >> >> > someone can actually go in and add the required support later (and TBH > >> >> Can you point me to an example of such split, so that I don't write it in >> >> an unusual way? > >> > Essentially all drivers are split this way... > >> But all of them have DMA registers and I2S registers completely separated, >> right? How do I share registers between pcm and i2s parts? > > Just keep the code physically separate so the DMA bits are hanging off > the DMA operations and the interface setup bits are hanging off the DAI > operations rather than all mixed in together. Ok. Should I also move them to a separate file, or one file is good for now? -- Thanks. -- Max -- 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/