Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp493253ybh; Tue, 10 Mar 2020 02:43:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuZ6WUoxbYWbzSZhL7Nt4BQ29a4K0DADyyTWLE0wZ2qhEj5LwQ3bSEcUn75l07vsD80xy9o X-Received: by 2002:a05:6808:5d7:: with SMTP id d23mr492174oij.63.1583833397181; Tue, 10 Mar 2020 02:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583833397; cv=none; d=google.com; s=arc-20160816; b=bSNQ4fhLXRDpTfL6KrUC0cTg/AJ7wG2cuDyHeI8jgbbtRnjBl9VaxJ9LQokHL2DHVM YfN+PVxkfesfp9sLu34gCTwRboWO9AZpLdAghMhRNg48Bei/KlCzbPD70mFFnMbIPeTv ZWzaf/c461tR/uPe/c7ZxbNWPMSkZ8vrELKVwXfDO98EpdKUOLLKO7v8L0eN+hV4AeHE gFILHRmRFAZtSLN+wyVpsJ26e3CUq38PVW6VL8pbbhVtHwIu08eZw/dsZcJ1IMQBO9xh glyj1ZmZBtdZj6brcfLTLrNc6gz0WM5Y0O6j/gusYfe8Ss1AqVumNQl42asOoEPrKSNO g5kQ== 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=YaRVVvZe82f7PICjBJhATGndS8gB7Og7ojx2leFE1C8=; b=CtstWgrnEs9QT+3OFN97RiP+Q8HeI75BDjF8qPEaQ8heuaNbtiz48+wJlQ80JFSxQA AIDauG9/GVjQg3RBTxr15JcWiRsd+ApwyaCIhtWEFPhF9nSAUKk8MebKTccfgeLqbXWE Ssm02WuHjsI+IW9j+uME60jEGnJ7yaLpD+MBMpAieATtCdp7VzkjSzcSx8KKkNtEbeB2 vqz3Fh9mrIcuFSxrAWDOVpOBZPUKZIgmYWmduItRWSIbRt8VBPwMZcst7rwHNzuMvdly tKOkIH5/AQZtV+RNpCXBUnd3AaSZGQmXIW+KeDUPyAJdH8z5xm7aJl97JmEt8Y2A3s/G EVJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qmgqsy1V; 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 r12si4935145oij.113.2020.03.10.02.43.05; Tue, 10 Mar 2020 02:43:17 -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=qmgqsy1V; 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 S1726273AbgCJJla (ORCPT + 99 others); Tue, 10 Mar 2020 05:41:30 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45874 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbgCJJla (ORCPT ); Tue, 10 Mar 2020 05:41:30 -0400 Received: by mail-lj1-f193.google.com with SMTP id e18so13299683ljn.12; Tue, 10 Mar 2020 02:41:27 -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=YaRVVvZe82f7PICjBJhATGndS8gB7Og7ojx2leFE1C8=; b=qmgqsy1VrS/eXemTV3L1tff6TLx+hApE+cDMEYWENUlA6Av/G7trT0ltO5rIGfkQJJ OXvdTrGt/0U40hM4O7FqrYhV3r5umIg14moWgX9nIgdV/Xsw8+NPTLNoylDs9IO4KFJL E2yAhSSaSCPeOgNeWS2+XC0J/ov0dh179PkFTN52VQDsuZNrKvzgLVA1nRBLp6aaYafH 4DH6ou71NI1ibntcUjiAHDUjMi3fysWfyCxQ748ycUqtSlC/qrR59MqLk4wBIsaLoPJq qF10hhSm/blyptIxwZ/XV/poEwkFUkX4V7qdXxMdRUU7hEcbusG2pbixW74lC13GuIuk oK7g== 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=YaRVVvZe82f7PICjBJhATGndS8gB7Og7ojx2leFE1C8=; b=WK2KKVUfTrsBh1OTcANICUG2RAg632S4Uf/dNMX3gSRNkVVj/PBHDmgppxKk4A1IuQ O3eFIzP0IziIQKaBqgE4DKJ+ls9Cj+x8wOKYmenAxF3aBJS/Nw+MHahISa/paLRo0wcH Yg+tZJGX8rCqKG5f+Lb7PZ1E5+j0UrlEvhkiDo4U1xUB6vM/bl0yxNprLbNRjHbWL7Dz ZYkIr28/tiuOpYiTKHWv6qlgMhVeEFFJsNlIeQousR3PqWemPfAxDXLZVPQ7ZXJtrV8K uboqfqIvtPwhuUhPSdNRh4haFBgj5HtPYQ9B7uIuBeQT+Q+/BCLoFELs16IU2Zakza5M /DFw== X-Gm-Message-State: ANhLgQ3bD42Dd7OoAfBCdtLz3G9ORWz9brhb3MpimtE0vQpZdWIr+ZVr 54uXe+kkRkbOx0lVIFMlN/0Vdtv6U5zEVcMHCnc= X-Received: by 2002:a2e:8699:: with SMTP id l25mr4602504lji.148.1583833286522; Tue, 10 Mar 2020 02:41:26 -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 17:41:14 +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 Hi Geert, On Mon, Mar 9, 2020 at 6:32 PM Geert Uytterhoeven wrote: > > 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. 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? -Orson > 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