Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp266257ybh; Mon, 9 Mar 2020 21:21:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvnroK1GmFvnl3PqLMA4ftnfBrFJCE7pVQqUPvg/lbO7Xldmn2MgQ+9DpqrvbWGjQwaDHCX X-Received: by 2002:a05:6830:20d0:: with SMTP id z16mr15891396otq.25.1583814064453; Mon, 09 Mar 2020 21:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583814064; cv=none; d=google.com; s=arc-20160816; b=SVG5BCzTRNElVxr1gIu3xMbriIoUvYgFlmwwxer9FRsb8k0FHHOkLoipMVUHv7Olc2 vFd5FmocB59O8tIPJvij9H90mIbNZ8rCxk/alxK1oueUqDNsQiGrOwHZFDVgE5tqvBPl W1s6Ce2lhatqhkDDoOvfjYjxeesIi5NGEoU1Ja2O1Pfd95vxzi7DH9k2o5d/PqCwF0rG RvYzLi/MasLX99DsyWl+6hpV4sLd6QQ0CI1GbFAbgp6+7PHTgTGbIEgCSeTVITIPtpNy Akp3aXsqOwwDr7XkbwR5LJNQcrRnuSDJkV6MVVD1I7y997jjQpEPG8BdqB6CiVA0AUlo zCrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/nvpQDa2s0MPVMjqN65EPRdkP1shvWxs57ggK4I2Mg4=; b=o1oMw6jmY/n86bH5F8nHdtPqRkbDsJ02KlNNWBVbGUNtYy8iL4u2hPGFwVet15Zn1r 8lZrn7kn3rmuZRlZ7XtQQ3MKz8AJOdBV7wRITTKJDkUH0O3UVgVh6nMVEvMD8X6XTr91 /UevwZvWlzvA62Yzou/ThGjJzYBu2oItnwKGi2gDdnArWS6e7rrtHufwmTJOsIzGLq17 ef5a33nHTD+56jbUyKkkr8pJih9qBSB0/urevsH0Ntm11Ly1ovDl9IAzYX6AisW2um+I Vm8v/zsr+D6wJ1kEqsnSNUcEkK6Rf+gxiZjYhobZ2Vxh4gKKk0bcNNNilZq0ry5fAhdk AEEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=UezJBUd8; 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=REJECT sp=REJECT dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si323809otk.241.2020.03.09.21.20.52; Mon, 09 Mar 2020 21:21:04 -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=@android.com header.s=20161025 header.b=UezJBUd8; 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=REJECT sp=REJECT dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726269AbgCJETG (ORCPT + 99 others); Tue, 10 Mar 2020 00:19:06 -0400 Received: from mail-pj1-f65.google.com ([209.85.216.65]:55037 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbgCJETF (ORCPT ); Tue, 10 Mar 2020 00:19:05 -0400 Received: by mail-pj1-f65.google.com with SMTP id np16so840536pjb.4 for ; Mon, 09 Mar 2020 21:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/nvpQDa2s0MPVMjqN65EPRdkP1shvWxs57ggK4I2Mg4=; b=UezJBUd8UBFyj3bKah7Qw2Wo2AtojekX2ufF2g3ZSYIv0sEUqPhtk3IYefMBkbFntK niMJRQRYZqV+HvnHSDhBuzfxA+FDgFL2zorgk2mt8cw8NOd0wRXCkT9vIlXB1FMqh7tj OhCrI5/4S94tcBaKvKOHcE0C0xEd3yz7AxbBO8utT20BqpRcb95IClwp8iF3E/mhmNJK k8idTur7D8G3lVXh5CbfP5dUkZ6EqQd2BZuBB/nPHy90/EYLxBe4DkL80Qym9ZhPji7G ssk8cc4aoVvAed8Eu92Mtdan/qI7hNq+tSfTBhm3aUKgMB/B9ntD3C9Elj0xr6AtGbp3 ozHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/nvpQDa2s0MPVMjqN65EPRdkP1shvWxs57ggK4I2Mg4=; b=aLk8Dq9InQ7b4nL3zYmbfSZX0+0wH7Om0ZmsGmUeG3OUm2xinjaGHbOz2aqwOUXXvm 50vyex19yC/NLtV/j4n906RpwSuo0p4if1kAj5FXB+72DUrMkpPSJRFs0pwJ4iqwhW8N e2G595CAvgeudxxyVWod2rgPpv1iVCGebly2dmWOQV5fxMe4DxigpXX0dabWIVZUrZfk QmkeQnocw52ZaY7gRDu/QGIKQ1ss/JXMZwmRFxvBaFDpeLYqeQKaA4CXKJIPDygtG1Xi Cv+USMbtSFW+zg6JDcO4qaBR8sgykSsnp02gulI0PrifqaoPus811JPGzTUS8XrbxA2w YQEw== X-Gm-Message-State: ANhLgQ3DMEPQq/yE8DlsELuu3kmRRridoTMumVHk/WexlvVgOcJzu+Fc IbF0TrDiFWHeTM4t+PWlNLWM3w== X-Received: by 2002:a17:902:ab8e:: with SMTP id f14mr18389189plr.339.1583813944702; Mon, 09 Mar 2020 21:19:04 -0700 (PDT) Received: from localhost ([2620:15c:211:0:fb21:5c58:d6bc:4bef]) by smtp.gmail.com with ESMTPSA id 128sm33508515pfe.163.2020.03.09.21.19.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 21:19:03 -0700 (PDT) Date: Mon, 9 Mar 2020 21:19:03 -0700 From: Sandeep Patil 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 , Orson Zhai , Linux ARM , Android Kernel Team , saravanak@google.com Subject: Re: [PATCH 1/2] arm64: change ARCH_SPRD Kconfig to tristate Message-ID: <20200310041903.GA260998@google.com> References: <20200305103228.9686-1-zhang.lyra@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Mon, Mar 09, 2020 at 11:32:06AM +0100, 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. > 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. I'm curious, are there any problems that we should be aware of? We know about the regulator sync state and consumer-supplier dependencies. [1] (Adding Saravana inline) Thanks, - ssp