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=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 2BDA5C48BDF for ; Tue, 15 Jun 2021 20:48:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D53D611C0 for ; Tue, 15 Jun 2021 20:48:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230503AbhFOUui (ORCPT ); Tue, 15 Jun 2021 16:50:38 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38410 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbhFOUui (ORCPT ); Tue, 15 Jun 2021 16:50:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623790112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KQ07UnerLYYg5xbQ2D5ZXpRlZkXdV15KKy3dzWwHbIQ=; b=attKP6X/C6O43WgAOZ246NJ0T+bY9nH4n1CNdnqRCLxDf8+YI9FUF/JveNLK4/cWXIrLc4 Lfad0dT1Mha1Sd3S37FvuYND59adziY0DLkEGQ77abFcyzesjA+vMdSW7ELAiHCqPQUC7D mxM6p3JVkzhiy4uA7RmT6aqJE3RDqjY= Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-58-kw1jDIQRNmek1hdnuQtfxQ-1; Tue, 15 Jun 2021 16:48:31 -0400 X-MC-Unique: kw1jDIQRNmek1hdnuQtfxQ-1 Received: by mail-oo1-f71.google.com with SMTP id d12-20020a4aeb8c0000b029023bbaaddcbbso202534ooj.13 for ; Tue, 15 Jun 2021 13:48:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=KQ07UnerLYYg5xbQ2D5ZXpRlZkXdV15KKy3dzWwHbIQ=; b=MtmDsR+Fi0Oc2GsDeAi5ovg+cXM3/WW46Ka5tnRQ27TE5X/FlIKW3U9ymatCAZkD2R dgzMwqFY7nIENGDqshyElwfnFY8o/fTiILQuMjtl5yVUdprt4tkuhoUAE1VyfaYipJeA Wj8fNDt38jVW3StZYTOJi1cnG2CDIYuxTLeggJWOew3Zb8P7zk9FHW7jvdPRXA4xvUUz /IIoSqhZzviwopJLEjXz8Ue0FNeGA5CZcEASK9RqiLDrAAgRQZr72fs4D/YL0iBP/xKH tMGSCHVkS3Ijd1nkyGSfsxBTzc/2qScx6Ze5krRBsWhTaXl/BO9BQZjpRPyS6esF7692 fyYA== X-Gm-Message-State: AOAM532keEC+78Vrkj1gHvK+bjn+8mKbGinlABo1sO6e3ROB8HpPDnt/ /RLKy8wsmhy6DMiPrTS132mMp4vFghTbVViXvjOfoU6SAqzBao6D2Ta/Hx39od6rlPY4eqZGxxL WsFv4FP2+dHzs+RGpqiKksEzF X-Received: by 2002:a05:6830:1f05:: with SMTP id u5mr876287otg.322.1623790110353; Tue, 15 Jun 2021 13:48:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvrGdxE+mzotrdFHuMpTK34RUPz5I1mTgC8N7HwfPe918vRPs0JpOJGFEIPWIQK4ioxDj+rg== X-Received: by 2002:a05:6830:1f05:: with SMTP id u5mr876264otg.322.1623790110110; Tue, 15 Jun 2021 13:48:30 -0700 (PDT) Received: from localhost.localdomain (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id i26sm1364oig.13.2021.06.15.13.48.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Jun 2021 13:48:29 -0700 (PDT) Subject: Re: [PATCH v4 1/4] fpga: dfl: reorganize to subdir layout To: "Wu, Hao" , "mdf@kernel.org" , "corbet@lwn.net" , "michal.simek@xilinx.com" , "gregkh@linuxfoundation.org" , "krzysztof.kozlowski@canonical.com" , "nava.manne@xilinx.com" , "Xu, Yilun" , "davidgow@google.com" , "fpacheco@redhat.com" , "Gong, Richard" , "luca@lucaceresoli.net" Cc: "linux-fpga@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" References: <20210614201648.3358206-1-trix@redhat.com> <20210614201648.3358206-3-trix@redhat.com> From: Tom Rix Message-ID: Date: Tue, 15 Jun 2021 13:48:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/15/21 1:08 AM, Wu, Hao wrote: >> Subject: [PATCH v4 1/4] fpga: dfl: reorganize to subdir layout >> >> From: Tom Rix >> >> 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. > Hi Tom, > > Thanks for this patch. : ) > > DFL is not a vendor, but something can be shared/reused. It's possible that > other vendors reuse the same concepts and the drivers of DFL. If vendor > drivers need to be moved inside sub folders, then maybe it's better to > leave DFL in the parent folder? xrt is also not a vendor, more a subdevice framework like dfl. I am not sure what you mean by other dfl vendors can you give an example ? >> 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/ >> >> This is the dfl/ subdir part. >> >> Create a dfl/ subdir >> Move dfl-* files to it. >> Add a Kconfig and Makefile >> >> Because FPGA_DFL is now used in dfl/Kconfig in a if/endif >> block, all the other configs in dfl/Kconfig implicitly depend >> on FPGA_DFL. So the explicit dependence can be removed. Also >> since FPGA_DFL depends on HAS_IOMEM, it can be removed from the >> other configs. > Hm.. sounds like this change (remove HAS_IOMEM) is better to be split > into another patch. How do you think? I'll drop this from the patchset so this so patchset does the one thing of moving stuff around and do the HAS_IOMEM change after stuff settles. Tom > > Thanks > Hao > 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=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 DB6BBC48BDF for ; Tue, 15 Jun 2021 22:41:46 +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 9A68A60FE4 for ; Tue, 15 Jun 2021 22:41:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A68A60FE4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com 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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=I9Sp2d0fqMTs2/kb9Q1zkDUknwXI1n42q552ExCGbyY=; b=qFUF4keXOMDb+hkw3R3DuQu+If 4HpyHnysX7itvKj1x6eKsWVgMHIBkje6EQzAV/VN8cYjP2lIZ6JhOiUxb/AxrwlaWAGKZWqtU7wrQ ymPtY7lEJzCk+JDMQv8f8i168OCDu5wru9KGjWid1/yRtZVu/AsWxZVansZQx1plmPbX6GPonEoaJ nFc05q9/n/GGaEjNAlnu7CMnvuPH1rljOhBwBA8IDBaMhHSNgGJHm/ICSKnkP+yCzxgQvh3WwPsNS HJjObdLitMUUK0FTz8UVS8AG0JKc9eIIcvDYimLoTcJ1LirFE8JYptAjfbV0dc/XoUSu1rvaoaLLf lD9TgUug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltHiU-003d0Q-4E; Tue, 15 Jun 2021 22:39:32 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltFz9-002u8A-Pc for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 20:48:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623790112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KQ07UnerLYYg5xbQ2D5ZXpRlZkXdV15KKy3dzWwHbIQ=; b=attKP6X/C6O43WgAOZ246NJ0T+bY9nH4n1CNdnqRCLxDf8+YI9FUF/JveNLK4/cWXIrLc4 Lfad0dT1Mha1Sd3S37FvuYND59adziY0DLkEGQ77abFcyzesjA+vMdSW7ELAiHCqPQUC7D mxM6p3JVkzhiy4uA7RmT6aqJE3RDqjY= Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-330-sDGJJZr5PMCbJfZDRHIzhw-1; Tue, 15 Jun 2021 16:48:31 -0400 X-MC-Unique: sDGJJZr5PMCbJfZDRHIzhw-1 Received: by mail-ot1-f70.google.com with SMTP id o26-20020a9d6d1a0000b02903e61e3de711so103006otp.12 for ; Tue, 15 Jun 2021 13:48:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=KQ07UnerLYYg5xbQ2D5ZXpRlZkXdV15KKy3dzWwHbIQ=; b=eMxmikcbTglloYusRoeJbLagzf2elkeg/Wq5KtOhlHae5z86Vf76XmuAq1d2h9E/Av VXS6AUYWSkZqJbijex+cGiA22ah/xOKL6WuSBwVd+L8t1uwMv4/AlTXVChZzmu9oVzS3 71NMGgA25nhUP2IWHZIECcLSAEyXQZ5jhECzh9DgTjafSpeYcwSzcxS6CJm+KG0bDiV1 n7FLiUWvErXMAnuaNDjUGFoNUM6cIkMgM3CC8ZHNJjSiuGYPS9CGIloSl4GbcBiSpJbm AblEmurjoqJ0VAdTjNmEvbNruVvjIgxQ1f2+NuUsNMvW24ua109YbxZ5zl0s3zCFR74y fQQw== X-Gm-Message-State: AOAM532uhGL7mHotK95WqZkD2x83TkBfl++tXG0LX5FEGPsGnxlFwYzg mlNkDeUwKzZcw9w1Cj1SlVGngxIbQADWVqL3hvnlqLa3DSO5xvVSebLf1+yicHcLTg/lhZ9yRfv NoTMSii9ZMXkxhUbZiDF/IlTZchfGXEezg5JVbt2CXui8XryRWao2/ZpfwNymkEZovcJ6u3I23P yiPw8LGw== X-Received: by 2002:a05:6830:1f05:: with SMTP id u5mr876299otg.322.1623790110410; Tue, 15 Jun 2021 13:48:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvrGdxE+mzotrdFHuMpTK34RUPz5I1mTgC8N7HwfPe918vRPs0JpOJGFEIPWIQK4ioxDj+rg== X-Received: by 2002:a05:6830:1f05:: with SMTP id u5mr876264otg.322.1623790110110; Tue, 15 Jun 2021 13:48:30 -0700 (PDT) Received: from localhost.localdomain (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id i26sm1364oig.13.2021.06.15.13.48.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Jun 2021 13:48:29 -0700 (PDT) Subject: Re: [PATCH v4 1/4] fpga: dfl: reorganize to subdir layout To: "Wu, Hao" , "mdf@kernel.org" , "corbet@lwn.net" , "michal.simek@xilinx.com" , "gregkh@linuxfoundation.org" , "krzysztof.kozlowski@canonical.com" , "nava.manne@xilinx.com" , "Xu, Yilun" , "davidgow@google.com" , "fpacheco@redhat.com" , "Gong, Richard" , "luca@lucaceresoli.net" Cc: "linux-fpga@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" References: <20210614201648.3358206-1-trix@redhat.com> <20210614201648.3358206-3-trix@redhat.com> From: Tom Rix Message-ID: Date: Tue, 15 Jun 2021 13:48:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_134835_971916_DA95F483 X-CRM114-Status: GOOD ( 23.32 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 6/15/21 1:08 AM, Wu, Hao wrote: >> Subject: [PATCH v4 1/4] fpga: dfl: reorganize to subdir layout >> >> From: Tom Rix >> >> 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. > Hi Tom, > > Thanks for this patch. : ) > > DFL is not a vendor, but something can be shared/reused. It's possible that > other vendors reuse the same concepts and the drivers of DFL. If vendor > drivers need to be moved inside sub folders, then maybe it's better to > leave DFL in the parent folder? xrt is also not a vendor, more a subdevice framework like dfl. I am not sure what you mean by other dfl vendors can you give an example ? >> 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/ >> >> This is the dfl/ subdir part. >> >> Create a dfl/ subdir >> Move dfl-* files to it. >> Add a Kconfig and Makefile >> >> Because FPGA_DFL is now used in dfl/Kconfig in a if/endif >> block, all the other configs in dfl/Kconfig implicitly depend >> on FPGA_DFL. So the explicit dependence can be removed. Also >> since FPGA_DFL depends on HAS_IOMEM, it can be removed from the >> other configs. > Hm.. sounds like this change (remove HAS_IOMEM) is better to be split > into another patch. How do you think? I'll drop this from the patchset so this so patchset does the one thing of moving stuff around and do the HAS_IOMEM change after stuff settles. Tom > > Thanks > Hao > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel