Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3258443pxb; Mon, 16 Nov 2020 09:40:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlE5qPvYp/xdBfQ6VCyuMdXtA3wmHyX0gu3lgBrUHdsTVF8nVkk6cGYB1pe7jeLRhaY2Yg X-Received: by 2002:a17:906:b852:: with SMTP id ga18mr17123335ejb.80.1605548430649; Mon, 16 Nov 2020 09:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548430; cv=none; d=google.com; s=arc-20160816; b=TMGh4n52EtK39uOddd02ueMbXR7oA4Qi90TWRzexdfnXWH2acWIF4DHpNHy/SRuMSM TBesvDpTKHY7+e6MvgCH3EEMUgGmWI8s1HEeWJA6LFtXotvm2T7mQWzfLOhexRw/iFFV 7tPw3wSTVxSPNZDv5odS19f8GY1skhASaU2fBXZFAv2NOyb9gjNc/DlQAG9yuNDaVTja FaVk28YnZlkjhjESeWRLgPhq82ThalE9W7MV90gNVdNkKH15A8XlHEjgcDnB0Tn+h6Oe U/c+DvcSVdkx4tFONz6KEgjfNj0yt+xssWsVKFRcw4zn9qhDWXadEkCbypTwOuSbRT7h SuJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=OnxowwA9L99toY1zxDIzoHiWmTWxomxHhzKLnADiSAQ=; b=AHFPxYaPaSICf3IEa0XJbg0V/yKoPObCV+2kG2NZuj6sp0FZTwxkEvLXVnuzomTzYC CpBRdM4HJGeLyUuEUftYLzdjXCkdpa9JjHJETM1fXFjvIsIm6FVRi37nS90F5NU5EePQ bd8c6dQcB9bG2PqIHMQzVHDQo982NmwC3FzndfSY7QTaix1kVLJDNZH0oViOfZVlNFIX hYMlOeetbquXkjHPzl49rU3chqtCtDCwh/mnRInOMm4tnuQsdTH8ZCf0JC2USBPRJF3j Zpned0Dy8CnASXnYj4ybHBiiRtwkCJMk4DAeIqiHQuSuSOzjRowDyM8E2AsmDG9HiGaG pFsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si11676493ejx.185.2020.11.16.09.40.03; Mon, 16 Nov 2020 09:40:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732979AbgKPRgV (ORCPT + 99 others); Mon, 16 Nov 2020 12:36:21 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:37031 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731590AbgKPRgU (ORCPT ); Mon, 16 Nov 2020 12:36:20 -0500 Received: from localhost (lfbn-lyo-1-997-19.w86-194.abo.wanadoo.fr [86.194.74.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 9B3BF100043; Mon, 16 Nov 2020 17:36:18 +0000 (UTC) Date: Mon, 16 Nov 2020 18:36:17 +0100 From: Alexandre Belloni To: Andy Shevchenko Cc: Claudius Heine , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Henning Schild , Johannes Hahn Subject: Re: [PATCH v2 1/3] rtc: rx6110: add i2c support Message-ID: <20201116173617.GV4556@piout.net> References: <20201112130734.331094-1-ch@denx.de> <20201112130734.331094-2-ch@denx.de> <20201116144343.GA1689012@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201116144343.GA1689012@smile.fi.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/11/2020 16:43:43+0200, Andy Shevchenko wrote: > On Thu, Nov 12, 2020 at 02:07:32PM +0100, Claudius Heine wrote: > > The RX6110 also supports I2C, so this patch adds support for it to the > > driver. > > > > This also renames the SPI specific functions and variables to include > > `_spi_` in their names. > > As practice shows this is not the best approach. Can you ratqer split it to > three modules: core, spi, i2c like it's done in many other cases (esp. IIO)? > Actually, I'm fine with having everytihn in the same file because separating everything out means having 3 more files per rtc supporting both busses in an already very crowded folder. And I don't think being able to remove support for one or the other holds any actual value. > In Kconfig you just leave same option with two additional ones like > > config ..._SPI > tristate > default SPI_MASTER > depends on SPI_MASTER > > config ..._I2C > tristate > default I2C > depends on I2C > > -- > With Best Regards, > Andy Shevchenko > > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com