Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754207Ab3H1Gta (ORCPT ); Wed, 28 Aug 2013 02:49:30 -0400 Received: from mail-ob0-f181.google.com ([209.85.214.181]:37428 "EHLO mail-ob0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752669Ab3H1Gt2 (ORCPT ); Wed, 28 Aug 2013 02:49:28 -0400 MIME-Version: 1.0 In-Reply-To: <1376243970-6489-4-git-send-email-tomasz.figa@gmail.com> References: <1376243970-6489-1-git-send-email-tomasz.figa@gmail.com> <1376243970-6489-4-git-send-email-tomasz.figa@gmail.com> Date: Wed, 28 Aug 2013 08:49:28 +0200 Message-ID: Subject: Re: [PATCH 03/18] dmaengine: PL08x: Rework LLI handling to be less fragile From: Linus Walleij To: Tomasz Figa Cc: linux-samsung-soc , "linux-arm-kernel@lists.infradead.org" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , linux-spi@vger.kernel.org, Dan Williams , Jaroslav Kysela , Kukjin Kim , Liam Girdwood , Mark Brown , Mike Turquette , Padmavathi Venna , Russell King , Sangbeom Kim , Takashi Iwai , Vinod Koul Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1036 Lines: 26 On Sun, Aug 11, 2013 at 7:59 PM, Tomasz Figa wrote: > Currently memory allocated for LLIs is casted to an array of structs, > which is fragile and also limits the driver to a single, predefined LLI > layout, while there are some variants of PL08x, which have more fields > in LLI (namely PL080S with its extra CCTL2). > > This patch makes LLIs a sequence of 32-bit words, which is just filled > with appropriate values in appropriate order and padded with required > amount of dummy words (currently zero, but PL080S will make better use > of this). > > Suggested-by: Linus Walleij > Signed-off-by: Tomasz Figa Yes exactly like this :-) Reviewed-by: Linus Walleij 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/