Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4366698ybg; Mon, 21 Oct 2019 07:58:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxd/HxrjWrIv87px2iHmiHMq9usM594Wf+UBnglesL6CJOLEBmoGw3HyHE8BInzamFcPP7z X-Received: by 2002:a17:906:5e50:: with SMTP id b16mr22313584eju.156.1571669921872; Mon, 21 Oct 2019 07:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571669921; cv=none; d=google.com; s=arc-20160816; b=nqMFHHGopk97bdlatnSPvoM3y1eNpggofGK5P1lIsWwkvGNqacQJ1kf13u2B3Dl0QW eOtWU7hxEiR6d599gwe2YZif5aPrZZN95sLZh1uukGQ8cCcB3Ftd/4RA0wz5nPTl4rVo y69loGr2nMlPt3HaaUu1sYHNf1ZlP8HsDHi4gCvxj0uJWQ0M8WSqqYN4crX6Z8m8V6m+ +TC45rghtJ1I0st0Ku35jzoQ+xHHQHiQF7qXrvMMEijQLszGYNIEVG0nI105BGt9cptZ Bw5Wb9Sh65Xujo03qbT5A4DT6LA649gyr/GsDIrX3JRy1iWV2eCHUuO/+L0NdSSFIkvU mfHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xl5HbtCvAk9GKynQL9GOsijJT7m6YA6GZF9QqoAexoI=; b=tyObmQG5Xm/8O1A2lEtgZWWnHUfzJEZk/jRJrLCNZB20shQKc+mU9dnqQj5971zJZD PnLr81DdF1a/YQWZsTbBrlyn2STcbeZEgoB+0dsBLZkTYLi2g0LM20PJaYKBc4hKmKbD oAeWuuCwmI8xqdkHATIgRxjP607yIlXbmS7TEDJOSygmXq74+V++87jUSEILbXfGupin DRPgxr7EqWrz5ZWQiisbepW6LqeDODY21jxhndVpbrp0w/DM7ciUTLxwUTNU2NmHEMNn 5xmxQcFCPz8Id1o00MzGVmBJ+I/XXszmYKdjJtF8x2lR5AhgGMH7CLMUd15VjtIzkVbu D5YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DoMy1wWt; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b25si9266300ejb.49.2019.10.21.07.58.18; Mon, 21 Oct 2019 07:58:41 -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=@linaro.org header.s=google header.b=DoMy1wWt; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727739AbfJUO6E (ORCPT + 99 others); Mon, 21 Oct 2019 10:58:04 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:36394 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfJUO6D (ORCPT ); Mon, 21 Oct 2019 10:58:03 -0400 Received: by mail-ua1-f65.google.com with SMTP id r25so3897234uam.3 for ; Mon, 21 Oct 2019 07:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xl5HbtCvAk9GKynQL9GOsijJT7m6YA6GZF9QqoAexoI=; b=DoMy1wWt5SqZIDChScV+zdd7Y/Ie0TLM9sKJrQs2S1hZ+hsiLtUtPUHxCUMMEX8LbO vb3opcGd+/Na4K9DSLQaZaOK1JHr+l+jy0YE6BUfkWll6cIaz78qArRQZsm7zaV6jF/q TbEH7N0DzGXwR4FJv02eq9B2qrJXTP9myHnx6zDjUn3k1fmT6lHKNdfhK6YZjOjXQwxm iJJgca2JS9CzzeIFrgiqXAR40ulixXCiblT2rmpxPf0JYOF/sCaQT7s/wSVAZLyIo2LY r0x2B56H4BEb0qhbjRqzLE0aXuVfEbeXRJz5/OEopQxtmNJmODXX5kZIg130P9JUkZ+H NMQQ== 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:content-transfer-encoding; bh=xl5HbtCvAk9GKynQL9GOsijJT7m6YA6GZF9QqoAexoI=; b=mi/rCRODoflbNURTo2FN3hUQcH28FUKpynuIzFGale9YLXCOvzzD4fQX+lb+ENPS3p 8YfDTO83xRCM/dNhJv8jN0fx4DG1TowqNfb28l1HGZmlc5ohSVDMTeqVU0AW/0rL/0Nj 0DUBrrh0XnPzOdmwK3NTMAMUWZ/3RCcQRueQjvjikZhj5+CV+CCBYyrWi7rpf9N//OCy 9hnjhlBNmbvMD2GVM/vA4VoJY/vv4p0TuPokaPvGtEZA0TUGNSaaKygO95G1bs/LcZtq tASQidAqkFPxkv7FRA4rT4+sySvnwjC29Dz4WpLar3RShDYMJg7LfulgODg2/L3j1GST n+xg== X-Gm-Message-State: APjAAAUFsCYoDJOWByL17hNwwLsES6BxObQHPGavk7vkeberIV0IFvg1 Dsj6qt0oqeDXQaYIvurYYuwjKNO3tjZxKa18jobykQ== X-Received: by 2002:ab0:331a:: with SMTP id r26mr6107644uao.104.1571669882589; Mon, 21 Oct 2019 07:58:02 -0700 (PDT) MIME-Version: 1.0 References: <5DA9EE2F.4030603@zoho.com> <47f6-5dab7580-33-5680128@176712317> In-Reply-To: <47f6-5dab7580-33-5680128@176712317> From: Ulf Hansson Date: Mon, 21 Oct 2019 16:57:26 +0200 Message-ID: Subject: Re: [PATCH 6/6 v2] MMC: JZ4740: Add support for LPM. To: Ezequiel Garcia Cc: Zhou Yanjie , Paul Cercueil , linux-mips@vger.kernel.org, Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , DTML , Rob Herring , Paul Burton , Mark Rutland , syq@debian.org, Linus Walleij , armijn@tjaldur.nl, Thomas Gleixner , YueHaibing , Mathieu Malaterre Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 19 Oct 2019 at 22:44, Ezequiel Garcia wrote: > > On Friday, October 18, 2019 13:54 -03, Zhou Yanjie = wrote: > > > > > > > > > > I also have a general question. Should we perhaps rename the driver > > > from jz4740_mmc.c to ingenic.c (and the file for the DT bindings, the > > > Kconfig, etc), as that seems like a more appropriate name? No? > > > > I am very much in favor of this proposal. Now jz4740_mmc.c is not only = used > > for the JZ4740 processor, it is also used for JZ4725, JZ4760, JZ4770, J= Z4780 > > and X1000, and now Ingenic's processor is no longer named after JZ47xx, > > it is divided into three product lines: M, T, and X. It is easy to caus= e > > some > > misunderstandings by using jz4740_mmc.c. At the same time, I think that > > some register names also need to be adjusted. For example, the STLPPL > > register name has only appeared in JZ4730 and JZ4740, and this register > > in all subsequent processors is called CTRL. This time I was confused b= y > > the STLPPL when I added drivers for the JZ4760's and X1000's LPM. > > > > I am very much against renamings, for several reasons. As Paul already me= ntioned, it's pointless and just adds noise to the git-log, making history = harder to recover. Driver file names don't really have to reflect the devic= e > > exactly. For the compatibility list, it's far easier to just git-grep= for compatible strings, or git-grep Documentation and/or Kconfig. I have no strong opinions. What matters to me, is that people agree on the best option, based on a case by case discussion. > > Renaming macros and register names, is equally pointless and equally git-= history invasive. Simply adding some documentation is enough. Sounds like documentation is what people prefer here - and the DT doc seems already fine in regards to that. Perhaps some more words added to the header in driver's c-file could be and option to consider, as today it only mentions "JZ4740 SD/MMC controller driver". Anyway, it's up to you. :-) Kind regards Uffe