Re: [RFC PATCH 04/28] media: mali-vpu: initialize decoder format state
From: Nicolas Dufresne
Date: Tue Nov 24 2026 - 12:35:20 EST
Hi,
Le mardi 24 novembre 2026 à 14:56 +0000, Charvi Mehta a écrit :
> > > struct mali_vpu_session {
> > > struct mali_vpu_dev *vpu_dev;
> > > enum mali_vpu_session_role role;
> > > + struct mali_vpu_port port_src;
> > > + struct mali_vpu_port port_dst;
> > Ok, its time to comment, src_port and dst_port is a lot easier to read imho.
> I’ve generally placed the direction last, as in dec_src/dec_dst and
> pixmp_src/pixmp_dst.
> I’d prefer to retain port_src/port_dst to follow that pattern.
I heard your preference, but readability when up-streaming is important, we dont
say "the port source", we say "the source port" (at least in english, which we
program in), and so when a human reads your code, having things in reverse makes
it harder.
Nicolas
Attachment:
signature.asc
Description: This is a digitally signed message part