Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp518755ybh; Tue, 10 Mar 2020 03:14:44 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsQKxMPG/8n+79dkG5/BqxpkAQUlhRNWHtGfPH1yxfgfAIkoMLF0Yoz5h221l9/UEnBo6AP X-Received: by 2002:aca:3f54:: with SMTP id m81mr581321oia.167.1583835283962; Tue, 10 Mar 2020 03:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583835283; cv=none; d=google.com; s=arc-20160816; b=baXH+gDIpNS8zpUE/tTJC5RxXbXSFELHeZHGHL6tw3lVMKk0IsLxbyMpnV0VVLSCmL W+S2F+IAWdrj4S832KcppWsZfpfbxP935Oaxk2P/T1zXGLvisrPnbcnvyoFyvJxpG3/Y YNzI1UIDs32IBJ8dukQkEaLgsUAv7jp+9KdrIWwsn8Qmzz3U+1MLv8UXdp56S57UxNR6 NJ5rolmQiZ+M2V+sY2+S518fEzKTH6wwd8EAlYwg5AQFL2Im2QnlSfsKVB6L7pgUIWud yHsmQZJo13IwOHlUbEKVSkLZn5fmfNvKZuCoTCI9MjNXHNCMOYUx/WdDXoG5GhfHn4hi 7tmg== 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:dkim-signature; bh=H41EK6fFWsu7lc3SctFKC6jvmteBRlGuxbpCpld6vno=; b=qLF+H1c5VDTPvbQoRZeAdIFDjDBj0xYRImEhCbWBBpdN+sF7FlEUW1tH646vXhqsP/ mB50Nms61YjfvaUf7pkAhv58IYqJkKDL52H/eFZJETTW7YwY67mJrqfJ46PKqTlBoUXm dIacKD2z1SadvkeM6xKnYYEv+joYn7eoki+1Zwy8b/v8IRkeaB1NL7tRUnuTgIQX4R2y Xcq6HrKkWmN1WPABYqZliLrfT5bjWh3TdAUl2j1Bhr0FndBY5BcLxINabW2eTngIIuI4 U/+178ked819Doqifc7W8TMAvjeAzJ4bj3I0vIZ5uiiyPYprKoQwFEw+9Lbx/2WyCnpU el3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g8ZD6JIS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v26si8371974otn.318.2020.03.10.03.14.32; Tue, 10 Mar 2020 03:14:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g8ZD6JIS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726403AbgCJKOH (ORCPT + 99 others); Tue, 10 Mar 2020 06:14:07 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:40729 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbgCJKOH (ORCPT ); Tue, 10 Mar 2020 06:14:07 -0400 Received: by mail-lf1-f65.google.com with SMTP id j17so5821494lfe.7; Tue, 10 Mar 2020 03:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H41EK6fFWsu7lc3SctFKC6jvmteBRlGuxbpCpld6vno=; b=g8ZD6JIS5Nbi5VQkoVKI9M/R0asumknvg+5tJnMpLTrwLqopBa459G+Q/XQzcwPv1A dnFXMhqtT5oJqRaM0Kwk034c0qEj7/G4f0UyF3vC+FunNgutepJnWbUIIsGWNMpGPrij jCA2K6vv24K2GdNo8Kj6muOUhaj5wLjo7+xZTE36a18WvipB2aBXdQTWg0csU9DCnIdr zMRrnaF4sdNWdxAyrCOzLDh60CE54BVAevIoJBTwsg102Mg3I3iWoDVg8tiNJ8LskBgt 3Uik+QIPptsu2Tb68aLInTso3Nwoo+3e8nPPA+WZWFbBl4GCkwQ4O6CZhst/1TtrprRx aaXw== 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=H41EK6fFWsu7lc3SctFKC6jvmteBRlGuxbpCpld6vno=; b=hWR5rykeIlqbSGtI2aeckCYNP3m4mdHHaCugsc7Zle8BbfH6WG/bL+EgPgdmMBSmRY UOL8UfnYyUi7G8+3hM4topFjO6EF6seuJVwXGpDDuQMk3NjZpm+6PLAzJ5ch9nVfgx4z BKSYiZIfRfdj5Ri++KZJD+9bgn4PfufS44lUXLiR+a9KgKMPXJhBWJsowxddkuWk6YD+ Pw65yTaDBBVBzPTXtDp2C3Qv4sKIjVHDF8DZZWfWIbfysVW28AbeXEmad8n3Tt1Dcalw KPWqWD/tbRGf6n2DKKqzqDF3QW1Ivch7TF/NaP0i08QdNzuHWAyMezgPmx+jK0MkJm3e LXNA== X-Gm-Message-State: ANhLgQ0jRLhnM1E9H+szgp4wURDOQmJOF22mnIOQ1m58Motg3sWgTEnQ kBF2VIZ/DU6b5lmvq+sNXZvEOHoHCiQNHZGnCWU= X-Received: by 2002:a19:f615:: with SMTP id x21mr325697lfe.47.1583835244537; Tue, 10 Mar 2020 03:14:04 -0700 (PDT) MIME-Version: 1.0 References: <20200305103228.9686-1-zhang.lyra@gmail.com> In-Reply-To: From: Orson Zhai Date: Tue, 10 Mar 2020 18:13:51 +0800 Message-ID: Subject: Re: [PATCH 1/2] arm64: change ARCH_SPRD Kconfig to tristate To: Geert Uytterhoeven Cc: Chunyan Zhang , Greg Kroah-Hartman , Catalin Marinas , Will Deacon , Jiri Slaby , Linux Kernel Mailing List , Chunyan Zhang , "open list:SERIAL DRIVERS" , Baolin Wang , 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 On Tue, Mar 10, 2020 at 5:52 PM Geert Uytterhoeven wrote: > > Hi Orson, > > On Tue, Mar 10, 2020 at 10:41 AM Orson Zhai wrote: > > On Mon, Mar 9, 2020 at 6:32 PM Geert Uytterhoeven wrote: > > > 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. > > > > There is an function named "sprd_uart_is_console()" in the driver > > code. So the hack could be only applied when the > > port is identified as console. And other ports might return > > PROBE_DEFER until the clock is ready. > > > > Could it work out of the limitation? > > Yes, that could work. You also have only a single SPRD_DEFAULT_SOURCE_CLK, > which makes it simple to handle. > For other SoCs, there may be a variation of possible values, depending on > SoC and/or board. Ok, thanks. -Orson > > 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