- Subject: Re: [PATCH 2/4] [SCSI] ufs: Add Platform glue driver for ufshcd
- From: vinayak holikatti <vinholikatti@xxxxxxxxx>
- Date: Wed, 11 Jul 2012 09:44:13 +0530
- Cc: James.Bottomley@xxxxxxxxxxxxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, patches@xxxxxxxxxx, linux-samsung-soc@xxxxxxxxxxxxxxx, santoshsy@xxxxxxxxx, arnd@xxxxxxxxxx, girish.shivananjappa@xxxxxxxxxx, saugata.das@xxxxxxxxxx, vishak.g@xxxxxxxxxxx, venkat@xxxxxxxxxx, k.rajesh@xxxxxxxxxxx, yejin.moon@xxxxxxxxxxx, dsaxena@xxxxxxxxxx, ilho215.lee@xxxxxxxxxxx, nala.la@xxxxxxxxxxx, stephen.doel@xxxxxxxxxx, sreekumar.c@xxxxxxxxxxx
- In-reply-to: <201207021527.19888.arnd@arndb.de>
- References: <1341239572-7408-1-git-send-email-vinholikatti@gmail.com> <1341239572-7408-3-git-send-email-vinholikatti@gmail.com> <201207021527.19888.arnd@arndb.de>
On Mon, Jul 2, 2012 at 8:57 PM, Arnd Bergmann <arnd@xxxxxxxx> wrote:
> 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.
Ok, will implement device tree match table.
>
> Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Home]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Video Projectors]
[PDAs]
[Free Online Dating]
[Hacking TiVo]
[Linux Kernel]
[Linux SCSI]
[XFree86]
[Devices]
[Big List of Linux Books]
[16.7MP]