RE: [PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data

2021-04-08 Thread Arthur Simchaev
> Subject: Re: [PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data > > CAUTION: This email originated from outside of Western Digital. Do not click > on links or open attachments unless you recognize the sender and know that > the content is safe. > >

Re: [PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data

2021-03-16 Thread Bart Van Assche
On 2/15/21 9:40 AM, Arthur Simchaev wrote: > -#define UFS_STRING_DESCRIPTOR(_name, _pname) \ > +#define UFS_STRING_DESCRIPTOR(_name, _pname, _is_ascii) \ > static ssize_t _name##_show(struct device *dev, > \ > struct

Re: [PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data

2021-03-16 Thread Martin K. Petersen
Hi Arthur! > Could you please consider to take this patch? The patch needs some reviews. I suggest you repost. -- Martin K. Petersen Oracle Linux Engineering

RE: [PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data

2021-03-16 Thread Arthur Simchaev
er.kernel.org > Cc: alim.akh...@samsung.com; Bean Huo ; Arthur > Simchaev > Subject: [PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data > > Currently the string descriptors sysfs entries are printing in ascii > format. According to Jedec UFS spec the string descriptors dat

[PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data

2021-02-15 Thread Arthur Simchaev
Currently the string descriptors sysfs entries are printing in ascii format. According to Jedec UFS spec the string descriptors data is Unicode and need-not be ascii convertible. Therefore in case the device string descriptor contains non ascii convertible characters, it will produce a wrong