Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752944AbaAPQa5 (ORCPT ); Thu, 16 Jan 2014 11:30:57 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:40045 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752316AbaAPQaz (ORCPT ); Thu, 16 Jan 2014 11:30:55 -0500 From: Grant Likely Subject: Re: [PATCH 4/5] dt/bindings: remove device_type "network" references To: monstr@monstr.eu Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala In-Reply-To: <52A87401.5030001@monstr.eu> References: <1386760555-22732-1-git-send-email-grant.likely@linaro.org> < 1386760555-22732-5-git-send-email-grant.likely@linaro.org> <52A87401. 5030001@monstr.eu> Date: Thu, 16 Jan 2014 16:30:49 +0000 Message-Id: <20140116163049.9D367C40973@trevor.secretlab.ca> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Dec 2013 15:17:37 +0100, Michal Simek wrote: > On 12/11/2013 12:15 PM, Grant Likely wrote: > > device_type is deprecated and the kernel doesn't require it in most > > cases. The only exceptions for flat tree users are the "gianfar", > > "ucc_geth" and "ibm,emac" bindings, and arguably that requirement could > > be relaxed for ucc_geth and ibm,emac (that is a task for separate > > patches though). > > > > This patch removes references to device_type="network" from the binding > > documentation where possible and removes the properties from ARM and > > microblaze dts files. This patch does not modify the powerpc .dts files > > since there are a much larger number of them affected and I think the > > ucc_geth, ibm,emac and gianfar users should be addressed before clearing > > out the references to reduce the chance of breakage. > > > > Signed-off-by: Grant Likely > > Cc: Rob Herring > > Cc: Pawel Moll > > Cc: Mark Rutland > > Cc: Ian Campbell > > Cc: Kumar Gala > > Cc: Michal Simek > > --- > > Documentation/devicetree/bindings/marvell.txt | 2 -- > > Documentation/devicetree/bindings/net/marvell-orion-net.txt | 2 -- > > Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt | 1 - > > arch/arm/boot/dts/dove.dtsi | 1 - > > arch/arm/boot/dts/kirkwood.dtsi | 2 -- > > arch/arm/boot/dts/orion5x.dtsi | 1 - > > arch/microblaze/platform/generic/system.dts | 1 - > > 7 files changed, 10 deletions(-) > > Acked-by: Michal Simek > > btw: what device types can be used? > I am having them for serial, watchdog, pci, memory, cpu, ethernet-phy > (will remove network from our generator). > > when I grep kernel there are others types like soc, ipmi and a lot for powerpc. There are a number of users, but most of them are bogus since they can just as easily be expressed via a compatible value. There are a few cases where they are required. PCI bus nodes, memory nodes, and cpus for example. General rule here is avoid device_type entirely unless some core infrastructure of the kernel requires it. g. -- 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/