提交 aa3f4e44 编写于 作者: A Andy Walls 提交者: Mauro Carvalho Chehab

[media] lirc_zilog: Update TODO list based on work completed and revised plans

Update the TODO.lirc_zilog based on what has been completed.  Also revised
the development plan for lirc_zilog to not try and split Tx/Rx for one IR
transceiver unit between lirc_zilog and ir-kbd-i2c, since that would be a
ref-counting nightmare.
Signed-off-by: NAndy Walls <awalls@md.metrocast.net>
Signed-off-by: NJarod Wilson <jarod@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 4933fc9d
1. Both ir-kbd-i2c and lirc_zilog provide support for RX events. 1. Both ir-kbd-i2c and lirc_zilog provide support for RX events for
The 'tx_only' lirc_zilog module parameter will allow ir-kbd-i2c the chips supported by lirc_zilog. Before moving lirc_zilog out of staging:
and lirc_zilog to coexist in the kernel, if the user requires such a set-up.
However the IR unit will not work well without coordination between the a. ir-kbd-i2c needs a module parameter added to allow the user to tell
two modules. A shared mutex, for transceiver access locking, needs to be ir-kbd-i2c to ignore Z8 IR units.
supplied by bridge drivers, in struct IR_i2_init_data, to both ir-kbd-i2c
and lirc_zilog, before they will coexist usefully. This should be fixed b. lirc_zilog should provide Rx key presses to the rc core like ir-kbd-i2c
before moving out of staging. does.
2. References and locking need careful examination. For cx18 and ivtv PCI
cards, which are not easily "hot unplugged", the imperfect state of reference 2. lirc_zilog module ref-counting need examination. It has not been
counting and locking is acceptable if not correct. For USB connected units verified that cdev and lirc_dev will take the proper module references on
like HD PVR, PVR USB2, HVR-1900, and HVR1950, the likelyhood of an Ooops on lirc_zilog to prevent removal of lirc_zilog when the /dev/lircN device node
unplug is probably great. Proper reference counting and locking needs to be is open.
implemented before this module is moved out of staging.
(The good news is ref-counting of lirc_zilog internal structures appears to be
3. The binding between hdpvr and lirc_zilog is currently disabled, complete. Testing has shown the cx18 module can be unloaded out from under
due to an OOPS reported a few years ago when both the hdpvr and cx18 irw + lircd + lirc_dev, with the /dev/lirc0 device node open, with no adverse
drivers were loaded in his system. More details can be seen at: effects. The cx18 module could then be reloaded and irw properly began
http://www.mail-archive.com/linux-media@vger.kernel.org/msg09163.html receiving button presses again and ir_send worked without error.)
More tests need to be done, in order to fix the reported issue.
4. In addition to providing a shared mutex for transceiver access 3. Bridge drivers, if able, should provide a chip reset() callback
locking, bridge drivers, if able, should provide a chip reset() callback
to lirc_zilog via struct IR_i2c_init_data. cx18 and ivtv already have routines to lirc_zilog via struct IR_i2c_init_data. cx18 and ivtv already have routines
to perform Z8 chip resets via GPIO manipulations. This will allow lirc_zilog to perform Z8 chip resets via GPIO manipulations. This would allow lirc_zilog
to bring the chip back to normal when it hangs, in the same places the to bring the chip back to normal when it hangs, in the same places the
original lirc_pvr150 driver code does. This is not strictly needed, so it original lirc_pvr150 driver code does. This is not strictly needed, so it
is not required to move lirc_zilog out of staging. is not required to move lirc_zilog out of staging.
5. Both lirc_zilog and ir-kbd-i2c support the Zilog Z8 for IR, as programmed Note: Both lirc_zilog and ir-kbd-i2c support the Zilog Z8 for IR, as programmed
and installed on Hauppauge products. When working on either module, developers and installed on Hauppauge products. When working on either module, developers
must consider at least the following bridge drivers which mention an IR Rx unit must consider at least the following bridge drivers which mention an IR Rx unit
at address 0x71 (indicative of a Z8): at address 0x71 (indicative of a Z8):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册