On 9/9/26 11:11 AM, David Lechner wrote:
> On 8/7/26 9:01 AM, Jorge Ramirez-Ortiz wrote:
>> UFS string descriptors are UTF-16 big-endian (JESD220), but
>> ufshcd_read_string_desc() fed the raw bytes to utf16_to_utf8(), which reads
>> host-endian code units, leaving dev_desc->model blank.
>>
>> Add an endian parameter to utf16_to_utf8() so the caller can specify the byte
>> order of the source, and pass UTF16_BIG_ENDIAN from the UFS driver, matching
>> the kernel's utf16s_to_utf8s(..., UTF16_BIG_ENDIAN). Existing callers keep
>> their current behaviour via UTF16_HOST_ENDIAN.
> 
Probably deserves a Fixes: tag as well.

Reply via email to