Re: [RFC PATCH 04/28] media: mali-vpu: initialize decoder format state

From: Charvi Mehta

Date: Wed Nov 25 2026 - 07:27:13 EST



On 11/24/26 17:35, Nicolas Dufresne wrote:
   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.

I'll rename these members in v2.

Regards,
Charvi