RE: [PATCH] scsi: ufs: sysfs: add is_ascii_output entry

2021-02-14 Thread Arthur Simchaev
alim.akh...@samsung.com; Bean Huo > ; Arthur Simchaev > Subject: Re: [PATCH] scsi: ufs: sysfs: add is_ascii_output entry > > 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 > t

Re: [PATCH] scsi: ufs: sysfs: add is_ascii_output entry

2021-02-14 Thread Greg KH
On Wed, Feb 10, 2021 at 07:35:25PM -0800, Bart Van Assche wrote: > On 2/10/21 2:53 AM, Arthur Simchaev wrote: > > +static bool is_ascii_output = true; > > [ ... ] > > > static const char *ufschd_uic_link_state_to_string( > > enum uic_link_state state) > > { > > @@ -693,7 +69

Re: [PATCH] scsi: ufs: sysfs: add is_ascii_output entry

2021-02-10 Thread Bart Van Assche
On 2/10/21 2:53 AM, Arthur Simchaev wrote: > +static bool is_ascii_output = true; [ ... ] > static const char *ufschd_uic_link_state_to_string( > enum uic_link_state state) > { > @@ -693,7 +695,15 @@ static ssize_t _name##_show(struct device *dev, >

[PATCH] scsi: ufs: sysfs: add is_ascii_output entry

2021-02-10 Thread Arthur Simchaev
From: 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 may not be ascii convertible. Therefore in case the device string descriptor contains non ascii convertible characters, it will