All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] net: smsc95xx: Use correct get_unaligned functions
@ 2016-06-13  5:00 Mark Tomlinson
  2016-06-13  8:01 ` Chris Packham
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Tomlinson @ 2016-06-13  5:00 UTC (permalink / raw)
  To: u-boot

The __get_unaligned_le* functions may not be declared on all platforms.
Instead, get_unaligned_le* should be used. On many platforms both of
these are the same function.

Change-Id: If28222615e85a6f34f3fde42eb21c6f56a2cb988
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
 drivers/usb/eth/smsc95xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index 08eaed5..7d9abfd 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -391,8 +391,8 @@ static int smsc95xx_write_hwaddr_common(struct usb_device *udev,
 					struct smsc95xx_private *priv,
 					unsigned char *enetaddr)
 {
-	u32 addr_lo = __get_unaligned_le32(&enetaddr[0]);
-	u32 addr_hi = __get_unaligned_le16(&enetaddr[4]);
+	u32 addr_lo = get_unaligned_le32(&enetaddr[0]);
+	u32 addr_hi = get_unaligned_le16(&enetaddr[4]);
 	int ret;
 
 	/* set hardware address */
-- 
2.8.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] net: smsc95xx: Use correct get_unaligned functions
  2016-06-13  5:00 [U-Boot] [PATCH] net: smsc95xx: Use correct get_unaligned functions Mark Tomlinson
@ 2016-06-13  8:01 ` Chris Packham
  2016-06-13 20:59   ` Chris Packham
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Packham @ 2016-06-13  8:01 UTC (permalink / raw)
  To: u-boot

Hi Mark,

On Mon, Jun 13, 2016 at 5:00 PM, Mark Tomlinson
<mark.tomlinson@alliedtelesis.co.nz> wrote:
> The __get_unaligned_le* functions may not be declared on all platforms.
> Instead, get_unaligned_le* should be used. On many platforms both of
> these are the same function.
>
> Change-Id: If28222615e85a6f34f3fde42eb21c6f56a2cb988

We shouldn't let these leak out of $work. This doesn't really mean
anything to anyone without access to our internal review system.

> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

For what it's worth - this is me I usually post with my gmail account
because it's better for managing high volume mailing lists.

> ---
>  drivers/usb/eth/smsc95xx.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
> index 08eaed5..7d9abfd 100644
> --- a/drivers/usb/eth/smsc95xx.c
> +++ b/drivers/usb/eth/smsc95xx.c
> @@ -391,8 +391,8 @@ static int smsc95xx_write_hwaddr_common(struct usb_device *udev,
>                                         struct smsc95xx_private *priv,
>                                         unsigned char *enetaddr)
>  {
> -       u32 addr_lo = __get_unaligned_le32(&enetaddr[0]);
> -       u32 addr_hi = __get_unaligned_le16(&enetaddr[4]);
> +       u32 addr_lo = get_unaligned_le32(&enetaddr[0]);
> +       u32 addr_hi = get_unaligned_le16(&enetaddr[4]);
>         int ret;
>
>         /* set hardware address */
> --
> 2.8.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] net: smsc95xx: Use correct get_unaligned functions
  2016-06-13  8:01 ` Chris Packham
@ 2016-06-13 20:59   ` Chris Packham
  2016-07-06 15:20     ` Joe Hershberger
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Packham @ 2016-06-13 20:59 UTC (permalink / raw)
  To: u-boot

On Mon, Jun 13, 2016 at 8:01 PM, Chris Packham <judge.packham@gmail.com> wrote:
> Hi Mark,
>
> On Mon, Jun 13, 2016 at 5:00 PM, Mark Tomlinson
> <mark.tomlinson@alliedtelesis.co.nz> wrote:
>> The __get_unaligned_le* functions may not be declared on all platforms.
>> Instead, get_unaligned_le* should be used. On many platforms both of
>> these are the same function.
>>
>> Change-Id: If28222615e85a6f34f3fde42eb21c6f56a2cb988
>
> We shouldn't let these leak out of $work. This doesn't really mean
> anything to anyone without access to our internal review system.
>
>> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>
> For what it's worth - this is me I usually post with my gmail account
> because it's better for managing high volume mailing lists.

Also your signed-off line is missing.

>
>> ---
>>  drivers/usb/eth/smsc95xx.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
>> index 08eaed5..7d9abfd 100644
>> --- a/drivers/usb/eth/smsc95xx.c
>> +++ b/drivers/usb/eth/smsc95xx.c
>> @@ -391,8 +391,8 @@ static int smsc95xx_write_hwaddr_common(struct usb_device *udev,
>>                                         struct smsc95xx_private *priv,
>>                                         unsigned char *enetaddr)
>>  {
>> -       u32 addr_lo = __get_unaligned_le32(&enetaddr[0]);
>> -       u32 addr_hi = __get_unaligned_le16(&enetaddr[4]);
>> +       u32 addr_lo = get_unaligned_le32(&enetaddr[0]);
>> +       u32 addr_hi = get_unaligned_le16(&enetaddr[4]);
>>         int ret;
>>
>>         /* set hardware address */
>> --
>> 2.8.4
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] net: smsc95xx: Use correct get_unaligned functions
  2016-06-13 20:59   ` Chris Packham
@ 2016-07-06 15:20     ` Joe Hershberger
  2016-07-12 21:52       ` [U-Boot] [PATCH v2] " Chris Packham
  0 siblings, 1 reply; 7+ messages in thread
From: Joe Hershberger @ 2016-07-06 15:20 UTC (permalink / raw)
  To: u-boot

Hi Mark,

On Mon, Jun 13, 2016 at 3:59 PM, Chris Packham <judge.packham@gmail.com> wrote:
> On Mon, Jun 13, 2016 at 8:01 PM, Chris Packham <judge.packham@gmail.com> wrote:
>> Hi Mark,
>>
>> On Mon, Jun 13, 2016 at 5:00 PM, Mark Tomlinson
>> <mark.tomlinson@alliedtelesis.co.nz> wrote:
>>> The __get_unaligned_le* functions may not be declared on all platforms.
>>> Instead, get_unaligned_le* should be used. On many platforms both of
>>> these are the same function.
>>>
>>> Change-Id: If28222615e85a6f34f3fde42eb21c6f56a2cb988
>>
>> We shouldn't let these leak out of $work. This doesn't really mean
>> anything to anyone without access to our internal review system.
>>
>>> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>>
>> For what it's worth - this is me I usually post with my gmail account
>> because it's better for managing high volume mailing lists.
>
> Also your signed-off line is missing.

Can I expect a v2?

Thanks,
-Joe

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2] net: smsc95xx: Use correct get_unaligned functions
  2016-07-06 15:20     ` Joe Hershberger
@ 2016-07-12 21:52       ` Chris Packham
  2016-08-04 16:21         ` Joe Hershberger
  2016-08-15 20:33         ` [U-Boot] " Joe Hershberger
  0 siblings, 2 replies; 7+ messages in thread
From: Chris Packham @ 2016-07-12 21:52 UTC (permalink / raw)
  To: u-boot

The __get_unaligned_le* functions may not be declared on all platforms.
Instead, get_unaligned_le* should be used. On many platforms both of
these are the same function.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
---
Hi Joe,

Mark didn't manage to get to this before he went on leave so I've taken
it over.

Changes in v2:
- Remove gerrit reference from commit message
- Sign-off and change author

 drivers/usb/eth/smsc95xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index 08eaed5..7d9abfd 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -391,8 +391,8 @@ static int smsc95xx_write_hwaddr_common(struct usb_device *udev,
 					struct smsc95xx_private *priv,
 					unsigned char *enetaddr)
 {
-	u32 addr_lo = __get_unaligned_le32(&enetaddr[0]);
-	u32 addr_hi = __get_unaligned_le16(&enetaddr[4]);
+	u32 addr_lo = get_unaligned_le32(&enetaddr[0]);
+	u32 addr_hi = get_unaligned_le16(&enetaddr[4]);
 	int ret;
 
 	/* set hardware address */
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2] net: smsc95xx: Use correct get_unaligned functions
  2016-07-12 21:52       ` [U-Boot] [PATCH v2] " Chris Packham
@ 2016-08-04 16:21         ` Joe Hershberger
  2016-08-15 20:33         ` [U-Boot] " Joe Hershberger
  1 sibling, 0 replies; 7+ messages in thread
From: Joe Hershberger @ 2016-08-04 16:21 UTC (permalink / raw)
  To: u-boot

On Tue, Jul 12, 2016 at 4:52 PM, Chris Packham <judge.packham@gmail.com> wrote:
> The __get_unaligned_le* functions may not be declared on all platforms.
> Instead, get_unaligned_le* should be used. On many platforms both of
> these are the same function.
>
> Signed-off-by: Chris Packham <judge.packham@gmail.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] net: smsc95xx: Use correct get_unaligned functions
  2016-07-12 21:52       ` [U-Boot] [PATCH v2] " Chris Packham
  2016-08-04 16:21         ` Joe Hershberger
@ 2016-08-15 20:33         ` Joe Hershberger
  1 sibling, 0 replies; 7+ messages in thread
From: Joe Hershberger @ 2016-08-15 20:33 UTC (permalink / raw)
  To: u-boot

Hi Chris,

https://patchwork.ozlabs.org/patch/647651/ was applied to u-boot-net.git.

Thanks!
-Joe

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-08-15 20:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-13  5:00 [U-Boot] [PATCH] net: smsc95xx: Use correct get_unaligned functions Mark Tomlinson
2016-06-13  8:01 ` Chris Packham
2016-06-13 20:59   ` Chris Packham
2016-07-06 15:20     ` Joe Hershberger
2016-07-12 21:52       ` [U-Boot] [PATCH v2] " Chris Packham
2016-08-04 16:21         ` Joe Hershberger
2016-08-15 20:33         ` [U-Boot] " Joe Hershberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.