Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5303516rdb; Wed, 13 Dec 2023 05:12:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IESxx7NDr9+i6DhajrLC/XKmiMcdov2bvTN3JVGYXC5OYf8+Sj9ATEB3mHquLch+JNI1v1r X-Received: by 2002:a17:902:650e:b0:1d0:98bf:f9fa with SMTP id b14-20020a170902650e00b001d098bff9famr8095964plk.131.1702473158980; Wed, 13 Dec 2023 05:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702473158; cv=none; d=google.com; s=arc-20160816; b=sRlZdKmwLla+WaBwCvtum6HMQxVuXeb7NKOWIlRjsgaF8E0ZZMyutNBh8RJvGYDKMt 1hfW+MzYfUh6c8iTL7nOfsvoX5Q/ITGUFTM/cButiFtF4bDQD6mwuznJqgd48hKkiV5u runjRNNExcBjw7ZYrC6tv9Wb7krBno+kJef0GzpcmP43r8ndB+Sd+VMRn8mxVPhYYYbp zLRUIwhwgaONuCNdunJJqXfr9sQOWKAh+Tfdeq3V8QUJClB1ZsW3rcOy9PnBqOXHOlYJ beYtDVAOn8A0yAVsj/3P3qMRFuL3bfxocbDuRea3NceHBtwFnKPVxp9fQqQA9wrAylR7 V80Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=j0qnn2oakljgMf1KSX4JUfkf2XfyO2aqGHBO7m6OjAQ=; fh=41RL0WtFVNA+yImyF3FO+tWxj3ZWj1MHKqpeJETUOmg=; b=AepxVMHkYiU5+MnK5wy+xuxuNn9pTtSCuVRmQhiTp8DHFYXQETCZMPJ6grJoNYhhn+ PVebdeOMNCi0Js1xuHaLb/DiKdQ3is/MO5wrgegPKrVFVAY3FYDvuu3mhbYBg2XoyDTY tIdpm28USaTjsFTwESINJ0tS6vD5Nd2YFBzeSa5/VcM+ZsSe3AhdWHABem1nkYT7NexX USgtDGtZZMpL16ojwtelxr7QM2byMkrjQilH33q8F68RVAToBHP8ND8LjFdfadx4xXmo yjF3UBXl61B3e4GSkbO/eUz/VBuBhRkt0kthL9S8yEPorpnKWKB0dY9gTsWh0Jvgg1LY VT3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V9+g7Tts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id jj6-20020a170903048600b001d0d15b9c6fsi2674122plb.380.2023.12.13.05.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 05:12:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V9+g7Tts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 03D5E8040C45; Wed, 13 Dec 2023 05:12:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233456AbjLMNML (ORCPT + 99 others); Wed, 13 Dec 2023 08:12:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231744AbjLMNML (ORCPT ); Wed, 13 Dec 2023 08:12:11 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 990F8B2 for ; Wed, 13 Dec 2023 05:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702473134; x=1734009134; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jIG6M/Yn7tdVnC/GYp6BlnOGTi9WCt9aIwpTh04ob7I=; b=V9+g7TtssLPwteF4JcSK17XzEhU0ME+S/kZagh7wOpUEBET3ZyKzOaSt 2Nl/pou679SH3QPZcmX78uPaUQRf5ixJtDeyJAqbAktC8IgzAdR/CFhuX mHfk9TCksmb1J/s7gn4R2PEC8J+MxT/+LYhgtv/O8heYscQXMSIEW/ST0 qdsCu8gLs50iJn4zKJHGPk42DbN/8TIAjkMWcrpVV6+3yWQn5PxEivTO9 69YXZ9WQsY6tPLHW1NPo2tHCRkE80xPLg/V/icE6L6Lo5BLg/rHkXLuGq yG6M7v84ZVLRfmqlTYeqBlRRlpWIQL/t/5jpyHdne2hc4O3T2QNr52HGW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="16515076" X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="16515076" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 05:12:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="947180830" X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="947180830" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 05:12:11 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 3336211FC21; Wed, 13 Dec 2023 15:12:09 +0200 (EET) Date: Wed, 13 Dec 2023 13:12:09 +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] mei: fix vsc dependency Message-ID: References: <20231213124310.761638-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213124310.761638-1-arnd@kernel.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 05:12:34 -0800 (PST) Hi Arnd, Thanks for the patch. On Wed, Dec 13, 2023 at 01:43:05PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The Kconfig dependency in the new module is reversed from the dependency > on the exported symbols, so it fails to link with CONFIG_INTEL_MEI_VSC > disabled and CONFIG_INTEL_MEI_VSC_HW enabled: > > 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! > > Make the dependency reflect the module dependency. > > Fixes: 566f5ca97680 ("mei: Add transport driver for IVSC device") > Signed-off-by: Arnd Bergmann > --- > drivers/misc/mei/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/mei/Kconfig b/drivers/misc/mei/Kconfig > index 858bd701d68c..eb69987f8325 100644 > --- a/drivers/misc/mei/Kconfig > +++ b/drivers/misc/mei/Kconfig > @@ -64,6 +64,7 @@ config INTEL_MEI_VSC_HW > tristate "Intel visual sensing controller device transport driver" > depends on ACPI && SPI > depends on GPIOLIB || COMPILE_TEST > + depends on INTEL_MEI_VSC Oops. The dependency indeed seems to have been reversed. Could you also reorder the entries so the one that depends on the other would be below? > help > Intel SPI transport driver between host and Intel visual sensing > controller (IVSC) device. > @@ -73,7 +74,6 @@ config INTEL_MEI_VSC_HW > > config INTEL_MEI_VSC > tristate "Intel visual sensing controller device with ME interface" > - depends on INTEL_MEI_VSC_HW > depends on INTEL_MEI > help > Intel MEI over SPI driver for Intel visual sensing controller -- Kind regards, Sakari Ailus