Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2317694ybh; Mon, 9 Mar 2020 03:33:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuFLZhTbm75xCYXNan5l/Jheswxop22bWjKRy7SYm9ErMykMuOqx/dSWSfFVVFMevHBIV/c X-Received: by 2002:a9d:6a9a:: with SMTP id l26mr12900635otq.104.1583750018232; Mon, 09 Mar 2020 03:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583750018; cv=none; d=google.com; s=arc-20160816; b=ehSvkr4pg4hee9nfjHnaLUqlHmSgkSGymhCC7UnNqXHPkESTHBHBiq+PyrEsoPwMG8 4hQ6+jhHbvHksub6m5+KonARGmPQBwbrVrEByIpCfhTzL2DOyPon7rnYApxK/AhDyAAM 0MJN/bn84a0SgxpN2TRB19U7qaXhlGfGJbX9B/rmyZ50Uvo5nOimUL/2przKpEIUH8sU 00VV9oJ8/Q4t6yvdz2F7NRRjTTbIsDayasbxWwNqgZdpSx3f+IYhqJKSnpb17HAm4VfZ UyNmmZe3UURuvMXJ3ywVEN9ZalqV0LDwa2bZlfBNU9ZFbaCxFRZY/ipeyuddeaMUOQGH FsJw== 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=W04cd8gXdHqCmadUdyg5wxomjkoAadthvQ2P3gMSd+8=; b=I/ZsIukggvVYxqvVh+AbQS+b34ThCW/P+URo1GwR0n0033Bb5aL/vInXFyoM7JmroE A7X9CjMf9axAVkyxk+bmd3Nsdl6FTvCtp8N2MU2HcuiRfv9NV6WR2LHw9j9BnS7cR3dP C8ROjWX7VNziBmpwVPtBUDO6W9JfHX+RA/vGg7sn/YjoNPgIhkE4i+hO6g+vNuCDQW+B asoqsR0s0lbuC2AsDHHtmjuFL6lhjPyA8DB/5N63viqcX54V7eqklKcG/A6t1zBTPbUu Kl7TFIItPxUZSTHWDhnm7XM7effsPIOTywMA/ZaCNEnSjaUoM8G2Q1OSPm/ty0YU2ewW SGSQ== 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 o64si3641184oib.72.2020.03.09.03.33.27; Mon, 09 Mar 2020 03:33:38 -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 S1726857AbgCIKck (ORCPT + 99 others); Mon, 9 Mar 2020 06:32:40 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:38862 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726838AbgCIKcj (ORCPT ); Mon, 9 Mar 2020 06:32:39 -0400 Received: by mail-ot1-f66.google.com with SMTP id i14so9037566otp.5; Mon, 09 Mar 2020 03:32:37 -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=W04cd8gXdHqCmadUdyg5wxomjkoAadthvQ2P3gMSd+8=; b=VenxMpC4NJdiKmHAUl+WZItPzOKwfDxhxwZmqqx/Fiu4buEOTwBD3XJdR2B8eQCqE/ XYg/XQrEVWKJuGTBtHa8tOw/YPZNGt6ymrRdvMM85Yp1/DbWIAK0LrL/gt3EVBlLI0R/ mg7ulM3fATDKw5j4ruKbM+qSwO6xePcOGjfTRY1on+Bk+4V0Z/c5p4nUPR5Z39vspOyO Do4HIa1wtKT/iUWUtP5BdibDTx9Df74aHdT3ZqD7RRLO6UNeUtQrcegOT6S+c92f3xty 5Q62TTOQQf6Xdo3TIXu9t3dMrCLBqf7c3at8e62B9VhrM5pkG1z3srcANX3kSUWvjzYb gPpg== X-Gm-Message-State: ANhLgQ2F59feRebgmGH+riuRa5txRasqAYYs74SlMfRplJVjmJ8+lcj3 2BHyW8CihIif/O1XUfyvz+E7rpctpt/NBtAfdnY= X-Received: by 2002:a9d:1708:: with SMTP id i8mr10206182ota.250.1583749957218; Mon, 09 Mar 2020 03:32:37 -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: Geert Uytterhoeven Date: Mon, 9 Mar 2020 11:32:25 +0100 Message-ID: Subject: Re: [PATCH 2/2] tty: serial: make SERIAL_SPRD not depend on ARCH_SPRD 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 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: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 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