From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5B59C48BD1 for ; Wed, 9 Jun 2021 16:38:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A09E0613C0 for ; Wed, 9 Jun 2021 16:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235082AbhFIQkR (ORCPT ); Wed, 9 Jun 2021 12:40:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:37700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbhFIQkO (ORCPT ); Wed, 9 Jun 2021 12:40:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F56B610A1; Wed, 9 Jun 2021 16:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623256700; bh=+RFAsW+BaB3yvovWMXUbFjPkdC4MfCKQ/OHeDLLypOo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gz1l5VeehUfuEU6uicGlld1GwqCqBHYgpO85Pmfr4E/YdbaxulWCSv6b0/qeNw1WG UrWc8Fiy6UDCIU06XQ6J/0l8agXXwVZkozQ+6KSMd/MYgVjPGu+PkjH5Koa7dHPA7N U3d3ykLDZGypq2nCWAzNdvniD/CGFax2paWCvLI4= Date: Wed, 9 Jun 2021 18:38:17 +0200 From: Greg KH To: Tom Rix Cc: mdf@kernel.org, hao.wu@intel.com, michal.simek@xilinx.com, nava.manne@xilinx.com, dinguyen@kernel.org, krzysztof.kozlowski@canonical.com, yilun.xu@intel.com, arnd@arndb.de, fpacheco@redhat.com, richard.gong@intel.com, luca@lucaceresoli.net, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 0/4] fpga: reorganize to subdirs Message-ID: References: <20210609142208.3085451-1-trix@redhat.com> <2738ee7a-448f-c327-c430-13fb44da45ec@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2738ee7a-448f-c327-c430-13fb44da45ec@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 08:08:06AM -0700, Tom Rix wrote: > > On 6/9/21 7:53 AM, Greg KH wrote: > > On Wed, Jun 09, 2021 at 07:22:03AM -0700, trix@redhat.com wrote: > > > From: Tom Rix > > > > > > The incoming xrt patchset has a toplevel subdir xrt/ > > > The current fpga/ uses a single dir with filename prefixes to subdivide owners > > > For consistency, there should be only one way to organize the fpga/ dir. > > > Because the subdir model scales better, refactor to use it. > > > The discussion wrt xrt is here: > > > https://lore.kernel.org/linux-fpga/68e85a4f-4a10-1ff9-0443-aa565878c855@redhat.com/ > > > > > > Follow drivers/net/ethernet/ which has control configs > > > NET_VENDOR_BLA that map to drivers/net/ethernet/bla > > > Since fpgas do not have many vendors, drop the 'VENDOR' and use > > > FPGA_BLA. > > > > > > There are several new subdirs > > > altera/ > > > dfl/ > > > lattice/ > > > xilinx/ > > > > > > Each subdir has a Kconfig that has a new/reused > > > > > > if FPGA_BLA > > > ... existing configs ... > > > endif FPGA_BLA > > > > > > Which is sourced into the main fpga/Kconfig > > > > > > Each subdir has a Makefile whose transversal is controlled in the > > > fpga/Makefile by > > > > > > obj-$(CONFIG_FPGA_BLA) += bla/ > > > > > > Some cleanup to arrange thing alphabetically and make fpga/Makefile's > > > whitespace look more like net/'s > > > > > > Changes from > > > v1 > > > Drop renaming files > > > Cleanup makefiles > > You can rename the files, you just can not rename the .ko objects > > without everyone knowing what you are doing and you trying to bury it in > > the middle of a differently described patch. > > > > If you want to do that, do you? I don't really understand why you want > > to move things around right now other than "we have 40 files in one > > directory, ick!". > > I am trying to resolve the layout inconsistency between what we have and > what the xrt patchset does. Why does it matter? New stuff can be added to a new dir, why worry about old stuff? What does it hurt? > The big issue is the files vs dirs. > > Over specified filenames is secondary, so I dropped them. > > 40 files in one dir is itself not a problem. > > having 40 files and an xrt/ is. Why is that a "problem"? > fpga/ layout should be consistent so the Makefile and Kconfig are easier to > maintain. Is it somehow hard to maintain today? Seems pretty trivial to me... thanks, greg k-h From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A36F0C48BCF for ; Wed, 9 Jun 2021 17:31:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6BCBA613CB for ; Wed, 9 Jun 2021 17:31:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6BCBA613CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2LeDnx8mguuR42Mvc8mYAEpw7SQDSNN5oNrYsuGZ5UU=; b=WBpjgARHVZmq/C hGCTj3ZgLJXHNIvkwA104UXPjbuhvfue37oqddn0Vz++fbTnLRQj1q9u5WolayT2aukWKwiPzw4EJ k+jPnHVTl6YJpYmQTeDuRfueMVLof8opOddawq3BoJ4KPrIcCycxYT6nMF6upNayvFsd0HCTMNbr+ DQ0/mJZQ6KVqRxgQ9RF/jjmoy+wOI3AfP877LAgL3kc2tHOnpyiIVofqCy6KI5HWDFmFty0GQTCe4 1Z3c/XWMDPrCUNL/DQTsXGnbsPfcyoKb3vrRRmD354Z/L0xeMd7HQl7t4slnTzkTG+6+SebQEGsSi Lfdrz7QOZsBGxhGe6u3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lr212-00FIvM-15; Wed, 09 Jun 2021 17:29:21 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lr1Dg-00EzFh-Fw for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 16:38:22 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F56B610A1; Wed, 9 Jun 2021 16:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623256700; bh=+RFAsW+BaB3yvovWMXUbFjPkdC4MfCKQ/OHeDLLypOo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gz1l5VeehUfuEU6uicGlld1GwqCqBHYgpO85Pmfr4E/YdbaxulWCSv6b0/qeNw1WG UrWc8Fiy6UDCIU06XQ6J/0l8agXXwVZkozQ+6KSMd/MYgVjPGu+PkjH5Koa7dHPA7N U3d3ykLDZGypq2nCWAzNdvniD/CGFax2paWCvLI4= Date: Wed, 9 Jun 2021 18:38:17 +0200 From: Greg KH To: Tom Rix Cc: mdf@kernel.org, hao.wu@intel.com, michal.simek@xilinx.com, nava.manne@xilinx.com, dinguyen@kernel.org, krzysztof.kozlowski@canonical.com, yilun.xu@intel.com, arnd@arndb.de, fpacheco@redhat.com, richard.gong@intel.com, luca@lucaceresoli.net, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 0/4] fpga: reorganize to subdirs Message-ID: References: <20210609142208.3085451-1-trix@redhat.com> <2738ee7a-448f-c327-c430-13fb44da45ec@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2738ee7a-448f-c327-c430-13fb44da45ec@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210609_093820_590204_2BEDC2B7 X-CRM114-Status: GOOD ( 30.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jun 09, 2021 at 08:08:06AM -0700, Tom Rix wrote: > > On 6/9/21 7:53 AM, Greg KH wrote: > > On Wed, Jun 09, 2021 at 07:22:03AM -0700, trix@redhat.com wrote: > > > From: Tom Rix > > > > > > The incoming xrt patchset has a toplevel subdir xrt/ > > > The current fpga/ uses a single dir with filename prefixes to subdivide owners > > > For consistency, there should be only one way to organize the fpga/ dir. > > > Because the subdir model scales better, refactor to use it. > > > The discussion wrt xrt is here: > > > https://lore.kernel.org/linux-fpga/68e85a4f-4a10-1ff9-0443-aa565878c855@redhat.com/ > > > > > > Follow drivers/net/ethernet/ which has control configs > > > NET_VENDOR_BLA that map to drivers/net/ethernet/bla > > > Since fpgas do not have many vendors, drop the 'VENDOR' and use > > > FPGA_BLA. > > > > > > There are several new subdirs > > > altera/ > > > dfl/ > > > lattice/ > > > xilinx/ > > > > > > Each subdir has a Kconfig that has a new/reused > > > > > > if FPGA_BLA > > > ... existing configs ... > > > endif FPGA_BLA > > > > > > Which is sourced into the main fpga/Kconfig > > > > > > Each subdir has a Makefile whose transversal is controlled in the > > > fpga/Makefile by > > > > > > obj-$(CONFIG_FPGA_BLA) += bla/ > > > > > > Some cleanup to arrange thing alphabetically and make fpga/Makefile's > > > whitespace look more like net/'s > > > > > > Changes from > > > v1 > > > Drop renaming files > > > Cleanup makefiles > > You can rename the files, you just can not rename the .ko objects > > without everyone knowing what you are doing and you trying to bury it in > > the middle of a differently described patch. > > > > If you want to do that, do you? I don't really understand why you want > > to move things around right now other than "we have 40 files in one > > directory, ick!". > > I am trying to resolve the layout inconsistency between what we have and > what the xrt patchset does. Why does it matter? New stuff can be added to a new dir, why worry about old stuff? What does it hurt? > The big issue is the files vs dirs. > > Over specified filenames is secondary, so I dropped them. > > 40 files in one dir is itself not a problem. > > having 40 files and an xrt/ is. Why is that a "problem"? > fpga/ layout should be consistent so the Makefile and Kconfig are easier to > maintain. Is it somehow hard to maintain today? Seems pretty trivial to me... thanks, greg k-h _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel