Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp240810lqb; Thu, 23 May 2024 17:24:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6FeWOdGnquE6HVXzeyE9TrryfXjni8vNACJHbQmxUVLrxQjypuvu2h5SJFybi0jBg6lTHQ7a36PjzHgd1JAiPnITBC4q+K45lBvLGPg== X-Google-Smtp-Source: AGHT+IEOpjM4R9eh/0g2sy8YV8sMceVPh5DvmqC9vvwPxB9uMmGRR8Anw1RZE5RRlOXypTodE5yI X-Received: by 2002:a54:4188:0:b0:3c9:6abd:3e06 with SMTP id 5614622812f47-3d1a7552710mr871536b6e.39.1716510243138; Thu, 23 May 2024 17:24:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716510243; cv=pass; d=google.com; s=arc-20160816; b=by+0nhaD22SBCSl4dDdcqmFU13uQ0X2n7evF69/iveGdsxygbC3tiOSrFNTBZsLw4o Yy2JibXJ8Tgo27m+3XNrxTUeIcr2JRiUQXF23hm6Mhc2QxdyiuoL/nuSgdnI85jcoAbM 88jM2EW9YGuo9BEswA9eW38ooyLazvmFdQCUnKIssUCx0VDF/V0pLpMDohvz+g3VAm9h FPxbYXOfsVqn78EEY4dDOMhiKX5ghjrmtDUWIyLvCJJiMYZ9ZxBn2U9pH4hd4VIv5kit Z8BNnxCp0i/VvbwU39Ucx7SX3/uTbdBXC0bVTtncuivzxfaqDH8fvfXyGFTyj0FvcJOC ouow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :cc:to:from:date:dkim-signature; bh=bsNx66CWNPzOVgmvYU9g1FX7pZwySMGx2SwEOaCqt18=; fh=qKDUnqwokgZhiHxRo7+77GYsWzhnsKMQj4GsvjepjlE=; b=uxoTUgvyB2SqSUhLgt4lO7StD+/SxEGruhKcGM9EMd5t/6ndT5ePoyxd2mwVG7ZGYv mfEBNRV8dJc6dXP+TMuJMKzj1KCmuk/1rgZQQ2U+l6q8g6eSPRl1WdrDyId7wixzWbzR bTlUi+jIPcC56hwSbirWs1O+h63oDMHvw3wP94uJ5PeHrxGOYrOZMuDUuXy2Q/kmrfjy vvAuUfy+u3bhKc3Ue0BYM6MrhWjCXHVqK4P/ik8Lbd/XClcqg/BALJcFx1Pp2kNDHnwV PoTH2Tt5cv1jL/7QdNpazesqiKgtk1IiXtWQgAZpXFPjZ/H+60OuVPoVTWoGQiMyB10V MbBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=UU7k9q7j; arc=pass (i=1 spf=pass spfdomain=hugovil.com dkim=pass dkdomain=hugovil.com); spf=pass (google.com: domain of linux-kernel+bounces-188172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188172-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abd3e7a3si40171185a.517.2024.05.23.17.24.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 17:24:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=UU7k9q7j; arc=pass (i=1 spf=pass spfdomain=hugovil.com dkim=pass dkdomain=hugovil.com); spf=pass (google.com: domain of linux-kernel+bounces-188172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188172-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D75361C210C5 for ; Fri, 24 May 2024 00:24:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8671917C7C; Fri, 24 May 2024 00:16:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b="UU7k9q7j" Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78883EDF; Fri, 24 May 2024 00:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.243.120.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716509780; cv=none; b=bQE7LtQ4QHt904vhWb3DS+jIgMwQURDbTidJxREScEWIQp3gHwdXLBm6o8GCBErUmJuruebCzliEJdcd1cPo436Ho64EKjKZZ8rsneyft41EOe73DYDCbjzMrkrFxV3sBt+qPv6Cqcz7B51WAh+ct79c1Ckhvo1Ey5IYSPJeGW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716509780; c=relaxed/simple; bh=An7QDABjUyeXMgQPlCNFAn0hOnKqKCWC8bpn8L7lUmc=; h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Mime-Version: Content-Type:Subject; b=X5dhUfCinmUJ5tPYh8ty0TjGVJ5tifXR3PIK6PbLmD/psIu1ulxs9yMPBLDMv8OeCoPiM7kqy0//81mUYYg9D9NPvMWliPUpeio9XQh3WdeeqdnL4PTa5Nl/W9adGbVOdNki56Skm/kwzcpUQpdDaP7cAFOdxvCcmgWjNOJQwvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com; spf=pass smtp.mailfrom=hugovil.com; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b=UU7k9q7j; arc=none smtp.client-ip=162.243.120.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hugovil.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:Mime-Version:Message-Id:Cc:To:From :Date:subject:date:message-id:reply-to; bh=bsNx66CWNPzOVgmvYU9g1FX7pZwySMGx2SwEOaCqt18=; b=UU7k9q7jSmaQO8GSp3Mn4dAN7M ewoGgkcMukvFbu9FfUURLiQmeDOrlLsy/PjXUB71FI/+AcXQtwLMqxTawoLTs0ShmkSVj9CZblR9J H5iJaeQoztwlFxbMiCkVNKXBITVm0tviDm7Hn02FXtVdlHSvSO4WlQo7wzQFZ9VBR4GE=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:40780 helo=debian-acer) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1sAIIM-00054Q-1x; Thu, 23 May 2024 19:56:26 -0400 Date: Thu, 23 May 2024 19:56:25 -0400 From: Hugo Villeneuve To: Geert Uytterhoeven Cc: Andy Shevchenko , gregkh@linuxfoundation.org, jirislaby@kernel.org, peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Hugo Villeneuve Message-Id: <20240523195625.fa40049802a43a76dbc2a96d@hugovil.com> In-Reply-To: References: <20240409154253.3043822-1-hugo@hugovil.com> <20240409154253.3043822-4-hugo@hugovil.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 184.161.19.61 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -1.2 NICE_REPLY_A Looks like a legit reply (A) Subject: Re: [PATCH v4 3/5] serial: sc16is7xx: split into core and I2C/SPI parts (core) X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) On Thu, 23 May 2024 09:33:36 +0200 Geert Uytterhoeven wrote: > On Tue, Apr 23, 2024 at 3:11 PM Geert Uytterhoeven wrote: > > On Tue, Apr 23, 2024 at 12:37 PM Andy Shevchenko > > wrote: > > > On Tue, Apr 23, 2024 at 1:01 PM Geert Uytterhoeven wrote: > > > > On Tue, Apr 9, 2024 at 5:48 PM 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_SC16IS7XX_* > > > > subdriver can no longer be disabled? According to > > > > https://lore.kernel.org/all/20240403123501.8ef5c99f65a40ca2c10f635a@hugovil.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 the > > core driver, like before. > > FTR, this issue is now upstream. Hi Geert, I replied to you and Andy a few weeks ago about this (multiple emails with suggestions/explanations), and I even asked if you were satisfied with what I proposed, but never got anything from you, so I am still waiting on feedback to send a patch to fix this: https://lore.kernel.org/all/20240430090333.5c5f029553cabcdf699310cb@hugovil.com/ Hugo.