Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
> On Wed, 2015-06-17 at 14:21 +, Dov Levenglick wrote: >> Hi James, >> Rob raises a point that we don't agree with. On the other hand, we are >> not >> capable of convincing him in the validity of our approach - we are at an >> impasse. >> I would like to point out that our approach was

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread James Bottomley
On Wed, 2015-06-17 at 14:21 +, Dov Levenglick wrote: > Hi James, > Rob raises a point that we don't agree with. On the other hand, we are not > capable of convincing him in the validity of our approach - we are at an > impasse. > I would like to point out that our approach was reviewed by Paul

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
Hi James, Rob raises a point that we don't agree with. On the other hand, we are not capable of convincing him in the validity of our approach - we are at an impasse. I would like to point out that our approach was reviewed by Paul and Mita (external reviewers) and neither of them had the

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Rob Herring
On Wed, Jun 17, 2015 at 8:17 AM, Dov Levenglick wrote: >> On Wed, Jun 17, 2015 at 2:42 AM, Dov Levenglick >> wrote: On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick wrote: >> On Sun, Jun 7, 2015 at 10:32 AM, wrote: 2015-06-05 5:53 GMT+09:00 : [...]

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
> On Wed, Jun 17, 2015 at 2:42 AM, Dov Levenglick > wrote: >>> On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick >>> wrote: > On Sun, Jun 7, 2015 at 10:32 AM, wrote: >>> 2015-06-05 5:53 GMT+09:00 : >>> >>> [...] >>> >> If ufshcd-pltfrm driver is loaded before ufs-qcom, (what

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Rob Herring
On Wed, Jun 17, 2015 at 2:42 AM, Dov Levenglick wrote: >> On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick >> wrote: On Sun, Jun 7, 2015 at 10:32 AM, wrote: >> 2015-06-05 5:53 GMT+09:00 : >> >> [...] >> > If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually >

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
> On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick > wrote: >>> On Sun, Jun 7, 2015 at 10:32 AM, wrote: > 2015-06-05 5:53 GMT+09:00 : > > [...] > If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually happens always), then the calling to of_platform_populate()

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick d...@codeaurora.org wrote: On Sun, Jun 7, 2015 at 10:32 AM, yga...@codeaurora.org wrote: 2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: [...] If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually happens always), then the

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Rob Herring
On Wed, Jun 17, 2015 at 8:17 AM, Dov Levenglick d...@codeaurora.org wrote: On Wed, Jun 17, 2015 at 2:42 AM, Dov Levenglick d...@codeaurora.org wrote: On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick d...@codeaurora.org wrote: On Sun, Jun 7, 2015 at 10:32 AM, yga...@codeaurora.org wrote:

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Rob Herring
On Wed, Jun 17, 2015 at 2:42 AM, Dov Levenglick d...@codeaurora.org wrote: On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick d...@codeaurora.org wrote: On Sun, Jun 7, 2015 at 10:32 AM, yga...@codeaurora.org wrote: 2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: [...] If ufshcd-pltfrm

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
On Wed, Jun 17, 2015 at 2:42 AM, Dov Levenglick d...@codeaurora.org wrote: On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick d...@codeaurora.org wrote: On Sun, Jun 7, 2015 at 10:32 AM, yga...@codeaurora.org wrote: 2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: [...] If ufshcd-pltfrm

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
On Wed, 2015-06-17 at 14:21 +, Dov Levenglick wrote: Hi James, Rob raises a point that we don't agree with. On the other hand, we are not capable of convincing him in the validity of our approach - we are at an impasse. I would like to point out that our approach was reviewed by Paul

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
Hi James, Rob raises a point that we don't agree with. On the other hand, we are not capable of convincing him in the validity of our approach - we are at an impasse. I would like to point out that our approach was reviewed by Paul and Mita (external reviewers) and neither of them had the

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread James Bottomley
On Wed, 2015-06-17 at 14:21 +, Dov Levenglick wrote: Hi James, Rob raises a point that we don't agree with. On the other hand, we are not capable of convincing him in the validity of our approach - we are at an impasse. I would like to point out that our approach was reviewed by Paul and

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-09 Thread Rob Herring
On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick wrote: >> On Sun, Jun 7, 2015 at 10:32 AM, wrote: 2015-06-05 5:53 GMT+09:00 : [...] >>> If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually >>> happens >>> always), then the calling to of_platform_populate() which is added,

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-09 Thread Rob Herring
On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick d...@codeaurora.org wrote: On Sun, Jun 7, 2015 at 10:32 AM, yga...@codeaurora.org wrote: 2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: [...] If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually happens always), then the

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Dov Levenglick
> On Sun, Jun 7, 2015 at 10:32 AM, wrote: >>> 2015-06-05 5:53 GMT+09:00 : > Hi Yaniv, > > 2015-06-03 18:37 GMT+09:00 Yaniv Gardi : >> @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct >> platform_device *pdev) >> goto out; >> } >>

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Rob Herring
On Sun, Jun 7, 2015 at 10:32 AM, wrote: >> 2015-06-05 5:53 GMT+09:00 : Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi : > @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct > platform_device *pdev) > goto out; > } > > -

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Rob Herring
On Thu, Jun 4, 2015 at 9:32 AM, Akinobu Mita wrote: > Hi Yaniv, > > 2015-06-03 18:37 GMT+09:00 Yaniv Gardi : >> @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device >> *pdev) >> goto out; >> } >> >> - hba->vops = get_variant_ops(>dev); >> +

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Akinobu Mita
2015-06-08 0:32 GMT+09:00 : > 1) > If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually happens > always), then the calling to of_platform_populate() which is added, > guarantees that ufs-qcom probe will be called and finish, before > ufshcd_pltfrm probe continues. I'm worrying the

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Dov Levenglick
On Sun, Jun 7, 2015 at 10:32 AM, yga...@codeaurora.org wrote: 2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi yga...@codeaurora.org: @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Akinobu Mita
2015-06-08 0:32 GMT+09:00 yga...@codeaurora.org: 1) If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually happens always), then the calling to of_platform_populate() which is added, guarantees that ufs-qcom probe will be called and finish, before ufshcd_pltfrm probe continues.

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Rob Herring
On Thu, Jun 4, 2015 at 9:32 AM, Akinobu Mita akinobu.m...@gmail.com wrote: Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi yga...@codeaurora.org: @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto out; } - hba-vops =

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Rob Herring
On Sun, Jun 7, 2015 at 10:32 AM, yga...@codeaurora.org wrote: 2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi yga...@codeaurora.org: @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-07 Thread ygardi
> 2015-06-05 5:53 GMT+09:00 : >>> Hi Yaniv, >>> >>> 2015-06-03 18:37 GMT+09:00 Yaniv Gardi : @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto out; } - hba->vops = get_variant_ops(>dev); +

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-07 Thread ygardi
Thanks Paul for the review and comments. please see inline. > On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: >> --- a/drivers/scsi/ufs/ufs-qcom.c >> +++ b/drivers/scsi/ufs/ufs-qcom.c > >> EXPORT_SYMBOL(ufs_hba_qcom_vops); > > Nothing uses this export. It's still a (static) symbol that

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-07 Thread ygardi
Thanks Paul for the review and comments. please see inline. On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c EXPORT_SYMBOL(ufs_hba_qcom_vops); Nothing uses this export. It's still a (static) symbol that is not

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-07 Thread ygardi
2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi yga...@codeaurora.org: @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto out; } - hba-vops = get_variant_ops(pdev-dev); +

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-05 Thread Akinobu Mita
2015-06-05 5:53 GMT+09:00 : >> Hi Yaniv, >> >> 2015-06-03 18:37 GMT+09:00 Yaniv Gardi : >>> @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct >>> platform_device *pdev) >>> goto out; >>> } >>> >>> - hba->vops = get_variant_ops(>dev); >>> + err =

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-05 Thread Akinobu Mita
2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi yga...@codeaurora.org: @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto out; } - hba-vops = get_variant_ops(pdev-dev); +

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread ygardi
> Hi Yaniv, > > 2015-06-03 18:37 GMT+09:00 Yaniv Gardi : >> @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct >> platform_device *pdev) >> goto out; >> } >> >> - hba->vops = get_variant_ops(>dev); >> + err = of_platform_populate(node, NULL, NULL, >dev);

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread ygardi
> On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: >> --- a/drivers/scsi/ufs/ufs-qcom.c >> +++ b/drivers/scsi/ufs/ufs-qcom.c > >> EXPORT_SYMBOL(ufs_hba_qcom_vops); > > Nothing uses this export. It's still a (static) symbol that is not > included in any header. I think this export serves no

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread Paul Bolle
On Thu, 2015-06-04 at 16:07 +0200, Paul Bolle wrote: > On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: > > +static int ufs_qcom_probe(struct platform_device *pdev) > > +{ > > + dev_set_drvdata(>dev, (void *)_hba_qcom_vops); > > (Cast to void * should not be needed.) Only if

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread Akinobu Mita
Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi : > @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device > *pdev) > goto out; > } > > - hba->vops = get_variant_ops(>dev); > + err = of_platform_populate(node, NULL, NULL, >dev); > +

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread Paul Bolle
On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: > --- a/drivers/scsi/ufs/ufs-qcom.c > +++ b/drivers/scsi/ufs/ufs-qcom.c > EXPORT_SYMBOL(ufs_hba_qcom_vops); Nothing uses this export. It's still a (static) symbol that is not included in any header. I think this export serves no purpose. Am

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread ygardi
On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c EXPORT_SYMBOL(ufs_hba_qcom_vops); Nothing uses this export. It's still a (static) symbol that is not included in any header. I think this export serves no purpose. Am

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread ygardi
Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi yga...@codeaurora.org: @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto out; } - hba-vops = get_variant_ops(pdev-dev); + err = of_platform_populate(node, NULL, NULL,

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread Paul Bolle
On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c EXPORT_SYMBOL(ufs_hba_qcom_vops); Nothing uses this export. It's still a (static) symbol that is not included in any header. I think this export serves no purpose. Am I

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread Akinobu Mita
Hi Yaniv, 2015-06-03 18:37 GMT+09:00 Yaniv Gardi yga...@codeaurora.org: @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev) goto out; } - hba-vops = get_variant_ops(pdev-dev); + err = of_platform_populate(node, NULL, NULL,

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-04 Thread Paul Bolle
On Thu, 2015-06-04 at 16:07 +0200, Paul Bolle wrote: On Wed, 2015-06-03 at 12:37 +0300, Yaniv Gardi wrote: +static int ufs_qcom_probe(struct platform_device *pdev) +{ + dev_set_drvdata(pdev-dev, (void *)ufs_hba_qcom_vops); (Cast to void * should not be needed.) Only if

[PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-03 Thread Yaniv Gardi
It does so by adding the following changes: 1. Introducing SCSI_UFS_QCOM as a platform device. Its probe function registers a set of vops to its driver_data. 2. Adding an optional device tree sub-node, under SCSI_UFSHCD_PLATFORM. Now, the probe function of SCSI_UFSHCD_PLATFORM invokes the

[PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-03 Thread Yaniv Gardi
It does so by adding the following changes: 1. Introducing SCSI_UFS_QCOM as a platform device. Its probe function registers a set of vops to its driver_data. 2. Adding an optional device tree sub-node, under SCSI_UFSHCD_PLATFORM. Now, the probe function of SCSI_UFSHCD_PLATFORM invokes the