[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201207021527.19888.arnd@arndb.de>
Date: Mon, 2 Jul 2012 15:27:19 +0000
From: Arnd Bergmann <arnd@...db.de>
To: Vinayak Holikatti <vinholikatti@...il.com>
Cc: James.Bottomley@...senpartnership.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, patches@...aro.org,
linux-samsung-soc@...r.kernel.org, santoshsy@...il.com,
arnd@...aro.org, girish.shivananjappa@...aro.org,
saugata.das@...aro.org, vishak.g@...sung.com, venkat@...aro.org,
k.rajesh@...sung.com, yejin.moon@...sung.com, dsaxena@...aro.org,
ilho215.lee@...sung.com, nala.la@...sung.com,
stephen.doel@...aro.org, sreekumar.c@...sung.com
Subject: Re: [PATCH 2/4] [SCSI] ufs: Add Platform glue driver for ufshcd
On Monday 02 July 2012, Vinayak Holikatti wrote:
> +static struct platform_driver ufshcd_pltfrm_driver = {
> + .probe = ufshcd_pltfrm_probe,
> + .remove = __devexit_p(ufshcd_pltfrm_remove),
> +#ifdef CONFIG_PM
> + .suspend = ufshcd_pltfrm_suspend,
> + .resume = ufshcd_pltfrm_resume,
> +#endif
> + .driver = {
> + .name = "ufshcd",
> + .owner = THIS_MODULE,
> + },
> +};
Hi Vinayak,
Please add a device tree match table here to allow the driver to be
used by modern platforms that only do device tree based hardware
detection. Just look in other drivers for existing uses of
"of_match_table" to be used.
I'm not sure what the "compatible" string should be in this case,
because the it matches a JEDEC specification, not a particular
vendor's implementation of it. The match table can have multiple
entries, which is useful if you have multiple implementations
that are slightly different or don't fully conform to the spec.
Maybe a list like
static const struct of_device_id ufs_of_match[] = {
{ .compatible = "jedec,ufs-1.1" },
}
would be enough for now.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists