Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6513447rdb; Fri, 15 Dec 2023 00:04:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYwzNS45eG/bJKngQuKdC+Q51R9ABZAiQJT1EFUFsAI08BKF6awOUr4db5XdZMqdgGyzW/ X-Received: by 2002:a17:90a:e44e:b0:286:7e91:b945 with SMTP id jp14-20020a17090ae44e00b002867e91b945mr5035160pjb.64.1702627461003; Fri, 15 Dec 2023 00:04:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702627460; cv=none; d=google.com; s=arc-20160816; b=B/tq4Bjbo5qo/S/i23NeSRt+Ug+lmYygttF4KJQUlKSPqE0lhaCznkP8ENtiXJ+b65 cgTNKxeUrVcwKVAkFzNLoXJ9PDw+PKqfww0eS3KNP4M28E0NokN3/klTju7XIn/Z92Su mzjEYUSkGEQ8p4BN4uNiOOGRscljrYoOjmaJtXGwIN3NjmHzJNGCIuF5tItRzT2C/g6v kvzhoY6PdRBU2zUjVi+YmJKgt7df0jxg2uryT6gt1/pw0OSeJfyk0/L7ze/ygV2iBc0W msEyBiFZqLgChLScTsWwgg5P8frAJRsUdRLZY1cJ9UqABWdQ6rnClbA+/AMtY+egMN4g lLPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WU2sEKNvgF7wNgMte7tC/1frfOcGfQogvGd/wJN6j70=; fh=41RL0WtFVNA+yImyF3FO+tWxj3ZWj1MHKqpeJETUOmg=; b=f0Z0BNOWE9hE9C806mmfX8Km5Xpgz78vXGkrZXo7KfVpHZ7WG5+r4Z33ERmauArwaO ri0LYQ/iTjgJs+BGhfYeyJFaVA+FWLwCSMD/QdijhEp3u4g5a86bFPB2gTEZ/pudsvKO Nkd+S2OQ8lZ27lbiINLuBZWsixLWLtm8zW6U+OJ3WBfhXUvma6Q5f2PDX/uA/ojXe8e7 jEacsS6QyFOrJLaQfYSzdfggz1ujTJ5//pEODESj+0t7AOqK5D0igtHRejuu2aTX/4ow 8bF0hLgugkcGoxOvxe5UwOLocMsY4UgZ5Th6cbtUVsxcNxkSbeX+Y3hJf+FegOr+oMFu V9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OX1LLfPU; spf=pass (google.com: domain of linux-kernel+bounces-579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id nv15-20020a17090b1b4f00b0028b2c769735si642106pjb.148.2023.12.15.00.04.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 00:04:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OX1LLfPU; spf=pass (google.com: domain of linux-kernel+bounces-579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5598E2843B3 for ; Fri, 15 Dec 2023 08:04:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46D2112E75; Fri, 15 Dec 2023 08:03:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OX1LLfPU" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C46612E40 for ; Fri, 15 Dec 2023 08:03:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702627431; x=1734163431; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UYfWTyZOX+NwD3pTWby1e16s7jSYe1Z1Qk3VR1irHFo=; b=OX1LLfPUTjGYWgkEO1a4jBW5Ljh9tpJrYlghHve6VFSNuV6JcxNIzt1+ rFP6QsIXwB+EwQeihrOS/XcujjdMrpqaSa5atcI45ywKqL/yVQN13Agum 6izIaHbLJpWKOXPcBKL4m5sUpCj0c5/urzZC+xAwDqXLeNG3rqPucc9xB yCQZDxz+UUacqcym17mxZvnTpsReeHQq4Fcm+SIL4uY8KaZ9xJuI7hx6z 71Lbcq5wUphKzJGsPDCuwGX8OGi+Wv/EbUAW03hRzJOmoO+eFJrcV3vIu JlMiqk0J+EF1lvWLf3CMP2XT1g/EDZTb203yR0P1zoSwSXxx2lbzdU5hY w==; X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="2085181" X-IronPort-AV: E=Sophos;i="6.04,278,1695711600"; d="scan'208";a="2085181" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 00:03:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="808887654" X-IronPort-AV: E=Sophos;i="6.04,278,1695711600"; d="scan'208";a="808887654" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 00:03:38 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 64FBB11FBF2; Fri, 15 Dec 2023 10:03:35 +0200 (EET) Date: Fri, 15 Dec 2023 08:03:35 +0000 From: Sakari Ailus To: Arnd Bergmann Cc: Tomas Winkler , Arnd Bergmann , Greg Kroah-Hartman , Wentong Wu , Alexander Usyskin , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] [v2] mei: fix vsc dependency Message-ID: References: <20231214183946.109124-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231214183946.109124-1-arnd@kernel.org> Hi Arnd, On Thu, Dec 14, 2023 at 06:39:31PM +0000, Arnd Bergmann wrote: > From: Arnd Bergmann > > CONFIG_INTEL_MEI_VSC_HW can be set to built-in even with CONFIG_MEI=m, > but then the driver is not built because Kbuild never enters the > drivers/misc/mei directory for built-in files, leading to a link > failure: > > ERROR: modpost: "vsc_tp_reset" [drivers/misc/mei/mei-vsc.ko] undefined! > ERROR: modpost: "vsc_tp_init" [drivers/misc/mei/mei-vsc.ko] undefined! > ERROR: modpost: "vsc_tp_xfer" [drivers/misc/mei/mei-vsc.ko] undefined! > ERROR: modpost: "vsc_tp_need_read" [drivers/misc/mei/mei-vsc.ko] undefined! > ERROR: modpost: "vsc_tp_intr_enable" [drivers/misc/mei/mei-vsc.ko] undefined! > ERROR: modpost: "vsc_tp_intr_synchronize" [drivers/misc/mei/mei-vsc.ko] undefined! > ERROR: modpost: "vsc_tp_intr_disable" [drivers/misc/mei/mei-vsc.ko] undefined! > ERROR: modpost: "vsc_tp_register_event_cb" [drivers/misc/mei/mei-vsc.ko] undefined! > > Add an explicit dependency on CONFIG_MEI that was apparently missing, > to ensure the VSC_HW driver cannot be built-in with MEI itself being > a loadable module. Well, I don't see why someone would build mei as a module can mei-vsc-hw as builtin but the actual dependencies don't wouldn't prevent it. How about instead changing the Makefile in the parent directory so mei directory is always traversed? Either way, feel free to add: Reviewed-by: Sakari Ailus -- Regards, Sakari Ailus