RE: [ipw3945-devel] [PATCH 1/5] iwlwifi: iwl3945 flush interrupt mask

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joonwoo Park <joonwpark81@...>, Zhu, Yi <yi.zhu@...>, <netdev@...>
Cc: <linux-wireless@...>, lkml <linux-kernel@...>, <ipw3945-devel@...>
Date: Wednesday, January 23, 2008 - 2:50 pm

Joonwoo Park <joonwpark81@gmail.com> wrote:


I have been looking at this patch and I would like to get some more
feedback from the experts in the group.

First off, the register used for the read in order to flush has to be
safe. We have to make sure that the register has no side effects. To do
this we could use CSR_INT_MASK, as in "#define iwl_flush32(iwl)
iwl_read32(iwl, CSR_INT_MASK)" This also enables us to flush at the end
of a sequence of writes instead of after every write.

Digging deeper it is not 100% clear to me when we should do flushing to
handle write posting. I understand that it should be done in time
sensitive code, but that could on a high level mean any write operation
in the driver. How should it be decided which writes to the device need
to be flushed? 

Patch is kept below fyi.

Reinette


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/5] iwlwifi: iwl3945 flush interrupt mask, Joonwoo Park, (Wed Jan 9, 7:02 am)
RE: [ipw3945-devel] [PATCH 1/5] iwlwifi: iwl3945 flush inter..., Chatre, Reinette, (Wed Jan 23, 2:50 pm)