Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937455AbcJXJOY (ORCPT ); Mon, 24 Oct 2016 05:14:24 -0400 Received: from mail-yb0-f175.google.com ([209.85.213.175]:32903 "EHLO mail-yb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753615AbcJXJOV (ORCPT ); Mon, 24 Oct 2016 05:14:21 -0400 MIME-Version: 1.0 In-Reply-To: <1477298581-31291-1-git-send-email-bgolaszewski@baylibre.com> References: <1477298581-31291-1-git-send-email-bgolaszewski@baylibre.com> From: Bartosz Golaszewski Date: Mon, 24 Oct 2016 11:14:17 +0200 Message-ID: Subject: Re: [PATCH v2] drm: tilcdc: implement palette loading for rev1 To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori Cc: LKML , linux-drm , Laurent Pinchart , Peter Ujfalusi , Bartosz Golaszewski 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: 663 Lines: 21 2016-10-24 10:43 GMT+02:00 Bartosz Golaszewski : > Revision 1 of the IP doesn't work if we don't load the palette (even > if it's not used, which is the case for the RGB565 format). > > Add a function called from tilcdc_crtc_enable() which performs all > required actions if we're dealing with a rev1 chip. > > Signed-off-by: Bartosz Golaszewski > --- > v1 -> v2: > - only allocate dma memory for revision 1 > Superseded by v3. Sorry for the noise, but I only noticed that a resource managed version of dma_alloc_coherent() exists after having sent out v2. This simplifies the code a bit. Thanks, Bartosz