mbox series

[0/7] media: intel/ipu6: continue on ipu7 code sharing preparation

Message ID 20250407134037.808367-1-stanislaw.gruszka@linux.intel.com (mailing list archive)
Headers show
Series media: intel/ipu6: continue on ipu7 code sharing preparation | expand

Message

Stanislaw Gruszka April 7, 2025, 1:40 p.m. UTC
Move and rename more structures to isys.h. Add accessors to make 
further transformation easier.

This is on top of:
https://git.linuxtv.org/sailus/media_tree.git/log/?h=devel
plus:
https://lore.kernel.org/linux-media/20250317073856.162147-1-stanislaw.gruszka@linux.intel.com/
https://lore.kernel.org/linux-media/20250401090953.473339-1-stanislaw.gruszka@linux.intel.com/

Stanislaw Gruszka (7):
  media: intel/ipu6: Use isd name in isys.h
  media: intel/ipu6: Remove line_align
  media: intel/ipu6: Move common structures definitions to isys.h
  media: intel/ipu6: Rename common structures
  media: intel/ipu6: Remove deprecated lock comment
  media: intel/ipu6: Introduce isys and dev accessors macros
  media: intel/ipu6: Start using accessors to get dev pointer

 drivers/media/pci/intel/ipu6/ipu6-fw-isys.c   |  14 +-
 drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c |  20 +-
 drivers/media/pci/intel/ipu6/ipu6-isys-csi2.h |   6 +-
 .../media/pci/intel/ipu6/ipu6-isys-dwc-phy.c  |  16 +-
 .../media/pci/intel/ipu6/ipu6-isys-jsl-phy.c  |   8 +-
 .../media/pci/intel/ipu6/ipu6-isys-mcd-phy.c  |  10 +-
 .../media/pci/intel/ipu6/ipu6-isys-queue.c    | 180 +++++++++---------
 .../media/pci/intel/ipu6/ipu6-isys-queue.h    |  66 +------
 .../media/pci/intel/ipu6/ipu6-isys-video.c    |  84 ++++----
 .../media/pci/intel/ipu6/ipu6-isys-video.h    |  77 +-------
 drivers/media/pci/intel/ipu6/ipu6-isys.c      |  35 ++--
 drivers/media/pci/intel/ipu6/ipu6-isys.h      |  35 +++-
 drivers/media/pci/intel/ipu6/isys.h           | 103 +++++++++-
 13 files changed, 332 insertions(+), 322 deletions(-)

Comments

Sakari Ailus April 10, 2025, 3:34 p.m. UTC | #1
Hi Stanislaw,

On Mon, Apr 07, 2025 at 03:40:30PM +0200, Stanislaw Gruszka wrote:
> Move and rename more structures to isys.h. Add accessors to make 
> further transformation easier.
> 
> This is on top of:
> https://git.linuxtv.org/sailus/media_tree.git/log/?h=devel
> plus:
> https://lore.kernel.org/linux-media/20250317073856.162147-1-stanislaw.gruszka@linux.intel.com/
> https://lore.kernel.org/linux-media/20250401090953.473339-1-stanislaw.gruszka@linux.intel.com/
> 
> Stanislaw Gruszka (7):
>   media: intel/ipu6: Use isd name in isys.h
>   media: intel/ipu6: Remove line_align
>   media: intel/ipu6: Move common structures definitions to isys.h
>   media: intel/ipu6: Rename common structures
>   media: intel/ipu6: Remove deprecated lock comment
>   media: intel/ipu6: Introduce isys and dev accessors macros
>   media: intel/ipu6: Start using accessors to get dev pointer

My main comment to the set is naming. Can we do so that we keep the current
scheme (ipu or ipu-isys prefix, with or without IPU generation number) and
then reconsider this question when the result (hopefully including IPU 7
ISYS support) is in upstream?

The rest seems entirely reasonable to me -- but see my other comments, too.
Stanislaw Gruszka April 14, 2025, 10:11 a.m. UTC | #2
On Thu, Apr 10, 2025 at 03:34:22PM +0000, Sakari Ailus wrote:
> Hi Stanislaw,
> 
> On Mon, Apr 07, 2025 at 03:40:30PM +0200, Stanislaw Gruszka wrote:
> > Move and rename more structures to isys.h. Add accessors to make 
> > further transformation easier.
> > 
> > This is on top of:
> > https://git.linuxtv.org/sailus/media_tree.git/log/?h=devel
> > plus:
> > https://lore.kernel.org/linux-media/20250317073856.162147-1-stanislaw.gruszka@linux.intel.com/
> > https://lore.kernel.org/linux-media/20250401090953.473339-1-stanislaw.gruszka@linux.intel.com/
> > 
> > Stanislaw Gruszka (7):
> >   media: intel/ipu6: Use isd name in isys.h
> >   media: intel/ipu6: Remove line_align
> >   media: intel/ipu6: Move common structures definitions to isys.h
> >   media: intel/ipu6: Rename common structures
> >   media: intel/ipu6: Remove deprecated lock comment
> >   media: intel/ipu6: Introduce isys and dev accessors macros
> >   media: intel/ipu6: Start using accessors to get dev pointer
> 
> My main comment to the set is naming. Can we do so that we keep the current
> scheme (ipu or ipu-isys prefix, with or without IPU generation number) and
> then reconsider this question when the result (hopefully including IPU 7
> ISYS support) is in upstream?

Ok, I'll use ipu_isys_ prefix for functions, structures and some macros.
However for some macros I think it would make sense to skip ipu prefix to
make the names shorter.

Regards
Stanislaw

> The rest seems entirely reasonable to me -- but see my other comments, too.
> 
> -- 
> Kind regards,
> 
> Sakari Ailus
Sakari Ailus April 14, 2025, 12:52 p.m. UTC | #3
On Mon, Apr 14, 2025 at 12:11:58PM +0200, Stanislaw Gruszka wrote:
> On Thu, Apr 10, 2025 at 03:34:22PM +0000, Sakari Ailus wrote:
> > Hi Stanislaw,
> > 
> > On Mon, Apr 07, 2025 at 03:40:30PM +0200, Stanislaw Gruszka wrote:
> > > Move and rename more structures to isys.h. Add accessors to make 
> > > further transformation easier.
> > > 
> > > This is on top of:
> > > https://git.linuxtv.org/sailus/media_tree.git/log/?h=devel
> > > plus:
> > > https://lore.kernel.org/linux-media/20250317073856.162147-1-stanislaw.gruszka@linux.intel.com/
> > > https://lore.kernel.org/linux-media/20250401090953.473339-1-stanislaw.gruszka@linux.intel.com/
> > > 
> > > Stanislaw Gruszka (7):
> > >   media: intel/ipu6: Use isd name in isys.h
> > >   media: intel/ipu6: Remove line_align
> > >   media: intel/ipu6: Move common structures definitions to isys.h
> > >   media: intel/ipu6: Rename common structures
> > >   media: intel/ipu6: Remove deprecated lock comment
> > >   media: intel/ipu6: Introduce isys and dev accessors macros
> > >   media: intel/ipu6: Start using accessors to get dev pointer
> > 
> > My main comment to the set is naming. Can we do so that we keep the current
> > scheme (ipu or ipu-isys prefix, with or without IPU generation number) and
> > then reconsider this question when the result (hopefully including IPU 7
> > ISYS support) is in upstream?
> 
> Ok, I'll use ipu_isys_ prefix for functions, structures and some macros.
> However for some macros I think it would make sense to skip ipu prefix to
> make the names shorter.

I'd keep it also in macro names, but not necessarily twice as in some cases
currently.