On Sat, May 20, 2017 at 12:10:40PM +0100, Sean Young wrote: >On Wed, May 03, 2017 at 12:04:00PM +0200, David Härdeman wrote: >> The device core infrastructure is based on the presumption that >> once a driver calls device_add(), it must be ready to accept >> userspace interaction. >> >> This requires splitting rc_setup_rx_device() into two functions >> and reorganizing rc_register_device() so that as much work >> as possible is performed before calling device_add(). >> >> Version 2: switch the order in which rc_prepare_rx_device() and >> ir_raw_event_prepare() gets called so that dev->change_protocol() >> gets called before device_add(). > >With this patch applied, when I plug in an iguanair usb device, I get. I'm not surprised that changes to rc_register_device() might require some driver-specific fixes as well. I haven't looked at this yet, and I'm going on vacation in a few hours, so I'll probably take a look in a week... -- David Härdeman