* [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition
@ 2016-01-01 11:03 Ivaylo Dimitrov
2016-01-01 11:26 ` Pali Rohár
0 siblings, 1 reply; 7+ messages in thread
From: Ivaylo Dimitrov @ 2016-01-01 11:03 UTC (permalink / raw)
To: pali.rohar, sre, dbaryshkov, dwmw2
Cc: linux-pm, linux-kernel, Ivaylo Dimitrov
All calls to isp1704_write() are using parameter sequence of
isp1704_write(isp, reg, val) but the function is defined as
isp1704_write(isp, val, reg). Fix isp1704_write function definition so that
the driver to be functional.
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
---
drivers/power/isp1704_charger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c
index f2a7d97..46a292a 100644
--- a/drivers/power/isp1704_charger.c
+++ b/drivers/power/isp1704_charger.c
@@ -76,7 +76,7 @@ static inline int isp1704_read(struct isp1704_charger *isp, u32 reg)
return usb_phy_io_read(isp->phy, reg);
}
-static inline int isp1704_write(struct isp1704_charger *isp, u32 val, u32 reg)
+static inline int isp1704_write(struct isp1704_charger *isp, u32 reg, u32 val)
{
return usb_phy_io_write(isp->phy, val, reg);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition
2016-01-01 11:03 [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition Ivaylo Dimitrov
@ 2016-01-01 11:26 ` Pali Rohár
2016-01-01 11:33 ` Ivaylo Dimitrov
2016-01-09 22:42 ` Pali Rohár
0 siblings, 2 replies; 7+ messages in thread
From: Pali Rohár @ 2016-01-01 11:26 UTC (permalink / raw)
To: Ivaylo Dimitrov; +Cc: sre, dbaryshkov, dwmw2, linux-pm, linux-kernel
[-- Attachment #1: Type: Text/Plain, Size: 719 bytes --]
On Friday 01 January 2016 12:03:29 Ivaylo Dimitrov wrote:
> All calls to isp1704_write() are using parameter sequence of
> isp1704_write(isp, reg, val) but the function is defined as
> isp1704_write(isp, val, reg). Fix isp1704_write function definition
> so that the driver to be functional.
>
> Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
This problem is there since inclusion of driver itself. No idea why that
driver could work... I remember that it detected correctly type of
charger.
I will test this patch on real N900 HW in one or two weeks to check how
it behave after patching...
--
Pali Rohár
pali.rohar@gmail.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition
2016-01-01 11:26 ` Pali Rohár
@ 2016-01-01 11:33 ` Ivaylo Dimitrov
2016-01-02 15:48 ` Pali Rohár
2016-01-09 22:42 ` Pali Rohár
1 sibling, 1 reply; 7+ messages in thread
From: Ivaylo Dimitrov @ 2016-01-01 11:33 UTC (permalink / raw)
To: Pali Rohár; +Cc: sre, dbaryshkov, dwmw2, linux-pm, linux-kernel
Hi Pali,
On 1.01.2016 13:26, Pali Rohár wrote:
> On Friday 01 January 2016 12:03:29 Ivaylo Dimitrov wrote:
>> All calls to isp1704_write() are using parameter sequence of
>> isp1704_write(isp, reg, val) but the function is defined as
>> isp1704_write(isp, val, reg). Fix isp1704_write function definition
>> so that the driver to be functional.
>>
>> Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
>
> Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
>
> This problem is there since inclusion of driver itself. No idea why that
> driver could work... I remember that it detected correctly type of
> charger.
>
> I will test this patch on real N900 HW in one or two weeks to check how
> it behave after patching...
>
Well, I tested in on real HW, wall charger as well as USB were
correctly detected. No idea what else needs to be tested, but I guess if
you guide me, I can test whatever is needed.
Ivo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition
2016-01-01 11:33 ` Ivaylo Dimitrov
@ 2016-01-02 15:48 ` Pali Rohár
0 siblings, 0 replies; 7+ messages in thread
From: Pali Rohár @ 2016-01-02 15:48 UTC (permalink / raw)
To: Ivaylo Dimitrov
Cc: sre, dbaryshkov, dwmw2, linux-pm, linux-kernel, Pavel Machel
[-- Attachment #1: Type: Text/Plain, Size: 1208 bytes --]
On Friday 01 January 2016 12:33:03 Ivaylo Dimitrov wrote:
> Hi Pali,
>
> On 1.01.2016 13:26, Pali Rohár wrote:
> > On Friday 01 January 2016 12:03:29 Ivaylo Dimitrov wrote:
> >> All calls to isp1704_write() are using parameter sequence of
> >> isp1704_write(isp, reg, val) but the function is defined as
> >> isp1704_write(isp, val, reg). Fix isp1704_write function
> >> definition so that the driver to be functional.
> >>
> >> Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
> >
> > Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
> >
> > This problem is there since inclusion of driver itself. No idea why
> > that driver could work... I remember that it detected correctly
> > type of charger.
> >
> > I will test this patch on real N900 HW in one or two weeks to check
> > how it behave after patching...
>
> Well, I tested in on real HW, wall charger as well as USB were
> correctly detected. No idea what else needs to be tested, but I guess
> if you guide me, I can test whatever is needed.
>
> Ivo
I think nothing more is needed to test. But I want to see how driver
behave with and without this patch.
--
Pali Rohár
pali.rohar@gmail.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition
2016-01-01 11:26 ` Pali Rohár
2016-01-01 11:33 ` Ivaylo Dimitrov
@ 2016-01-09 22:42 ` Pali Rohár
2016-05-19 9:13 ` Pali Rohár
1 sibling, 1 reply; 7+ messages in thread
From: Pali Rohár @ 2016-01-09 22:42 UTC (permalink / raw)
To: Ivaylo Dimitrov, sre
Cc: dbaryshkov, dwmw2, linux-pm, linux-kernel, Pavel Machek
[-- Attachment #1: Type: Text/Plain, Size: 901 bytes --]
On Friday 01 January 2016 12:26:21 Pali Rohár wrote:
> On Friday 01 January 2016 12:03:29 Ivaylo Dimitrov wrote:
> > All calls to isp1704_write() are using parameter sequence of
> > isp1704_write(isp, reg, val) but the function is defined as
> > isp1704_write(isp, val, reg). Fix isp1704_write function definition
> > so that the driver to be functional.
> >
> > Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
>
> Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
>
> This problem is there since inclusion of driver itself. No idea why
> that driver could work... I remember that it detected correctly type
> of charger.
>
> I will test this patch on real N900 HW in one or two weeks to check
> how it behave after patching...
Tested-by: Pali Rohár <pali.rohar@gmail.com>
Please send this patch to all stable kernels.
--
Pali Rohár
pali.rohar@gmail.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition
2016-01-09 22:42 ` Pali Rohár
@ 2016-05-19 9:13 ` Pali Rohár
2016-05-24 15:32 ` Pali Rohár
0 siblings, 1 reply; 7+ messages in thread
From: Pali Rohár @ 2016-05-19 9:13 UTC (permalink / raw)
To: Ivaylo Dimitrov, sre
Cc: dbaryshkov, dwmw2, linux-pm, linux-kernel, Pavel Machek
On Saturday 09 January 2016 23:42:30 Pali Rohár wrote:
> On Friday 01 January 2016 12:26:21 Pali Rohár wrote:
> > On Friday 01 January 2016 12:03:29 Ivaylo Dimitrov wrote:
> > > All calls to isp1704_write() are using parameter sequence of
> > > isp1704_write(isp, reg, val) but the function is defined as
> > > isp1704_write(isp, val, reg). Fix isp1704_write function definition
> > > so that the driver to be functional.
> > >
> > > Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
> >
> > Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
> >
> > This problem is there since inclusion of driver itself. No idea why
> > that driver could work... I remember that it detected correctly type
> > of charger.
> >
> > I will test this patch on real N900 HW in one or two weeks to check
> > how it behave after patching...
>
> Tested-by: Pali Rohár <pali.rohar@gmail.com>
>
> Please send this patch to all stable kernels.
Hi! I still think that this patch should go to stable kernels. Because
without it driver does not work... Will somebody send it to stable?
--
Pali Rohár
pali.rohar@gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition
2016-05-19 9:13 ` Pali Rohár
@ 2016-05-24 15:32 ` Pali Rohár
0 siblings, 0 replies; 7+ messages in thread
From: Pali Rohár @ 2016-05-24 15:32 UTC (permalink / raw)
To: Ivaylo Dimitrov, sre
Cc: dbaryshkov, dwmw2, linux-pm, linux-kernel, Pavel Machek
On Thursday 19 May 2016 11:13:04 Pali Rohár wrote:
> On Saturday 09 January 2016 23:42:30 Pali Rohár wrote:
> > On Friday 01 January 2016 12:26:21 Pali Rohár wrote:
> > > On Friday 01 January 2016 12:03:29 Ivaylo Dimitrov wrote:
> > > > All calls to isp1704_write() are using parameter sequence of
> > > > isp1704_write(isp, reg, val) but the function is defined as
> > > > isp1704_write(isp, val, reg). Fix isp1704_write function definition
> > > > so that the driver to be functional.
> > > >
> > > > Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
> > >
> > > Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
> > >
> > > This problem is there since inclusion of driver itself. No idea why
> > > that driver could work... I remember that it detected correctly type
> > > of charger.
> > >
> > > I will test this patch on real N900 HW in one or two weeks to check
> > > how it behave after patching...
> >
> > Tested-by: Pali Rohár <pali.rohar@gmail.com>
> >
> > Please send this patch to all stable kernels.
>
> Hi! I still think that this patch should go to stable kernels. Because
> without it driver does not work... Will somebody send it to stable?
So no objections, I sent it to stable@vger.kernel.org.
--
Pali Rohár
pali.rohar@gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-05-24 15:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-01 11:03 [PATCH] power_suply: isp1704_charger: Fix isp1704_write() definition Ivaylo Dimitrov
2016-01-01 11:26 ` Pali Rohár
2016-01-01 11:33 ` Ivaylo Dimitrov
2016-01-02 15:48 ` Pali Rohár
2016-01-09 22:42 ` Pali Rohár
2016-05-19 9:13 ` Pali Rohár
2016-05-24 15:32 ` Pali Rohár
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).