Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C474C38142 for ; Tue, 24 Jan 2023 14:26:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234836AbjAXO0s (ORCPT ); Tue, 24 Jan 2023 09:26:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbjAXO0m (ORCPT ); Tue, 24 Jan 2023 09:26:42 -0500 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71AC85BA7 for ; Tue, 24 Jan 2023 06:26:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674570343; cv=none; d=zohomail.com; s=zohoarc; b=ecxiYJRPOFguwpII6bMd2+EtQFxxfAdETLuW7M/8NM8r62s6v0iDevTkkRAJqAmSCo81rpYXjvLP7FbPbysfyTc3wjJ2ELVmZP4WdKi+i1XBTEd5QRXAPVVjGQ5SXhbk0dTf0ghlUeh/COZCqHbsL8zB+hTWb0X8EdF/h9O9Ku8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674570343; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=1tZx0l6tqdPaIaiDy9rt51u3oY4w9+nvUzDdw1F9RCs=; b=aqkJZqnD8AIk8gBjrIV3H+F7ZcJBC9cOT8M/18+Y3eA2OvicQwOFoolIaAyT6qLji4F1AOp4E9xrjhd6l8SKh8soE4WK8HGLnv+GH8Ui/0jyOtxDvSniGB/NSnvO/iwrDIpLhf/J2L3jkYoxk4iZqqOKe3yQ5nGsPEz95yDLm+U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1674570343; s=zmail; d=linux.beauty; i=me@linux.beauty; h=Date:Date:Message-ID:From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:References:MIME-Version:Content-Type:Message-Id:Reply-To; bh=1tZx0l6tqdPaIaiDy9rt51u3oY4w9+nvUzDdw1F9RCs=; b=kjEnIl/ARQuNXeFqxCNvrzZDEHuBxnqLonguYC+capWQs0sOVehQ/hurzm9rPxH2 /vTnRWzylPNyXkKi0j43IKPuNuSZURTSFIknXLo2QGPiLyrzkS6KsI72OTmSS+OPW20 lNc5HFTVX6pmxyZJ6QjVDNDTwAXapQOUg6uM+HSA= Received: from lchen-xiaoxin.linux.beauty (221.225.241.248 [221.225.241.248]) by mx.zohomail.com with SMTPS id 1674570337034387.24509939991617; Tue, 24 Jan 2023 06:25:37 -0800 (PST) Date: Tue, 24 Jan 2023 22:24:49 +0800 Message-ID: <87pmb4qaby.wl-me@linux.beauty> From: Li Chen To: Cc: , , , , , , , , , , Subject: Re: [PATCH 06/15] soc: add Ambarella driver In-Reply-To: <578e034a-d75f-3b50-76dd-8eb90a127258@microchip.com> References: <20230123073305.149940-1-lchen@ambarella.com> <20230123073305.149940-7-lchen@ambarella.com> <87zga8gww0.wl-me@linux.beauty> <578e034a-d75f-3b50-76dd-8eb90a127258@microchip.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Conor.Dooley, On Tue, 24 Jan 2023 16:46:41 +0800, wrote: > > Hey, > > >>> +++ b/drivers/soc/ambarella/Makefile > >>> @@ -0,0 +1,3 @@ > >>> +# SPDX-License-Identifier: GPL-2.0-only > >>> + > >>> +obj-$(CONFIG_ARCH_AMBARELLA) += soc.o > >> > >> The subdirectory is already gated by this symbol, so is there much point > >> gating it on the same one again? > > > > Yeah, it lookgs kind of redundant now, but I will upstream other drivers after > > this series get merged, which are not gated by this symbol. > > You could make the directory by obj-y, and therefore always included, > and have various drivers controlled by their own Kconfig symbols. > > Or else, you could leave the directory controlled by ARCH_AMBARELLA > and make the above `obj-y += soc.o` instead, since it's always > going to be built if the directory is included. Gotcha, I will fix it in v2. Thanks for your kindness! Regards, Li