Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3658729imm; Mon, 1 Oct 2018 02:15:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV6384MQWKoGdaJn6u8BEX4lo2EgkK7SLjutOG9GCXqAiSppnu0YCKJ8Wa4IhaUzy16PINm3/ X-Received: by 2002:a17:902:bb0d:: with SMTP id l13-v6mr10647388pls.71.1538385355228; Mon, 01 Oct 2018 02:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538385355; cv=none; d=google.com; s=arc-20160816; b=nzEgT6mKJSiutVxea7g9tfK5JJh84pF0JVGFgfnH+0ZDtTT8iZiBDTixvCDmRpZUJ6 1y4Wzjir2JAE5nrUvTfhY28smyHU4HSNq0QAXijEm85TE9jJs+V7qtH+L7yC42hm3LId 9OGJihHH0MVGiZJ/3mc8N+9Whx/epjRTB8E4BKa/NVht9Lk0oWZ3upGBqDv4jTFtV36+ 5Fv+ElUn3Sx9srAAzNDfPKDyWY61TJOicR7I46AITTjSjorGuG+fiImyzNquPbHYt9ha l1rZY+uhmvs3RFEFiJc5hxasNTJYk7wHNnSn3D779TIzEX8w5DstyuXW/S06JQ70bxgj JH2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=qZcg7zYjDKZ2Wb2StU1pRU8FOvJRY8KpZZq3uZ774VA=; b=Dxqdsjw8Y0nfK6K6fyz7jUgpDG+RvvY298yC7aBe3NZP+ZaLMwPg7yzcSjZ6N5fm1B mJ73mmPdqUEkIrbBqAYLZbNalG+ATMOW8vDSyMP+QgQ2+XEU0QGbFWGTahjHz6oKfKAN 9EdMiTtuQ+Jd3BQGWoFLWvCzD4CHLv7e0iKZ6qk2ZdsH6YRAYvHksSDfTYs7FFOtbNw1 kjZ2z/ZASkhPvHMbULczSAJ4dBIKIsn02AsNlfXszFc0T1uLpAwBg7czQKt/DO8bg418 iEsMPtipqNat5UaO2BgfZD/F9wRH61yZONBd0LZp0TDtayR3B3Mz8QNrCW8QXA3hgNFe Bzqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3-v6si3191179plz.353.2018.10.01.02.15.40; Mon, 01 Oct 2018 02:15:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729064AbeJAPwU (ORCPT + 99 others); Mon, 1 Oct 2018 11:52:20 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45356 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728808AbeJAPwU (ORCPT ); Mon, 1 Oct 2018 11:52:20 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 61AD37A9; Mon, 1 Oct 2018 02:15:33 -0700 (PDT) Received: from [10.4.13.85] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5E3E33F5B3; Mon, 1 Oct 2018 02:15:31 -0700 (PDT) Subject: Re: [RFC 5/5] MIPS: Add Realtek RTL8186 SoC support To: Yasha Cherikovsky , Ralf Baechle , Paul Burton , James Hogan , linux-mips@linux-mips.org Cc: Thomas Gleixner , Jason Cooper , Daniel Lezcano , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180930141510.2690-1-yasha.che3@gmail.com> <20180930141510.2690-6-yasha.che3@gmail.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <351da67a-b1e6-7972-5c91-0f204690080f@arm.com> Date: Mon, 1 Oct 2018 10:15:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/10/18 09:48, Yasha Cherikovsky wrote: > Hi Marc, > > On Mon, 2018-10-01 at 09:19 +0100, Marc Zyngier wrote: >> Hi Yasha, >> >> On 30/09/18 15:15, Yasha Cherikovsky wrote: >>> The Realtek RTL8186 SoC is a MIPS based SoC >>> used in some home routers [1][2]. >>> >>> The hardware includes Lexra LX5280 CPU with a TLB, >>> two Ethernet controllers, a WLAN controller and more. >>> >>> With this patch, it is possible to successfully boot >>> the kernel and load userspace on the Edimax BR-6204Wg >>> router. >>> Network drivers support will come in future patches. >>> >>> This patch includes: >>> - New MIPS rtl8186 platform >>> - Core platform setup code (mostly DT based) >>> - New Kconfig option >>> - defconfig file >>> - MIPS zboot UART support >>> - RTL8186 interrupt controller driver >>> - RTL8186 timer driver >>> - Device tree files for the RTL8186 SoC and Edimax BR-6204Wg >>> router >>> >>> [1] https://www.linux-mips.org/wiki/Realtek_SOC#Realtek_RTL8186 >>> [2] https://wikidevi.com/wiki/Realtek_RTL8186 >>> >>> Signed-off-by: Yasha Cherikovsky >>> Cc: Ralf Baechle >>> Cc: Paul Burton >>> Cc: James Hogan >>> Cc: Thomas Gleixner >>> Cc: Jason Cooper >>> Cc: Marc Zyngier >>> Cc: Daniel Lezcano >>> Cc: Rob Herring >>> Cc: Mark Rutland >>> Cc: linux-mips@linux-mips.org >>> Cc: devicetree@vger.kernel.org >>> Cc: linux-kernel@vger.kernel.org >>> --- >>> arch/mips/Kbuild.platforms | 1 + >>> arch/mips/Kconfig | 17 ++ >>> arch/mips/boot/compressed/uart-16550.c | 5 + >>> arch/mips/boot/dts/Makefile | 1 + >>> arch/mips/boot/dts/realtek/Makefile | 4 + >>> arch/mips/boot/dts/realtek/rtl8186.dtsi | 86 +++++++ >>> .../dts/realtek/rtl8186_edimax_br_6204wg.dts | 45 ++++ >>> arch/mips/configs/rtl8186_defconfig | 112 +++++++++ >>> arch/mips/include/asm/mach-rtl8186/rtl8186.h | 37 +++ >>> arch/mips/rtl8186/Makefile | 2 + >>> arch/mips/rtl8186/Platform | 7 + >>> arch/mips/rtl8186/irq.c | 8 + >>> arch/mips/rtl8186/prom.c | 15 ++ >>> arch/mips/rtl8186/setup.c | 80 +++++++ >>> arch/mips/rtl8186/time.c | 10 + >>> drivers/clocksource/Kconfig | 9 + >>> drivers/clocksource/Makefile | 1 + >>> drivers/clocksource/timer-rtl8186.c | 220 >>> ++++++++++++++++++ >>> drivers/irqchip/Kconfig | 5 + >>> drivers/irqchip/Makefile | 1 + >>> drivers/irqchip/irq-rtl8186.c | 107 +++++++++ >> >> Could you please split this into at least three patches (arch code, >> clocksource, irqchip) to ease the review? >> >> Thanks, >> >> M. > > Currently the RTL8186_IRQ and the RTL8186_TIMER Kconfig entries depend on > MACH_RTL8186 (which is added in the MIPS portion of the same patch). > Also, MACH_RTL8186 in MIPS selects these two options. > > What is the best way to split that? It is absolutely fine to have something depending on a non-selectable config option, which would allow you to split things up as finely as you want. Just have the patch enabling the config option last. Thanks, M. -- Jazz is not dead. It just smells funny...