[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <56123165.2060500@samsung.com>
Date: Mon, 05 Oct 2015 13:44:29 +0530
From: Alim Akhtar <alim.akhtar@...sung.com>
To: Arnd Bergmann <arnd@...db.de>, kbuild test robot <lkp@...el.com>
Cc: kbuild-all@...org, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, JBottomley@...n.com,
vinholikatti@...il.com, amit.daniel@...sung.com, essuuj@...il.com,
devicetree@...r.kernel.org, Rob Herring <robh@...nel.org>
Subject: Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data
CCing Rob Herring,
Hi Arnd,
On 10/01/2015 04:59 PM, Arnd Bergmann wrote:
> On Thursday 01 October 2015 18:46:34 kbuild test robot wrote:
>> [auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
>>
>> config: x86_64-allmodconfig (attached as .config)
>> reproduce:
>> git checkout 6e153e3bf7c68b019e987c5a0ffadebd9c7d4fbb
>> # save the attached .config to linux build tree
>> make ARCH=x86_64
>>
>> All error/warnings (new ones prefixed by >>):
>>
>>>> ERROR: "ufs_hba_exynos_ops" [drivers/scsi/ufs/ufshcd-pltfrm.ko] undefined!
>>
>>
>
> Ah, this seems to be a case of layering violation. It would be best to
> restructure the code so that the exynos driver registers a platform_driver
> by itself for the respective DT compatible string, and then calls
> into the common code from its probe function, rather than having the
> generic driver know about the specific backends.
>
> That approach will also make the generic driver more scalable as we
> add further chip-specific variations, and matches what we do in other
> drivers.
>
Looks like some discussions on ufs variant driver probe method happened
here [1] few months back.
[1]-> https://lkml.org/lkml/2015/6/3/180
And since ufshcd-pltfrm is already a platform_driver, so I just add a
platform data for the variant driver.
I should have add a IS_ENABLED for it to avoid the compilation error for
other ARCH.
Thanks!!
> 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