Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750968AbVKPHGz (ORCPT ); Wed, 16 Nov 2005 02:06:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751049AbVKPHGz (ORCPT ); Wed, 16 Nov 2005 02:06:55 -0500 Received: from mail.kroah.org ([69.55.234.183]:34449 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S1750968AbVKPHGy (ORCPT ); Wed, 16 Nov 2005 02:06:54 -0500 Date: Tue, 15 Nov 2005 22:41:23 -0800 From: Greg KH To: Kumar Gala Cc: Russell King , linux-kernel@vger.kernel.org Subject: Re: overlapping resources for platform devices? Message-ID: <20051116064123.GA31824@kroah.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1034 Lines: 25 On Tue, Nov 15, 2005 at 05:31:57PM -0600, Kumar Gala wrote: > Guys, > > I was wondering if there was any issue in changing platform_device_add to > use insert_resource instead of request_resource. The reason for this > change is to handle several cases where we have device registers that > overlap that two different drivers are handling. > > The biggest case of this is with ethernet on a number of PowerPC based > systems where a subset of the ethernet controllers registers are used for > MDIO/PHY bus control. We currently hack around the limitation by having > the MDIO/PHY bus not actually register an memory resource region. > > If the following looks good I'll send a more formal patch. Looks good to me, but Russell knows this code much better than I. thanks, greg k-h - 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/