From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751833AbdIOB4y (ORCPT ); Thu, 14 Sep 2017 21:56:54 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:57126 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbdIOB4x (ORCPT ); Thu, 14 Sep 2017 21:56:53 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.61 with qID v8F1unpi011793, This message is accepted by code: ctaloc0852 From: =?utf-8?B?5Yav6ZSQ?= To: Lee Jones CC: "linux-kernel@vger.kernel.org" Subject: =?utf-8?B?562U5aSNOiDnrZTlpI06IFtQQVRDSF0gbWZkOiBydHN4OiBBZGQgc3VwcG9y?= =?utf-8?Q?t_for_RTS5260?= Thread-Topic: =?utf-8?B?562U5aSNOiBbUEFUQ0hdIG1mZDogcnRzeDogQWRkIHN1cHBvcnQgZm9yIFJU?= =?utf-8?Q?S5260?= Thread-Index: AQHTKG/HoTto5Co5jUe1DnQ8RZIjNqKzhyqAgACiQAD//5o3AIABcFZA Date: Fri, 15 Sep 2017 01:56:48 +0000 Message-ID: <2A308283684ECD4B896628E09AF5361E01A72D45@RS-MBS01.realsil.com.cn> References: <1504853864-32310-1-git-send-email-rui_feng@realsil.com.cn> <20170914075713.epamxuwllaiaquxj@dell> <2A308283684ECD4B896628E09AF5361E01A72C9B@RS-MBS01.realsil.com.cn> <20170914113338.ciag27eysitavcd3@dell> In-Reply-To: <20170914113338.ciag27eysitavcd3@dell> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.29.40.150] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v8F1v0nb022984 > On Thu, 14 Sep 2017, 冯锐 wrote: > > > On Fri, 08 Sep 2017, rui_feng@realsil.com.cn wrote: > > > > > From: rui_feng > > > > > > Add support for new chip rts5260. > > > > You are adding over 600 lines in this patch. It desearves a more forthcoming > commit message. > > > > What is it? > > What functionality does it provide? > > What other subsystems are involved? > > Could it break something else? > > Does it have any dependencies? > > Etc etc. > > > > > Signed-off-by: Rui Feng > > > --- > > > drivers/mfd/Makefile | 2 +- > > > drivers/mfd/rts5260.c | 543 > +++++++++++++++++++++++++++++++++++++++++++ > > > drivers/mfd/rtsx_pcr.c | 8 + > > > drivers/mfd/rtsx_pcr.h | 1 + > > > include/linux/mfd/rtsx_pci.h | 81 ++++++- > > > 5 files changed, 631 insertions(+), 4 deletions(-) create mode > > > 100644 drivers/mfd/rts5260.c > > > > > > diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index > > > 080793b..d0f06a3 100644 > > > --- a/drivers/mfd/Makefile > > > +++ b/drivers/mfd/Makefile > > > @@ -17,7 +17,7 @@ obj-$(CONFIG_MFD_CROS_EC_I2C) += > cros_ec_i2c.o > > > obj-$(CONFIG_MFD_CROS_EC_SPI) += cros_ec_spi.o > > > obj-$(CONFIG_MFD_EXYNOS_LPASS) += exynos-lpass.o > > > > > > -rtsx_pci-objs := rtsx_pcr.o rts5209.o rts5229.o rtl8411.o > rts5227.o rts5249.o > > > +rtsx_pci-objs := rtsx_pcr.o rts5209.o rts5229.o rtl8411.o > rts5227.o rts5249.o rts5260.o > > > obj-$(CONFIG_MFD_RTSX_PCI) += rtsx_pci.o > > > obj-$(CONFIG_MFD_RTSX_USB) += rtsx_usb.o > > > > > > diff --git a/drivers/mfd/rts5260.c b/drivers/mfd/rts5260.c new file > > > mode 100644 index 0000000..53f2838 > > > --- /dev/null > > > +++ b/drivers/mfd/rts5260.c > > > > There is way too much code in this file to be an MFD driver. > > > > It's a card reader driver (as stated below). > > > > I think this entire file needs relocating somewhere else. > > Your reply is confusing, since it does not quote my previous messages. > > Please fix your mailer to quote the text you are replying to. > > I think I've asked this before. > > > Many other drivers, such as rts5209, rts5227, rts5229, rts5249 and so on, > are in the same place. > > If I put rts5260 somewhere else, other drivers should also be relocated, this > will lead to a much bigger modification. > > So I think put rts5260.c here is better suited. > > Just because we made mistakes before, it doesn't mean we should keep > making them. I think the correct solution is for them all to be relocated. > I'd like to relocate them following two steps: 1. Relocate rts5260.c first and don't move other files. 2. Relocate all other related files. Each step for one patch, and where do you think is suitable for rts5260.c? > > > @@ -0,0 +1,543 @@ > > > +/* Driver for Realtek PCI-Express card reader > > > + * > > > + * Copyright(c) 2016-2017 Realtek Semiconductor Corp. All rights reserved. > > > + * > > > + * This program is free software; you can redistribute it and/or > > > +modify it > > > + * under the terms of the GNU General Public License as published > > > +by the > > > + * Free Software Foundation; either version 2, or (at your option) > > > +any > > > + * later version. > > > + * > > > + * This program is distributed in the hope that it will be useful, > > > +but > > > + * WITHOUT ANY WARRANTY; without even the implied warranty of > > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > > +GNU > > > + * General Public License for more details. > > > + * > > > + * You should have received a copy of the GNU General Public > > > +License along > > > + * with this program; if not, see . > > > + * > > > + * Author: > > > + * Steven FENG > > > + * Rui FENG > > > + * Wei WANG > > > + */ > > > > -- > Lee Jones > Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source > software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog > > ------Please consider the environment before printing this e-mail.