Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3773006imm; Mon, 11 Jun 2018 01:18:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIvkkWtZaSxshpXLJjh/qwySlndN8sFEPjoXdm9M9TNko2b+c6MnTKWS6B53cNregFRruOO X-Received: by 2002:a63:91c8:: with SMTP id l191-v6mr13962818pge.53.1528705088515; Mon, 11 Jun 2018 01:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528705088; cv=none; d=google.com; s=arc-20160816; b=PJowI/jI+CzKHLk7xrExr+OnXllMYJp/kjVaODgi5ALnECNQiiZQhqm6O/7DM3phMx 1n+JxY13MT3BBughxtGRnx4Pv8RxHiwkuUeKonFMpAI4fatF4/vXvH0fMqjwxCSzCKw2 J1torDiO3UUIePABF9q3IVzC/f4pxmtiAHWUCNWy0JfaWUAUKez9poI696pWlmxZIFNs XrbkqbEAcuC3oU144Q9Xqm+Z/1mTb/p0DLFyQUHnGj9nWI/QTwYxeIawQXhBguk7Q4sE dWFjZ5q1GzaZWdwAdvb7DuveAfCvNWUukrO1KnSnMztOcyqiG24ixDB8MaxmaLuLxEfD WyCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=yXAXaWPa0z2juLVqAJ6sekjloJfpIip7S0Af13ckQ1I=; b=07a4EpgrnipngrfoLilVjSfyEjQXSx4VAnNK93733x88LP99rZTVxj4hnWUjsWRkF/ n7G47X3WNSqblrHTjeSRxIWHi3MEtcCNXejwcRjFLBdpsdjO7ZR6/AFZ2NniBpqnNL/V btCSufpRehwmpgWHNFKTpKL5A4fpHWhNOsuV+Perm4VNnE+/TYOY/mC0fPw6Y/2hH/dd HvTnV8ezCY4jCKj7psuzSQPAOGId2Lw5Wr06W8LzuCE3uyyO0/2t8+MNlJc/DDO8m6hm c87WyQdMKMZiA0J2VrFkcmEXbp5Qf97Ky5o0ZC+0UgxNDVSmqzZ2B0QlRr6TErvBnE37 ZI/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=daF7mEpc; dkim=pass header.i=@codeaurora.org header.s=default header.b=daF7mEpc; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 187-v6si10897683pgi.254.2018.06.11.01.17.53; Mon, 11 Jun 2018 01:18:08 -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=@codeaurora.org header.s=default header.b=daF7mEpc; dkim=pass header.i=@codeaurora.org header.s=default header.b=daF7mEpc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754121AbeFKIR3 (ORCPT + 99 others); Mon, 11 Jun 2018 04:17:29 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40382 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754039AbeFKIR1 (ORCPT ); Mon, 11 Jun 2018 04:17:27 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 608F7606FA; Mon, 11 Jun 2018 08:17:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528705047; bh=SWxYZaYG1Zsq/9R5y52sYUaNSgkA+usWRmrpOk9UlHs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=daF7mEpc8VX5lxhyLbeFa0J2YGQXIh6NwNGcAF9bd5ujRRkHQNnhYosl3VLGoJBMH 6EFdljYCjc1UX0fy/GHSW1ZoXm5yYTk8tTA54JNpUoyYwCMAn87h+KxhsUXLVetpc1 x7vKbG16c33Lf2m9CHUC/IomOiV137Dec0yv7SfQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id F3AAC60791; Mon, 11 Jun 2018 08:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528705047; bh=SWxYZaYG1Zsq/9R5y52sYUaNSgkA+usWRmrpOk9UlHs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=daF7mEpc8VX5lxhyLbeFa0J2YGQXIh6NwNGcAF9bd5ujRRkHQNnhYosl3VLGoJBMH 6EFdljYCjc1UX0fy/GHSW1ZoXm5yYTk8tTA54JNpUoyYwCMAn87h+KxhsUXLVetpc1 x7vKbG16c33Lf2m9CHUC/IomOiV137Dec0yv7SfQ= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 11 Jun 2018 13:47:26 +0530 From: poza@codeaurora.org To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v1 0/9] PCI/portdrv: Squash into one file In-Reply-To: <152848853199.14051.12670957565366345798.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <152848853199.14051.12670957565366345798.stgit@bhelgaas-glaptop.roam.corp.google.com> Message-ID: <1ade8ebfbd2e02177d2f6afa3d805bb0@codeaurora.org> X-Sender: poza@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-09 01:42, Bjorn Helgaas wrote: > The portdrv code is scattered across several files, which makes it a > bit of > a hassle to browse. Consolidate it all in a single file. > Although I do not have any objection is merging the code, It looks to me that the 2 files served purpose of keeping portdrv device functionality in one file > portdrv_pci.c while, port driver helper and exported service functions for services are in > portdrv_core.c If that was the original intention, it just looks okay to me. But I am not sure the way the code is now, we can call is scattered, and also I do not think by merging it, we can call it more organised. although certainly it looks easier to browse as you are suggesting. little less confusing. > This is all pure code moves; no functional changes intended. Well, > there > is a function rename, but it shouldn't change any behavior. > > --- > > Bjorn Helgaas (9): > PCI/portdrv: Rename resume_iter() to prevent name collision > PCI/portdrv: Squash pieces of portdrv_core.c into portdrv_pci.c > PCI/portdrv: Squash PM-related code into portdrv_pci.c > PCI/portdrv: Squash device removal code into portdrv_pci.c > PCI/portdrv: Squash lookup interfaces into portdrv_pci.c > PCI/portdrv: Squash service driver registration into > portdrv_pci.c > PCI/portdrv: Move private definitions to portdrv_pci.c > PCI/portdrv: Clean up whitespace > PCI/portdrv: Rename portdrv_pci.c to portdrv.c > > > drivers/pci/pcie/Makefile | 6 > drivers/pci/pcie/portdrv.c | 822 > +++++++++++++++++++++++++++++++++++++++ > drivers/pci/pcie/portdrv.h | 15 - > drivers/pci/pcie/portdrv_core.c | 578 --------------------------- > drivers/pci/pcie/portdrv_pci.c | 261 ------------ > 5 files changed, 824 insertions(+), 858 deletions(-) > create mode 100644 drivers/pci/pcie/portdrv.c > delete mode 100644 drivers/pci/pcie/portdrv_core.c > delete mode 100644 drivers/pci/pcie/portdrv_pci.c