Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp824291lqp; Thu, 23 May 2024 00:34:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXd0B34RLku116qaGFhRdRA2nkgMyX+3Mzl9oZNLDncRbLU/QzqJJ+c/7qusQVF/9Wm656/z17ovC3VfEOeSdfvdZDRvgebRFGYB68P4Q== X-Google-Smtp-Source: AGHT+IG+BCp9YXOHDsazI+pohsadqaSveMYz5mb5pKEYBlizXcubwz2UGLYWbte3Tn4cfRzNStsP X-Received: by 2002:a17:90a:881:b0:2bd:b184:6f23 with SMTP id 98e67ed59e1d1-2bdb1846fb8mr3141443a91.42.1716449648975; Thu, 23 May 2024 00:34:08 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdda350e93si1061236a91.185.2024.05.23.00.34.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 00:34:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-187095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187095-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 75893B218C5 for ; Thu, 23 May 2024 07:34:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2111B13C9DA; Thu, 23 May 2024 07:33:55 +0000 (UTC) Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A4E13B29D; Thu, 23 May 2024 07:33:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716449634; cv=none; b=JC5NogzkPA7Y8XVUne1aJWo38Eu0CYdSz+oSUZkA2nW5lsPHP5Txiiiwa4BJKnfGUX5hhWyubShLdKb5pqIR8c8ez0i2iMGWoz3APmZytJXYQ3GlqO2xOydhbocmzxKn5mYXWSv/W14cd62egweyxuXuXb333aSmNOg9h1PPLYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716449634; c=relaxed/simple; bh=vq/FLuv6VbT6g2NgYDQa9Rizy3VZXftahQHFAk9MtV0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ryVnZVb6rgszwuqNU0YnJtOBnpdveDRJYIQW+qgGKe8JfpohUuiUh+ePFU3yLhxhcu7KOb7NfkOz+wfdu6OJhlm0edGcqexbae8bKOg9FStTmoFYQPgGtJwrPQ0JPnh68x4LDtrHBwHjJmlU+wAsV8uwHUzmL/UpKY6sIra4ITg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-627dde150d0so18146707b3.3; Thu, 23 May 2024 00:33:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716449630; x=1717054430; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r9ll3Q17E9S4QIKzi6nGnMviZ6Gac1YwMmcDufGIpEg=; b=jSnr9jNwqMwX1OxyZmffd/sL8RD6WywWq7b99EZRMImMGt1IiGts8bOG9VmNTy0I0T 3fDb9fgTeUiZlLrZT7DUhMbOqZw73JRZs5iQKLLSD00arL16kvOKzKdt/V5jlcWKBJew fRPfCW/Ue49c3wCQ89FFx6I/o23MXvtMP46DmPyz5MG1JejTXyK9CW+kozZAOp24Xwr2 0rzee4XdbWVGjPl8QwNIkfPpIlO2LNdWjOW/CiLzCBgt8bHMvbBYdR5HaPYCgE3MciAp aSooMmVHe5eWkiGazlOiQWqzgXEcsVpxKPDNKcRb9gI1Mk2zQ8/XHnk1BYl7T/hvYaEM TFrA== X-Forwarded-Encrypted: i=1; AJvYcCUlHJOXI3fTaZTpl2gHtHYVjG70UbRbPzITRniiJaGi6Mgai0R9XLJBosccShvD4O0z8kBQhO3O7ycA3CwmPPXjrKEmQc0a+kRNTRzrcLMKQuukScNW+4swMcXZdMmFSlwiZio0mxDX2Qt5 X-Gm-Message-State: AOJu0YxOv0JJT/lcdEd4DwKFZRZSJRqfDdNKGR1U6S66aQvHv+RdX8tj E7Tff0zi7xuGTqKEbBOS+4G9NkhzFi7AIVlNNQzJEV+HeADT5x5IuQDxME2A X-Received: by 2002:a05:690c:fca:b0:61b:3484:316b with SMTP id 00721157ae682-627e46ca8a9mr56024117b3.14.1716449630514; Thu, 23 May 2024 00:33:50 -0700 (PDT) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6209e24680csm60791807b3.6.2024.05.23.00.33.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 May 2024 00:33:49 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-df4e0d8fa10so1714806276.1; Thu, 23 May 2024 00:33:49 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXRrwQxyj4AzFt8lffLP+CDnSgyxg03BdyrIBDdDAYbSfSzcZtiR8cIrgAbHFyawCGvaxfwIJE5fBOOoj+Ti+eYbF8ckAgHfdLSj/9ANvhjRpltFfTUPT59TuatPfUq/2iiTdF4jZTPPxlv X-Received: by 2002:a5b:c52:0:b0:deb:cd02:3688 with SMTP id 3f1490d57ef6-df4e0db8368mr4502046276.48.1716449629677; Thu, 23 May 2024 00:33:49 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240409154253.3043822-1-hugo@hugovil.com> <20240409154253.3043822-4-hugo@hugovil.com> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 23 May 2024 09:33:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 3/5] serial: sc16is7xx: split into core and I2C/SPI parts (core) To: Andy Shevchenko Cc: Hugo Villeneuve , gregkh@linuxfoundation.org, jirislaby@kernel.org, peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Hugo Villeneuve Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 23, 2024 at 3:11=E2=80=AFPM Geert Uytterhoeven wrote: > On Tue, Apr 23, 2024 at 12:37=E2=80=AFPM Andy Shevchenko > wrote: > > On Tue, Apr 23, 2024 at 1:01=E2=80=AFPM Geert Uytterhoeven wrote: > > > On Tue, Apr 9, 2024 at 5:48=E2=80=AFPM Hugo Villeneuve wrote: > > > > > -config SERIAL_SC16IS7XX > > > > - tristate "SC16IS7xx serial support" > > > > + tristate "NXP SC16IS7xx UART support" > > > > > > Hence this replaces SERIAL_SC16IS7XX_CORE by SERIAL_SC16IS7XX, > > > so arch/mips/configs/cu1??0-neo_defconfig needs to updated. > > > > select SERIAL_CORE > > - depends on (SPI_MASTER && !I2C) || I2C > > + select SERIAL_SC16IS7XX_SPI if SPI_MASTER > > + select SERIAL_SC16IS7XX_I2C if I2C > > > > > So if SPI_MASTER or I2C is enabled, the corresponding SERIAL_SC16IS7X= X_* > > > subdriver can no longer be disabled? According to > > > https://lore.kernel.org/all/20240403123501.8ef5c99f65a40ca2c10f635a@h= ugovil.com/ > > > you did want to support that? > > > > I believe it has been taken from one of the IIO drivers as an example. > > Looks like a bad example to follow: > 1. The driver question now pops up if both I2C and SPI_MASTER > are disabled, > 2. What if SERIAL_SC16IS7XX_CORE is builtin, but I2C and/or > SPI_MASTER are modular? > > I believe the only way to fix that is by letting the sub-drivers select t= he > core driver, like before. FTR, this issue is now upstream. Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds