From: Johannes Berg Date: Wed, 11 Mar 2009 10:10:11 +0100 Subject: [ath9k-devel] [PATCH v5 1/4] ath9k: implement IO serialization In-Reply-To: <1236739953-17701-2-git-send-email-lrodriguez@atheros.com> (sfid-20090311_035323_043986_25539888) References: <1236739953-17701-1-git-send-email-lrodriguez@atheros.com> <1236739953-17701-2-git-send-email-lrodriguez@atheros.com> (sfid-20090311_035323_043986_25539888) Message-ID: <1236762611.9658.87.camel@johannes.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Tue, 2009-03-10 at 22:52 -0400, Luis R. Rodriguez wrote: > + if (ah->config.serialize_regmode == SER_REG_MODE_ON) { > + unsigned long flags; > + spin_lock_irqsave(&ah->ah_sc->sc_serial_rw, flags); > + iowrite32(val, ah->ah_sc->mem + reg_offset); > + spin_unlock_irqrestore(&ah->ah_sc->sc_serial_rw, flags); > + } else > + iowrite32(val, ah->ah_sc->mem + reg_offset); This is utterly insane. Just make it _always_ do the spinlock, and get rid of the hotplug notifier and all that crap. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090311/5e94ea27/attachment.pgp