Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2352592ybh; Mon, 9 Mar 2020 04:16:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtS9gBA2n6UDSO+A6J3TlJbJLrtGs1s8m3qA3ERLjvlb0NM70ZCTfLWUTUVoWSRbBPd/lQs X-Received: by 2002:a05:6808:5c7:: with SMTP id d7mr588391oij.136.1583752575582; Mon, 09 Mar 2020 04:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583752575; cv=none; d=google.com; s=arc-20160816; b=UqZMaAgq1QSce6ABz3upEG4nqz84339k/bjQvxouOaJCar/0ESG6kgn1mQCBDyCFPD QcbANwTM5PTK3PQ2UH1oMecuI0iyOKpQHh240Ye1173zTmWSCTQ2ENNXpoOGMxaovQTk HILOe80H76ezOQ0NCDfhkMu++ic9wJgiA6Qdg3WSS7QLlx1ewPoIr7inz3XqD9nqWoCM Jc2M1/yH94A+XU+KpdCWC42Mr6Mw/ulcWHMlQNaEMwhfN0HaV8FIo5aDwzRTqmAljymP z3bWCkbYerqTbMdeKxZlUJjDkhaU574RudMwurFsDfoLkYFvObGQQZtyKc2mf649JKXA Tvfw== 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=/Z9IntIaAH0gIeT3+u7wpsy0raBlZ5rU0UOJH1kx/N0=; b=SWC9lpotZN3SdNFVqAcBp1ytc3Gjw0GThGS+XIqPh9MTumtSyoQ8BwAfl/CIRLE5W5 NAHY4XXtvhQCjZxT12Yos0HWuplze5Jj4AwxzlT9wBx7ptzDUWZcU3kUDfpCnudV0PHP 2HRQaBY2Dy+Q/mWzYN/psUn87qvw8SZBOcvxBzV1zsvfbVNcXRIT0jXblLxWeZR3ZfVO E+Ua6MLy+wIAbVqLagdMfQbhKkhHRFfrQAYxS/qwAAV5djMUXKkoysr2nzmVJxeWXtsm 3/ES7055OTA5hRXjs9i0GSw6gu+nlgBmI9q/WG6iVv7Dys+YUZUmeMs78PtEHk7e6d8b A1ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fEhO9+lH; 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 18si3731520oiq.71.2020.03.09.04.16.04; Mon, 09 Mar 2020 04:16: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fEhO9+lH; 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 S1726605AbgCILPo (ORCPT + 99 others); Mon, 9 Mar 2020 07:15:44 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54369 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbgCILPn (ORCPT ); Mon, 9 Mar 2020 07:15:43 -0400 Received: by mail-wm1-f66.google.com with SMTP id n8so5356771wmc.4; Mon, 09 Mar 2020 04:15:42 -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=/Z9IntIaAH0gIeT3+u7wpsy0raBlZ5rU0UOJH1kx/N0=; b=fEhO9+lHjep+JjEc7uneYDDO1Ri2n5X4rLu0msbWHrfcEJqgwj9DhmiKriYDiubLiT qv53KMLQWdh0dcpQNfWct4l8BAN5EoKiDxpMBIpOotQxG5tDyY3UHKuvU5eexPsnE0yS sbhz0+n37JoEC2FCjVAm7CnL31Bzfch3QPsyyyaGlUYc8HhRNmEKtD143hbaBigob3ZZ kfkLzgP03LxK+JojSmpe4X7sOuXTScbKtYzUObY7+cmjeSDoUHA2qhYZtiC5bPRvrRf4 QpUva4ZsnEVH86ZuGdN1BxxEUKfVjrVpRf4nPGCTWWfn5Zv2iY0CKNVNLEI7y3lKpNrr sinA== 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=/Z9IntIaAH0gIeT3+u7wpsy0raBlZ5rU0UOJH1kx/N0=; b=kaV8kr8de9phBNh/ZhKUSqPdqLs0I1zw4QDlawg46gvJ9zTh46iHolVKFep+UgWP6d XXTkH5uu05aB8/2tir/OLC2qKFPkppIGzUaLjjtbieMb0cGX1EA3oCnGr8NxEBzUvlAv bBthz/mabHMoWivLvzyRhaSOHgXXLwHH5nEljTe9U2nX5At5usMx+Ey36lR0fmt+j7oE gTqL/yX5EciM7kWXkZXgWf63+yXkDsz7N4NYXOmzJ/46MslihxU0ACbN9rSZvArd1Lxj pr9+rf9GhFNh7RIhFC9iCQfLP1mxS4VKrkq5PzUzrO+Wc3LgXOZeE3hbCgnAdpPvVGB3 vwyQ== X-Gm-Message-State: ANhLgQ0m68++lQmg7BCHWAQqBus0jE+ipY2f8ERVhVR1C4Y7p5fVZnlV 7ECOXA7f8yyKK2Dx0M2ee1zqmYGpajOzVyuCzfk= X-Received: by 2002:a1c:7e08:: with SMTP id z8mr5445439wmc.166.1583752541669; Mon, 09 Mar 2020 04:15:41 -0700 (PDT) MIME-Version: 1.0 References: <20200305103228.9686-1-zhang.lyra@gmail.com> <20200305103228.9686-2-zhang.lyra@gmail.com> In-Reply-To: From: Chunyan Zhang Date: Mon, 9 Mar 2020 19:15:05 +0800 Message-ID: Subject: Re: [PATCH 2/2] tty: serial: make SERIAL_SPRD not depend on ARCH_SPRD To: Geert Uytterhoeven 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 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 Mon, 9 Mar 2020 at 18:32, Geert Uytterhoeven wrote: > > Hi Chunyan, > > On Mon, Mar 9, 2020 at 9:43 AM Chunyan Zhang wrote: > > On Mon, 9 Mar 2020 at 16:01, Geert Uytterhoeven wrote: > > > On Mon, Mar 9, 2020 at 2:18 AM Chunyan Zhang wrote: > > > > On Fri, 6 Mar 2020 at 20:41, Geert Uytterhoeven wrote: > > > > > On Thu, Mar 5, 2020 at 11:33 AM Chunyan Zhang wrote: > > > > > > From: Chunyan Zhang > > > > > > > > > > > > Remove the dependency with ARCH_SPRD from sprd serial/console Kconfig-s, > > > > > > since we want them can be built-in when ARCH_SPRD is set as 'm'. > > > > > > > > > > Why would you want a serial driver for a specific platform to be builtin, > > > > > while all other platform support is modular? > > > > > > > > Oh, that's not this patch means. > > > > > > > > We just want serial driver can be builtin for any platform, so it > > > > > > What would be the benefit of the user to be able to have the SPRD serial > > > driver built-in on any platform? AFAIU, it supports only Spreadtrum > > > platforms. > > > > Right, it does support Spreadtrum platforms only indeed. > > Like I said on the replay to patch 1/2, simply because I want serial > > driver can be builtin all the time, no matter ARCH_SPRD is m or y. > > OK. > > So shouldn't the dependency become > > depends on ARCH_SPRD || ARCH_SPRD=m || COMPILE_TEST Oh, right, this's better than just removing dependency to ARCH_SPRD, but considering that this patch has been merged into Greg's tree, I will post another patch to add this. Thanks for your comments! Chunyan > > instead, to avoid asking the question when you're not building a kernel > plus modules for Spreadtrum platforms? > > > > > > should not depend on a config which can be set as 'm' (i.e. ARCH_SPRD) > > > > , otherwise if the config was set as 'm', the serial driver can't be > > > > selected as 'y' then. > > > > > > I ask about that as a reply to PATCH 1/2. > > > > > > > That's what I mean. > > > > > > > > > --- a/drivers/tty/serial/Kconfig > > > > > > +++ b/drivers/tty/serial/Kconfig > > > > > > @@ -1452,7 +1452,6 @@ config SERIAL_MEN_Z135 > > > > > > > > > > > > config SERIAL_SPRD > > > > > > tristate "Support for Spreadtrum serial" > > > > > > - depends on ARCH_SPRD > > > > > > select SERIAL_CORE > > > > > > help > > > > > > This enables the driver for the Spreadtrum's serial. > > 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