Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755698Ab0KKLQL (ORCPT ); Thu, 11 Nov 2010 06:16:11 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:55716 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754927Ab0KKLQJ convert rfc822-to-8bit (ORCPT ); Thu, 11 Nov 2010 06:16:09 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:reply-to:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=exyxl184WfBk3M6NIItmF1YH/CZUiPPWTT7BPJj2k+HjQmb2uGdpJg+uFUPPXPBhtN chfLwd1R6nVVMiW4TFYULsmXMHNQKiBXBcyXxehzeyPN9HWiu4lX5az6FavgQOZikety i+mxCriDTl7lWvNtfJAESma2vo/ZwTvn2X5Bg= From: Florian Fainelli Reply-To: Florian Fainelli To: Roland Dreier Subject: Re: Forked android kernel development from linux kernel mainline Date: Thu, 11 Nov 2010 12:18:14 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-trunk-amd64; KDE/4.4.5; x86_64; ; ) Cc: Greg KH , Arnaud Lacombe , Anca Emanuel , Elvis Dowson , Linux Kernel Mailing List References: <01784A8B-36A0-4E8A-9729-23C2B19351F8@mac.com> <20101107215908.GA21070@kroah.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-Id: <201011111218.15668.florian@openwrt.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1552 Lines: 35 Hello Roland, Le Thursday 11 November 2010 01:33:38, Roland Dreier a ?crit : > > Isn't the openwrt stuff just drivers and some arch specific code? > > Nothing that is core infrastructure, and nothing preventing them from > > submitting the drivers and arch code if they want to, right? > > Actually openwrt has some core infrastructure for managing (ethernet) > switches as extra-fancy multiport PHYs. That means that all the drivers > in openwrt for the typical 5-8 port switches in home routers don't > really apply to mainline. This is called "swconfig" in OpenWrt and it works in two parts: - a swconfig driver, which interfaces the getting and setting of switches attributes using netlink, therefore there is an user-space counter-part - the switch drivers are implemented as phylib drivers with a phylib fixup callback to allow proper detection of these (you cannot alwasy simply read the standard PHY ID), the config_init callback will set correct defaults for the switch to be usable even without swconfig The rationale behind swconfig comes from the fact that the Marvell DSA switch infrastructure is both too complex and too-specific to driver relatively simpler switches. One could therefore just use the "phylib switch driver" without swconfig and have it working. -- Florian -- 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/