Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1239671

Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Alim Akhtar <alim.akhtar@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data
Date Mon, 05 Oct 2015 17:30:02 +0200
Message-ID <qgfSa-2Pr-35@gated-at.bofh.it> (permalink)
References <qeJB0-1BQ-9@gated-at.bofh.it> <qeKdI-2A1-31@gated-at.bofh.it> <qg9jI-1RW-7@gated-at.bofh.it> <qg9Wr-2Qs-39@gated-at.bofh.it> <qgeMq-1i4-7@gated-at.bofh.it>
X-Original-To Rob Herring <robh@kernel.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=+71Rto0du3CQSaBPEURqkmb++kkFpfzLzj87yd4+11w=; b=ySfmWMX2rmDftCHKzWIDfP4wHQ6o1uShkrMRR1w5sTlbFu1OoA0ZIxu5lTnGySwPfM 64gXvNub3Wxzay/WQePIijbXtEGM8tExMrhaW3mxRQL3iaUDR0VnFuy+JSu6frknThBZ IwHx0qTpPLpAmoH8RIx4wwK1lWzW5D2/Fg+p8UbnFOhnNF/s//XdfboCaPsACHVoflQQ oShQg8Eife3IRXjXRhrZhUlRjQckRdW5kjOxrHgwJO2U5HvyKFg1ELNBAsnFt2hMZuAT Pb4b31ootU5IGakYz+XHslMj73PRJcd2hoWgddPKqWfr1ebYNNX9Hs5G5dhPizeAwvYI R6lA==
X-Received by 10.107.136.38 with SMTP id k38mr29669495iod.145.1444058449668; Mon, 05 Oct 2015 08:20:49 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 68
Organization linux.* mail to news gateway
X-Original-Cc Arnd Bergmann <arnd@arndb.de>, Yaniv Gardi <ygardi@codeaurora.org>, Alim Akhtar <alim.akhtar@samsung.com>, kbuild test robot <lkp@intel.com>, kbuild-all@01.org, linux-scsi@vger.kernel.org, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "James E.J. Bottomley" <JBottomley@odin.com>, vinayak holikatti <vinholikatti@gmail.com>, Amit Kachhap <amit.daniel@samsung.com>, Seungwon Jeon <essuuj@gmail.com>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
X-Original-Date Mon, 5 Oct 2015 20:50:10 +0530
X-Original-Message-ID <CAGOxZ51BKfh_FyJ9pWv56a0QXUE4Kd3oZM7Ruu6ACg6GsQwyXQ@mail.gmail.com>
X-Original-References <201510011845.GN7Kisc4%fengguang.wu@intel.com> <1790578.NZeHVGuJeN@wuerfel> <56123165.2060500@samsung.com> <14885029.SsJgQkuPcG@wuerfel> <CAL_JsqJWzqMkkMH8myFX1eeuV-U25Ri_nWhjj2mb3AWh5tzDZA@mail.gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1239671

Show key headers only | View raw


Hi Rob,

On Mon, Oct 5, 2015 at 7:41 PM, Rob Herring <robh@kernel.org> wrote:
> On Mon, Oct 5, 2015 at 4:06 AM, Arnd Bergmann <arnd@arndb.de> wrote:
>> On Monday 05 October 2015 13:44:29 Alim Akhtar wrote:
>>> 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
>>
>> Hmm, too bad we didn't catch it then, it's much more work to fix now.
>
> What you suggested is what is being implemented[1]. It is not merged
> yet. The core is a library and the platform specific parts create the
> driver.
>
> Rob
>
> [1] https://lkml.org/lkml/2015/9/2/364

Thanks for the pointer...let me have a look. At least now we have
another variant to test it out.

> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Regards,
Alim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data Arnd Bergmann <arnd@arndb.de> - 2015-10-01 13:30 +0200
  Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data Alim Akhtar <alim.akhtar@samsung.com> - 2015-10-05 10:30 +0200
    Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data Arnd Bergmann <arnd@arndb.de> - 2015-10-05 11:10 +0200
      Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data Rob Herring <robh@kernel.org> - 2015-10-05 16:20 +0200
        Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data Arnd Bergmann <arnd@arndb.de> - 2015-10-05 16:50 +0200
        Re: [PATCH v3 13/13] scsi: ufs: Add exynos ufs platform data Alim Akhtar <alim.akhtar@gmail.com> - 2015-10-05 17:30 +0200

csiph-web