Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753050AbbLJEGI (ORCPT ); Wed, 9 Dec 2015 23:06:08 -0500 Received: from mga09.intel.com ([134.134.136.24]:38385 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752345AbbLJEGF (ORCPT ); Wed, 9 Dec 2015 23:06:05 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,406,1444719600"; d="scan'208";a="857785260" Date: Thu, 10 Dec 2015 09:39:09 +0530 From: Vinod Koul To: Wang Hongcheng Cc: Mika Westerberg , Joerg Roedel , Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, dmaengine@vger.kernel.org, iommu@lists.linux-foundation.org, Borislav Petkov , Huang Rui , Wan Zongshun , Ken Xue , Tony Li Subject: Re: [PATCH 4/9] dmaengine: pl330: add new items for pl330 private data Message-ID: <20151210040909.GM1854@localhost> References: <1449199466-6081-1-git-send-email-annie.wang@amd.com> <1449199466-6081-5-git-send-email-annie.wang@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1449199466-6081-5-git-send-email-annie.wang@amd.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1545 Lines: 51 On Fri, Dec 04, 2015 at 11:24:21AM +0800, Wang Hongcheng wrote: > has_no_cap_mask means this device has no preset cap mask. > mcbuf_sz means bytes to allocate for MC buffer. MC ? > flags is for irq sharing, default is non-shared, in AMD > Carrizo, pl330 shares IRQ with its corresponding UART device. > > Signed-off-by: Wang Hongcheng > --- > drivers/acpi/acpi_apd.c | 13 ++++++++++++- > drivers/dma/pl330.c | 19 +++++++++++++------ > include/linux/amba/pl330.h | 3 +++ > 3 files changed, 28 insertions(+), 7 deletions(-) > > diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c > index eb3316a..7a582f5 100644 > --- a/drivers/acpi/acpi_apd.c > +++ b/drivers/acpi/acpi_apd.c > @@ -21,6 +21,7 @@ > #include > #include > #include > +#include > #include > > #include "internal.h" > @@ -35,6 +36,16 @@ struct apd_private_data; > #define ACPI_APD_SYSFS BIT(0) > #define ACPI_APD_PM BIT(1) > > +static u8 peri_id[2] = { 0, 1 }; > + > +static struct dma_pl330_platdata amd_pl330 = { > + .nr_valid_peri = 2, > + .peri_id = peri_id, > + .has_no_cap_mask = true, > + .mcbuf_sz = 0, > + .flags = IRQF_SHARED, > +}; Why not DT or ACPI for this? -- ~Vinod -- 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/