All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwm: raspberrypi-poe: Fix mailbox message initialization
@ 2021-04-09  9:08 Nicolas Saenz Julienne
  2021-04-09 11:35 ` Thierry Reding
  2021-04-09 20:09 ` Arnd Bergmann
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Saenz Julienne @ 2021-04-09  9:08 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Nicolas Saenz Julienne
  Cc: arnd, Nicolas Saenz Julienne, kernel test robot, linux-pwm, linux-kernel

For testing purposes this driver might be built on big-endian
architectures. So make sure we take that into account when populating
structures that are to be passed to RPi4's mailbox.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 79caa362eab6 ("pwm: Add Raspberry Pi Firmware based PWM bus")
Signed-off-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
---

@arndb: This was just meged into the arm-soc tree some days ago. Should I
prepare a second PR once it's been reviewed?

 drivers/pwm/pwm-raspberrypi-poe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-raspberrypi-poe.c b/drivers/pwm/pwm-raspberrypi-poe.c
index 043fc32e8be8..78423e66f4fc 100644
--- a/drivers/pwm/pwm-raspberrypi-poe.c
+++ b/drivers/pwm/pwm-raspberrypi-poe.c
@@ -66,7 +66,7 @@ static int raspberrypi_pwm_get_property(struct rpi_firmware *firmware,
 					u32 reg, u32 *val)
 {
 	struct raspberrypi_pwm_prop msg = {
-		.reg = reg
+		.reg = cpu_to_le32(reg),
 	};
 	int ret;
 
-- 
2.30.2


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

* Re: [PATCH] pwm: raspberrypi-poe: Fix mailbox message initialization
  2021-04-09  9:08 [PATCH] pwm: raspberrypi-poe: Fix mailbox message initialization Nicolas Saenz Julienne
@ 2021-04-09 11:35 ` Thierry Reding
  2021-04-09 20:09 ` Arnd Bergmann
  1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2021-04-09 11:35 UTC (permalink / raw)
  To: Nicolas Saenz Julienne
  Cc: Uwe Kleine-König, Lee Jones, Nicolas Saenz Julienne, arnd,
	kernel test robot, linux-pwm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

On Fri, Apr 09, 2021 at 11:08:19AM +0200, Nicolas Saenz Julienne wrote:
> For testing purposes this driver might be built on big-endian
> architectures. So make sure we take that into account when populating
> structures that are to be passed to RPi4's mailbox.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: 79caa362eab6 ("pwm: Add Raspberry Pi Firmware based PWM bus")
> Signed-off-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
> ---
> 
> @arndb: This was just meged into the arm-soc tree some days ago. Should I
> prepare a second PR once it's been reviewed?
> 
>  drivers/pwm/pwm-raspberrypi-poe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Thierry Reding <thierry.reding@gmail.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH] pwm: raspberrypi-poe: Fix mailbox message initialization
  2021-04-09  9:08 [PATCH] pwm: raspberrypi-poe: Fix mailbox message initialization Nicolas Saenz Julienne
  2021-04-09 11:35 ` Thierry Reding
@ 2021-04-09 20:09 ` Arnd Bergmann
  1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2021-04-09 20:09 UTC (permalink / raw)
  To: Nicolas Saenz Julienne
  Cc: Thierry Reding, Uwe Kleine-König, Lee Jones,
	Nicolas Saenz Julienne, kernel test robot, Linux PWM List,
	Linux Kernel Mailing List

On Fri, Apr 9, 2021 at 11:08 AM Nicolas Saenz Julienne
<nsaenz@kernel.org> wrote:
>
> For testing purposes this driver might be built on big-endian
> architectures. So make sure we take that into account when populating
> structures that are to be passed to RPi4's mailbox.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: 79caa362eab6 ("pwm: Add Raspberry Pi Firmware based PWM bus")
> Signed-off-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
> ---
>
> @arndb: This was just meged into the arm-soc tree some days ago. Should I
> prepare a second PR once it's been reviewed?

Yes, that would be good. If you have no other driver patches that I should
pick up, just forward the patch (with the Ack) to soc@kernel.org and I
can just apply it.

        Arnd

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

end of thread, other threads:[~2021-04-09 20:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09  9:08 [PATCH] pwm: raspberrypi-poe: Fix mailbox message initialization Nicolas Saenz Julienne
2021-04-09 11:35 ` Thierry Reding
2021-04-09 20:09 ` Arnd Bergmann

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.