diff mbox series

[SRU,jammy:linux-xilinx-zynqmp,1/1] UBUNTU: SAUCE: xilinx-mv-camera-sensor-module: Update imx547 driver

Message ID 20240805152341.105004-2-portia.stephens@canonical.com
State New
Headers show
Series Update IMX547 out-of-tree driver code | expand

Commit Message

Portia Stephens Aug. 5, 2024, 3:23 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2076108

Updated the out-of-tree xilinx-mv-camera-sensor-module driver.

(cherry-picked from git@github.com:Xilinx/mv-camera-sensor-module.git v0.3)
Signed-off-by: Portia Stephens <portia.stephens@canonical.com>
---
 ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Manuel Diewald Aug. 5, 2024, 3:51 p.m. UTC | #1
On Mon, Aug 05, 2024 at 11:23:41AM -0400, Portia Stephens wrote:
> BugLink: https://bugs.launchpad.net/bugs/2076108
> 
> Updated the out-of-tree xilinx-mv-camera-sensor-module driver.
> 
> (cherry-picked from git@github.com:Xilinx/mv-camera-sensor-module.git v0.3)

Did you omit the original commit subject and body from

a58acc5 imx547 : Used devm_* resource management functions instead of gpiod_*

on purpose? The information from that commit message is available on
launchpad but I feel like it might be useful to also have access to it
directly via git history.
Portia Stephens Aug. 5, 2024, 3:58 p.m. UTC | #2
On Mon, Aug 5, 2024 at 11:51 AM Manuel Diewald
<manuel.diewald@canonical.com> wrote:
>
> On Mon, Aug 05, 2024 at 11:23:41AM -0400, Portia Stephens wrote:
> > BugLink: https://bugs.launchpad.net/bugs/2076108
> >
> > Updated the out-of-tree xilinx-mv-camera-sensor-module driver.
> >
> > (cherry-picked from git@github.com:Xilinx/mv-camera-sensor-module.git v0.3)
>
> Did you omit the original commit subject and body from
>
> a58acc5 imx547 : Used devm_* resource management functions instead of gpiod_*
>
> on purpose? The information from that commit message is available on
> launchpad but I feel like it might be useful to also have access to it
> directly via git history.

eh sort of. In the past for these out-of-tree drivers we have not done
a 1 for 1 commit but instead just updated up to a tag in one commit.
In this case though it is a single commit, I agree it makes sense to
use the original commit message. I'll send a v2.


>
> --
>  Manuel
Manuel Diewald Aug. 5, 2024, 4:03 p.m. UTC | #3
On Mon, Aug 05, 2024 at 11:58:19AM -0400, Portia Stephens wrote:
> On Mon, Aug 5, 2024 at 11:51 AM Manuel Diewald
> <manuel.diewald@canonical.com> wrote:
> >
> > On Mon, Aug 05, 2024 at 11:23:41AM -0400, Portia Stephens wrote:
> > > BugLink: https://bugs.launchpad.net/bugs/2076108
> > >
> > > Updated the out-of-tree xilinx-mv-camera-sensor-module driver.
> > >
> > > (cherry-picked from git@github.com:Xilinx/mv-camera-sensor-module.git v0.3)
> >
> > Did you omit the original commit subject and body from
> >
> > a58acc5 imx547 : Used devm_* resource management functions instead of gpiod_*
> >
> > on purpose? The information from that commit message is available on
> > launchpad but I feel like it might be useful to also have access to it
> > directly via git history.
> 
> eh sort of. In the past for these out-of-tree drivers we have not done
> a 1 for 1 commit but instead just updated up to a tag in one commit.
> In this case though it is a single commit, I agree it makes sense to
> use the original commit message. I'll send a v2.
> 
> 
> >
> > --
> >  Manuel
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team

Expecting a v2 submission.
diff mbox series

Patch

diff --git a/ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c b/ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c
index fc4f4a44b5cd..094dfc6d7e86 100644
--- a/ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c
+++ b/ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c
@@ -1037,7 +1037,7 @@  static int imx547_probe(struct i2c_client *client)
     }
 
     /* initialize gt trx reset gpio */
-    imx547->gt_trx_reset_gpio = gpiod_get_index_optional(&client->dev, "reset",
+    imx547->gt_trx_reset_gpio = devm_gpiod_get_index_optional(&client->dev, "reset",
                                 0, GPIOD_OUT_HIGH);
     if (IS_ERR(imx547->gt_trx_reset_gpio)) {
         if (PTR_ERR(imx547->gt_trx_reset_gpio) != -EPROBE_DEFER)
@@ -1047,7 +1047,7 @@  static int imx547_probe(struct i2c_client *client)
     }
 
     /* initialize pipe reset gpio */
-    imx547->pipe_reset_gpio = gpiod_get_index_optional(&client->dev, "reset",
+    imx547->pipe_reset_gpio = devm_gpiod_get_index_optional(&client->dev, "reset",
                               1, GPIOD_OUT_HIGH);
     if (IS_ERR(imx547->pipe_reset_gpio)) {
         if (PTR_ERR(imx547->pipe_reset_gpio) != -EPROBE_DEFER)