Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2317344ybh; Mon, 9 Mar 2020 03:33:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsRZxjo9SHVLEGV1J+rE6dj2oJzEYOU0UOYM2UXDZJejgIGDx/KPUnwZpL5uFs7oCvHEuqL X-Received: by 2002:aca:f4d1:: with SMTP id s200mr11340880oih.85.1583749995679; Mon, 09 Mar 2020 03:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583749995; cv=none; d=google.com; s=arc-20160816; b=ADLCHtGygFw+tX+1h9tF6kEYYR8ccOerA6sdPeOIN5GPsyQfTer0DQhZe/eAySTysI n7EQ8UFwIXGpFK1c1npMNwMikMtXgiOgYpY0pVhJ7S8LLdU6xUlKzDSTcnJRcDbxRup8 Egf84+pcEXD97PcOQeHuKv3ODWypcymx1qAzKkDJM+2R4LWpXu023Dpar73kGZVAihT6 bmUBs30OWi6WxAMUHT9wiFi7idEyn626lRJROeSCLcNbg9y/EAFycZUGHxtpsHjCjkJl ITpMczh1bywFfq7FPuCMIUlo+BbhZB74IYtDxu9a1YkTVgh9xF68KqI0dHIhGhVoeu9U DpYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=pN1NhwV5FZU7mvbB/Fyos9y0uYvy+acNwUtvUwLUiRQ=; b=OO7+fSP6rzD4z7888NAIR6fT7pUztJ7hA60wPu/d4hX4qUu7BvBanASAUJ6Z1ME9sN jEL+P2M8dYknB7SZ3QjGTX5i2jBTdTDiGtxCKM4W5Ybi9oFUlRk5GKZdS4QYiRcM2Tbi S+HQ5IKs8hiR/7v75q8UY3xIe45Nl+M+W4fEQQCSa6zPpCxDgNEg1SrdJ5hmcIbxgoTy T5NGTIf742L2SCV9OscM5VxrlsW5wWKQWsCFC/s/ldZDi0K9XMYWPObiTRhCSG6PCwJh JSZ1EoBlJAikXgG1W5PWvbusAWxaQF3rTxQ87ZSISZDN+LBor5UcpZo6ams+d7AtF5dB Q79A== 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 9si4148131ois.90.2020.03.09.03.32.56; Mon, 09 Mar 2020 03:33:15 -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 S1726771AbgCIKcT (ORCPT + 99 others); Mon, 9 Mar 2020 06:32:19 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:46846 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgCIKcS (ORCPT ); Mon, 9 Mar 2020 06:32:18 -0400 Received: by mail-ot1-f67.google.com with SMTP id 111so4671253oth.13; Mon, 09 Mar 2020 03:32:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pN1NhwV5FZU7mvbB/Fyos9y0uYvy+acNwUtvUwLUiRQ=; b=XaEw1XPNkCWpXCIrYhb8n9WMjq3gpxMNPICsgt0nJJcLRh9wf7y3cC8T100TasrsDU boWrnxRUfzkG3J97SSWVkq2SfAnAkkNjuV+pgfpik4uAT+kKsVN2EJl7DcETEUr4BibK BdaJqva7UgM1YyyNN0Tk1l/EAu7HhKCcpqSA9aRNSS7jAR/ptv9krG0MxUEC9Dj4pCfy t5TK1+okij+Sx8bnaJuJ74B7Z4deRg8yy/b1m1Xv8I4b5a2TLIZTa2pW7wtXNmbOqDq8 bv+IvzQsGD68A0Ik9sbVmHPSauNix0a1fau3k+/MeeG6n0dV+iojLybkL62mKAWSyO1f AWgg== X-Gm-Message-State: ANhLgQ0g2yYfskHAZZ7SY2s7EEvLymXnooZMLGWcCSTc49MezVxvJRdd f6ezOPn8FQF8OxIcZCY02LUSz3DYZCMBmnzDC3g= X-Received: by 2002:a9d:b89:: with SMTP id 9mr12586549oth.297.1583749937349; Mon, 09 Mar 2020 03:32:17 -0700 (PDT) MIME-Version: 1.0 References: <20200305103228.9686-1-zhang.lyra@gmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 9 Mar 2020 11:32:06 +0100 Message-ID: Subject: Re: [PATCH 1/2] arm64: change ARCH_SPRD Kconfig to tristate To: Chunyan Zhang Cc: Greg Kroah-Hartman , Catalin Marinas , Will Deacon , Jiri Slaby , Linux Kernel Mailing List , Chunyan Zhang , "open list:SERIAL DRIVERS" , Baolin Wang , Orson Zhai , Linux ARM , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chunyan, On Mon, Mar 9, 2020 at 9:32 AM Chunyan Zhang wrote: > On Mon, 9 Mar 2020 at 16:03, Geert Uytterhoeven wrote: > > On Thu, Mar 5, 2020 at 11:33 AM Chunyan Zhang wrote: > > > From: Chunyan Zhang > > > > > > The default value of Kconfig for almost all sprd drivers are the same with > > > ARCH_SPRD, making these drivers built as modules as default would be easier > > > if we can set ARCH_SPRD as 'm', so this patch change ARCH_SPRD to tristate. > > > > > > Signed-off-by: Chunyan Zhang > > > > Can you actually boot a kernel on a Spreadtrum platform when all platform > > and driver support is modular? > > Yes, even if all drivers are modular. Cool. No hard dependencies on e.g. regulators that are turned off when unused? > But I hope serial can be builtin, then I can have a console to see > kernel output before loading modules. No dependency on the clock driver? Oh, I see you have a hack in the serial driver, to assume default values when the serial port's parent clock is not found. That may limit use of the other serial ports, depending on the actual serial hardware. And on Sharkl64, the serial port's clock is a fixed-clock anyway, so you don't even need the hack. But in general you cannot rely on that, especially if your SoC has clock and/or power domains. BTW, what about the watchdog driver? That one does need a clock, and loading it too late will reboot your system. > Also, this's what Google GKI [1] asked :) > > Regards, > Chunyan > > [1] https://arstechnica.com/gadgets/2019/11/google-outlines-plans-for-mainline-linux-kernel-support-in-android/ Let's see how having everything modular works out on an SoC where all hardware is part of a clock and power domain. Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds