Re: [PATCH 04/14] greybus: cpc: pack cport ID in Greybus header

From: Yacin Belmihoub-Martel

Date: Fri Dec 12 2025 - 11:59:49 EST


On Fri Dec 12, 2025 at 11:12 AM EST, Damien Riégel wrote:
> +/**
> + * cpc_cport_unpack() - Unpack CPort ID from Greybus Operation Message header.
> + * @gb_hdr: Greybus operation message header.
> + *
> + * Return: CPort ID packed in the header.
> + */
> +u16 cpc_cport_unpack(struct gb_operation_msg_hdr *gb_hdr)
> +{
> + return get_unaligned_le16(gb_hdr->pad);
> +}

We probably want to clear the packing from the `gb_hdr`, just like it is
done in the es2 driver.

Thanks,
--
Yacin Belmihoub-Martel
Silicon Laboratories