Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3340847pxv; Mon, 26 Jul 2021 01:45:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxagYeko9Lu8Qzr5/xRJKr2uZf2kPCuRRffsRKVVF7LC/BCJCpjQjhIwJpR75d+dpfE/OVo X-Received: by 2002:a05:6402:502:: with SMTP id m2mr20600616edv.57.1627289155349; Mon, 26 Jul 2021 01:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627289155; cv=none; d=google.com; s=arc-20160816; b=i8DUCpeWL2BSDK6EUlIOim2V5gfyP3EWg0S9IOBZzD/dd0Y8Kwbp0CzDtyzwZvZ5PB QA2Krjho9Vw/5lB65kc1h5Yv8HkjceWmp8+ewlYMByG7wa2sPqijJH+u+PxgLusz+Kz6 z1igNPQac7qglDoRD5qVJzl8av86uU5JZZ60td8HE4yeeCFZce5Ri2GJYt4jPm/ek6NS r4eoYjEpe33ksIZqchiRPxPOKPd9TyEqRBnoh/M/goG/4EFWX4p/KVd1VDvvoTfu8NOm Y+ch4ZIAHdE+ThDqtgJ/YcVOcePs+b41zp2iycGCuKILXLLVzv8dc20Ww05ktL3oTq2h Dtsg== 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:dkim-signature; bh=L6ZhUfuAjAn1I8wmtqCWo+PU+73Ev08yy15bz6lCGKA=; b=IlTWqRg14PD2RyLP7pku109sJqMSSYSXRK0AY+/1+FIDVHm3lT4ivcEtx3/CLnatBd QSoVddApUwEmR53+uutREsfl1QxUkPQq2Z47R5tD9k/j+RJyrRqOh8yTFTGBCN5OgVNq pc7DsopCTl0kmYdHm/5ujoZwLh40rFOa52LJPHNc4laNoSf8eKIK9wJmM8VRhngAEo7S rN1v+UYAmddZcLelr1xVNfDNol9+FDgFtInbegvYn5vbT6RffBVR5iWbB07MkyttdMdT r7rR55jzezTdCj3BatJHUcA7OtJqEnZFXI2yCVjbJBzAhKxRkDs7wBCjqbeq2iKh57Sk rJeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sr8FVQkZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oy5si7148485ejb.482.2021.07.26.01.45.32; Mon, 26 Jul 2021 01:45:55 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sr8FVQkZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232041AbhGZIBH (ORCPT + 99 others); Mon, 26 Jul 2021 04:01:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:54412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231916AbhGZIBD (ORCPT ); Mon, 26 Jul 2021 04:01:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6BF2960720; Mon, 26 Jul 2021 08:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627288891; bh=eIi3D0qYBSxKVqxpuYsQzma/OHI4Se5bOSS2/UNnPLk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sr8FVQkZVsLsxsAtQWpiCBOSjP1fcDX2jF40pRiF3lDP6qMM35ZTOqyiLaAvV23qB g8kBBOecYaXA5xFOLesrj0oyUiUcKr42p/53RYbufbeN9vOtWryPmx/zxFgyYdjMXl DSOOtuZQoBXjgf/dRC2PmP5E9rlLjM+TKKfw4LBA= Date: Mon, 26 Jul 2021 10:37:28 +0200 From: Greg KH To: Hayes Wang Cc: "kuba@kernel.org" , "davem@davemloft.net" , "netdev@vger.kernel.org" , nic_swsd , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" Subject: Re: [PATCH net-next RESEND 2/2] r8152: separate the r8152.c into r8152_main.c and r8152_fw.c Message-ID: References: <1394712342-15778-368-Taiwan-albertk@realtek.com> <1394712342-15778-371-Taiwan-albertk@realtek.com> <1394712342-15778-373-Taiwan-albertk@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 26, 2021 at 08:26:00AM +0000, Hayes Wang wrote: > Greg KH > > Sent: Monday, July 26, 2021 3:37 PM > [...] > > That is a lot of different things all happening in one commit, why? > > I plan to separate the file into two files. And > I find I need an additional header file for it, so > The patch includes adding that header file. You also do other things, like renaming defines, which is not just moving code around, right? > > Please break this up into "one patch per change" and submit it that way. > > > > But the real question is why break this file up in the first place? > > What is wrong with the way it is today? What future changes require > > this file to be in smaller pieces? If none, why make this? If there > > are future changes, then please submit this change when you submit > > those, as that would show a real need. > > The purpose is let me easy to maintain the driver. > The code is larger and larger. And I find that the > r8169.c has been separated into three files. > Therefore, I think maybe I could split the driver > into small parts like r8169. Then, the code wouldn't > be complex. I do not know, is it really easier to find things in 3 different files instead of one? That's up to you, but you did not say why this change is needed. thanks, greg k-h