From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Edgar E. Iglesias" Subject: Re: [PATCH v1 1/2] xen/arm: Add Cadence UART driver Date: Fri, 6 Mar 2015 11:08:42 +1000 Message-ID: <20150306010842.GC9306@toto> References: <1425544050-10044-1-git-send-email-edgar.iglesias@gmail.com> <1425544050-10044-2-git-send-email-edgar.iglesias@gmail.com> <1425575182.25940.275.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1425575182.25940.275.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: tim@xen.org, julien.grall@linaro.org, stefano.stabellini@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, Mar 05, 2015 at 05:06:22PM +0000, Ian Campbell wrote: > On Thu, 2015-03-05 at 18:27 +1000, Edgar E. Iglesias wrote: > > Signed-off-by: Edgar E. Iglesias > > --- > > config/arm64.mk | 1 + > > xen/drivers/char/Makefile | 1 + > > xen/drivers/char/cadence-uart.c | 222 +++++++++++++++++++++++++++++++++++++ > > xen/include/asm-arm/cadence-uart.h | 55 +++++++++ > > 4 files changed, 279 insertions(+) > > create mode 100644 xen/drivers/char/cadence-uart.c > > create mode 100644 xen/include/asm-arm/cadence-uart.h > > I tried to apply this but: > > cadence-uart.c:211:5: error: unknown field 'compatible' specified in initializer > .compatible = cuart_dt_compat, > ^ > cadence-uart.c:211:5: error: initialization from incompatible pointer type [-Werror] > cadence-uart.c:211:5: error: (near initialization for '__dev_desc_cuart.dt_match') [-Werror] > cc1: all warnings being treated as errors > > I think because this patch needs to be rebased onto: > commit f9eff198f9d4863e80078a33001a9bb90a99a4b1 > Author: Julien Grall > Date: Wed Feb 25 18:52:57 2015 +0000 > > xen/arm: Describe devices supported by a driver with dt_device_match > > Xen is currently using a list of compatible strings to match drivers again > device nodes. This leads to having double definitions in the GIC > code. > > Furthermore Linux drivers are using dt_device_match (actually called > of_device_id in Linux) to list device supported by the drivers. > > Remove the exisiting compatible field and replace with a dt_match field > > Signed-off-by: Julien Grall > Acked-by: Stefano Stabellini > Acked-by: Ian Campbell > > Which is currently in the staging branch (this is the pre automated test > branch, normally master is fine but sometimes there can be conflicts). > > Please could you rebase and resend. Thanks Ian, I've rebased and sending out a v2 now. Cheers, Edgar > > Thanks, > Ian.