Re: [PATCH] cdrom: support read sub-channel command in LBA format

From: Jens Axboe
Date: Tue Jul 12 2016 - 11:26:12 EST


On 07/10/2016 11:49 PM, Veeraiyan Chidambaram (RBEI/ECF32) wrote:
Hello Jens,

In CDROM Linux driver code, "Read Sub channel" format is hard coded
with CDROM_MSF format only in the function cdrom_read_subchannel() and
mmc_ioctl_cdrom_subchannel() in cdrom.c. Hence, irrespective of
"Read Sub channel" command with CDROM_LBA/CDROM_MSF format, the
reported Response which is in MSF format was considered as LBA in user
space application. Now the behavior is changed in such way that
IOCTL returns either CDROM_MSF or CDROM_LBA format per user request.
Please find the fix patch attached.

Applied for 4.8, thanks.

--
Jens Axboe