mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] ahci-generic: add oftree support
@ 2013-02-12 13:10 Jean-Christophe PLAGNIOL-VILLARD
  2013-02-12 13:41 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-02-12 13:10 UTC (permalink / raw)
  To: barebox; +Cc: Rob Herring

calxeda use the generic driver but have it's own compatible cf Linux kernel
Documentation

Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 drivers/ata/ahci-generic.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/ata/ahci-generic.c b/drivers/ata/ahci-generic.c
index 4077627..62f2a19 100644
--- a/drivers/ata/ahci-generic.c
+++ b/drivers/ata/ahci-generic.c
@@ -35,9 +35,20 @@ err_free:
 	return ret;
 }
 
+static __maybe_unused struct of_device_id ahci_dt_ids[] = {
+	{
+		.compatible = "ahci",
+	}, {
+		.compatible = "calxeda,hb-ahci",
+	}, {
+		/* sentinel */
+	}
+};
+
 static struct driver_d ahci_driver = {
 	.name	= "ahci",
 	.probe	= ahci_probe,
+	.of_compatible = DRV_OF_COMPAT(ahci_dt_ids),
 };
 
 static int ahci_init(void)
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] ahci-generic: add oftree support
  2013-02-12 13:10 [PATCH 1/1] ahci-generic: add oftree support Jean-Christophe PLAGNIOL-VILLARD
@ 2013-02-12 13:41 ` Rob Herring
  2013-02-12 14:10   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2013-02-12 13:41 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On 02/12/2013 07:10 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> calxeda use the generic driver but have it's own compatible cf Linux kernel
> Documentation
> 
> Cc: Rob Herring <rob.herring@calxeda.com>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
>  drivers/ata/ahci-generic.c |   11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/drivers/ata/ahci-generic.c b/drivers/ata/ahci-generic.c
> index 4077627..62f2a19 100644
> --- a/drivers/ata/ahci-generic.c
> +++ b/drivers/ata/ahci-generic.c
> @@ -35,9 +35,20 @@ err_free:
>  	return ret;
>  }
>  
> +static __maybe_unused struct of_device_id ahci_dt_ids[] = {
> +	{
> +		.compatible = "ahci",

I don't believe this is a documented compatible value.

> +	}, {
> +		.compatible = "calxeda,hb-ahci",
> +	}, {
> +		/* sentinel */
> +	}
> +};
> +
>  static struct driver_d ahci_driver = {
>  	.name	= "ahci",
>  	.probe	= ahci_probe,
> +	.of_compatible = DRV_OF_COMPAT(ahci_dt_ids),
>  };
>  
>  static int ahci_init(void)
> 


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] ahci-generic: add oftree support
  2013-02-12 13:41 ` Rob Herring
@ 2013-02-12 14:10   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-02-12 14:10 UTC (permalink / raw)
  To: Rob Herring; +Cc: barebox

On 07:41 Tue 12 Feb     , Rob Herring wrote:
> On 02/12/2013 07:10 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > calxeda use the generic driver but have it's own compatible cf Linux kernel
> > Documentation
> > 
> > Cc: Rob Herring <rob.herring@calxeda.com>
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > ---
> >  drivers/ata/ahci-generic.c |   11 +++++++++++
> >  1 file changed, 11 insertions(+)
> > 
> > diff --git a/drivers/ata/ahci-generic.c b/drivers/ata/ahci-generic.c
> > index 4077627..62f2a19 100644
> > --- a/drivers/ata/ahci-generic.c
> > +++ b/drivers/ata/ahci-generic.c
> > @@ -35,9 +35,20 @@ err_free:
> >  	return ret;
> >  }
> >  
> > +static __maybe_unused struct of_device_id ahci_dt_ids[] = {
> > +	{
> > +		.compatible = "ahci",
> 
> I don't believe this is a documented compatible value.
I see it

Dame out of tree client linux kernel

I'm sending a path to the dt-ml so we ca have it too

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-12 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-12 13:10 [PATCH 1/1] ahci-generic: add oftree support Jean-Christophe PLAGNIOL-VILLARD
2013-02-12 13:41 ` Rob Herring
2013-02-12 14:10   ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox