Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756759Ab1DFU5g (ORCPT ); Wed, 6 Apr 2011 16:57:36 -0400 Received: from 80-190-117-144.ip-home.de ([80.190.117.144]:53746 "EHLO bu3sch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754929Ab1DFU5f (ORCPT ); Wed, 6 Apr 2011 16:57:35 -0400 Subject: Re: [RFC][PATCH] bcmai: introduce AI driver From: Michael =?ISO-8859-1?Q?B=FCsch?= To: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= Cc: Arend van Spriel , "linux-wireless@vger.kernel.org" , "John W. Linville" , Larry Finger , George Kashperko , "b43-dev@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , Russell King , Arnd Bergmann , linuxdriverproject , "linux-kernel@vger.kernel.org" In-Reply-To: (sfid-20110406_224259_263459_4DF85580) References: <1302033463-1846-1-git-send-email-zajec5@gmail.com> (sfid-20110406_224259_263459_4DF85580) Content-Type: text/plain; charset="UTF-8" Date: Wed, 06 Apr 2011 22:57:08 +0200 Message-ID: <1302123428.20093.6.camel@maggie> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1437 Lines: 34 On Wed, 2011-04-06 at 22:42 +0200, Rafał Miłecki wrote: > 2011/4/6 Rafał Miłecki : > > If we want to have two drivers working on two (different) cores > > simultaneously, we will have to add trivial mutex to group core > > switching with core operation (read/write). > > With a little of work we could avoid switching and mutexes on no-host > boards. MMIO is not limited to one core at once in such a case. I don't think that this is a problem at all. All that magic does happen inside of the bus I/O handlers. Just like SSB does it. >From a driver point of view, the I/O functions just need to be atomic. For SSB it's not always 100% atomic, but we're always safe due to some assumptions being made. But this is an SSB implementation detail that is different from AXI. So don't look too closely at the SSB implementation of the I/O functions. You certainly want to implement them slightly differently in AXI. SSB currently doesn't make use of the additional sliding windows, because they are not available in the majority of SSB devices. The AXI bus subsystem will manage the sliding windows and the driver doesn't know about the details. -- Greetings Michael. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/