diff options
author | Mike Isely <isely@pobox.com> | 2009-03-06 22:57:25 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2009-03-06 22:57:25 -0600 |
commit | 8299e0bc7422fc44591a910a1c011e959e623a1a (patch) | |
tree | 63c88c46e19eaab7d2699a12b997bd31875cc4a6 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |
parent | 1aee4a5d51f50e895af02d8e976d56656d65b58e (diff) | |
download | mediapointer-dvb-s2-8299e0bc7422fc44591a910a1c011e959e623a1a.tar.gz mediapointer-dvb-s2-8299e0bc7422fc44591a910a1c011e959e623a1a.tar.bz2 |
pvrusb2: Implement mechanism to force a full sub-device update
From: Mike Isely <isely@pobox.com>
When a pvrusb2 driver instance first initializes, we need to be sure
to send out a complete state update for everything to all attached
modules. The old i2c layer did this by keeping a separate mask of
"stale" bits for each attached module - and setting that mask to all
stale when that module attaches. But the new sub-device adaptation
I've implemented here no longer has per-module stale bits. So instead
there's now a global "force dirty" bit that is set upon instance
initialization, before the sub-devices are attached. After the first
update, this bit is cleared, allowing for normal update-on-dirty
behavior. In this manner, we ensure that all sub-devices have been
properly synchronized at initialization.
Priority: normal
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h index 299bf58ad..2afbd9bce 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h @@ -288,6 +288,7 @@ struct pvr2_hdw { wait_queue_head_t state_wait_data; + int force_dirty; /* consider all controls dirty if true */ int flag_ok; /* device in known good state */ int flag_disconnected; /* flag_ok == 0 due to disconnect */ int flag_init_ok; /* true if structure is fully initialized */ |