Skip to content
Commit b8cf0e0e authored by Simon Arlott's avatar Simon Arlott Committed by Jens Axboe
Browse files

cdrom: support devices that have check_events but not media_changed



Commit 93aae17a ("sr: implement
sr_check_events()") replaced the media_changed op with the
check_events op in drivers/scsi/sr.c

All users that check for the CDC_MEDIA_CHANGED capbility try both
the check_events op and the media_changed op, but register_cdrom()
was requiring media_changed.

This patch fixes the capability checking.

The cdrom_select_disc ioctl is also using the two operations, so
they should be required for CDC_SELECT_DISC too.

Signed-off-by: default avatarSimon Arlott <simon@fire.lp0.eu>
Cc: Tejun Heo <tj@kernel.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Tested-by: default avatarChris Clayton <chris2553@googlemail.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 02a8f01b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment