Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp654692pxb; Tue, 1 Feb 2022 07:47:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzdLctJujc4jAS31fpm7f+9U2Ujqc6N7wpZl2nFmEn9Wb4iEPMA2hR71c0chTE6K5l5Y/K X-Received: by 2002:a05:6a00:244b:: with SMTP id d11mr25103883pfj.49.1643730448935; Tue, 01 Feb 2022 07:47:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643730448; cv=none; d=google.com; s=arc-20160816; b=dTOGjz7gUlaRmRmS6FfGkiIWUJJQQ4FqVDek/FWfkPni3zjicurPi8XM6Uzf2FnRn/ +PRvyS+P84NVDfoyXfgI8LLqe0rRl58CwFMu3TMvJjjmzGC5F4Fm0TINo5ZGIDBqyg6u 7S48zFmhVmO3jU+u+39f4pXLLe1iDYrH6aprbikkHp5yq9cboaqmUmadnVAtR3osQWBX RsrUNCUxNjv8b/YQphh/zQjEJwMFH8CFkGL367ERSTQGbqVlF5247s4Ic7VBxZF+8H7h OiRNcgAFg0dCbonnvVm+Oow6hBaRagiZuK87+OSjOpHmTysI2FFza3xD41SPGOgtl+/t P2qQ== 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=lUe9QU9/s46pIy/x6XRk4KInneEAoPv7po0lzYuQkjU=; b=q4f7W3X07w4Ao0TjeKf1QM4fRARaQhPpzliLJUYfzckXJ8mCsj0+H6mvnQNqcub5yf HSQTEE5JQ9HowPcTHa2G7zwWEybjO7MhRUZAJzmqHwUnyY/Buwh0ZPrQTJM9jH5aV1V7 kQxCVb85A83g9tx8NQNkvMsNJSGxlJJF+hpQwrzl3maBHAaNKOVVyxOWA2MlEoe4GtTo 145oKjYDR0ugxGKUc1LlkPB0ShfGmDxZruf5ZoHtjTQavfZjhMjkFIqboROUAHfyN6Tp jNnoFy5YAtfbNkvMRRFTVf56HZfltmeisCyJhTfuBivAcfNokZCiBPO/j+zSVNEBvWoR TO2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q4nFdauL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 2si2542792pja.40.2022.02.01.07.47.17; Tue, 01 Feb 2022 07:47:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q4nFdauL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344706AbiAaImi (ORCPT + 99 others); Mon, 31 Jan 2022 03:42:38 -0500 Received: from mga07.intel.com ([134.134.136.100]:48485 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344458AbiAaImh (ORCPT ); Mon, 31 Jan 2022 03:42:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643618557; x=1675154557; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nSRR41iCdd3beXRbCXNgN9ZSboYXpnyQtwxxNPrpg2s=; b=Q4nFdauLJo0TngGzEQ7AJsvBXlwpRPkFotRLs1kk2toJDoJiUdMHZJxg l6gJhFvcZVymPYsAlTFDR3sLqX6XzWeoYK9CUOzBFxUEpfNrWhYGAEnry G5DBJ3rlwM7gRGLwQXT3Xc0ONiLvC9vb03pal8g/Kq1hV6onW1I0K3fOg m1PE9e0rRXDC9wfsqWsmgcumM4j/XKoCBsYE4S/1ptR6GbPwz6l2lwIai +1/pj7O2MEU+B1TC/q42nRN2KiNoGeJtGWZ/MQSg4/ff+lpK51/S1OPt5 ucTYXCe+8BgvJmXE9gprrHy8rmdQYunrjuBmJVfZKp920QY4k6b3z4tL1 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10243"; a="310732878" X-IronPort-AV: E=Sophos;i="5.88,330,1635231600"; d="scan'208";a="310732878" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2022 00:42:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,330,1635231600"; d="scan'208";a="675667925" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 31 Jan 2022 00:42:32 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 31 Jan 2022 10:42:31 +0200 Date: Mon, 31 Jan 2022 10:42:31 +0200 From: Heikki Krogerus To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Mika Westerberg , Lee Jones , linux-usb@vger.kernel.org, Greg Kroah-Hartman , kernel test robot Subject: Re: [PATCH v2] usb: typec: mux: select not-visible INTEL_SCU_IPC Message-ID: References: <20220130185032.29298-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220130185032.29298-1-rdunlap@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 30, 2022 at 10:50:32AM -0800, Randy Dunlap wrote: > Use "select INTEL_SCU_IPC" instead of depending on it since it is > not a visible Kconfig symbol and it may not otherwise be set/enabled. > > Fixes: b62851491a55 ("usb: typec: mux: Convert the Intel PMC Mux driver to use new SCU IPC API") > Signed-off-by: Randy Dunlap > Cc: Heikki Krogerus > Cc: Mika Westerberg > Cc: Lee Jones > Cc: linux-usb@vger.kernel.org > Cc: Greg Kroah-Hartman > Cc: kernel test robot > --- > v2: add dependency on X86_PLATFORM_DEVICES to fix build error that was > Reported_by: kernel test robot > > drivers/usb/typec/mux/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > --- linux-next-20220128.orig/drivers/usb/typec/mux/Kconfig > +++ linux-next-20220128/drivers/usb/typec/mux/Kconfig > @@ -11,8 +11,8 @@ config TYPEC_MUX_PI3USB30532 > > config TYPEC_MUX_INTEL_PMC > tristate "Intel PMC mux control" > - depends on ACPI > - depends on INTEL_SCU_IPC > + depends on ACPI && X86_PLATFORM_DEVICES > + select INTEL_SCU_IPC > select USB_ROLE_SWITCH > help > Driver for USB muxes controlled by Intel PMC FW. Intel PMC FW can This will cause the driver to fail at probe time if there are no SCU device drivers enabled. The idea is that the SCU device drivers select the SCU IPC library, not the users of the library like this mux driver. thanks, -- heikki