Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp34617rdb; Wed, 7 Feb 2024 20:08:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUtkH27agj26urJCFADQWVHoiHK+RuMcHZrUjndcsdXnIFMTs+MKfx9hB0/STBR/dlqVMtynEuVAfa6tchLDwzqqjFv7wsZabhL5MD2+g== X-Google-Smtp-Source: AGHT+IH/VO8TH0fdTwYXtdmm1EXhO7K1G/6REJYGBjyYhFIKD7AmSTpsw+Dm4Wdok/c8yv9XYB1w X-Received: by 2002:a05:6a20:9394:b0:19e:3c7f:3d2b with SMTP id x20-20020a056a20939400b0019e3c7f3d2bmr9689095pzh.9.1707365325895; Wed, 07 Feb 2024 20:08:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707365325; cv=pass; d=google.com; s=arc-20160816; b=PS6+E7dWKBSlqsMiNxycTtQF2oiIdKXDYEPO5AffCaGoTPtocBW1Keu+wIf30QiS2J 1i8e418Yz5fvOyY9kNJPCAwdT4iRnCVDUMSSeoZ9f/aCx7yHX1jim/NH9QMXivkVxAxc ol/iPbS8VWvATH4OEWAJbdyjK1fQIxifYG/rzuWvMglXNX4hxiKEd8ajtTJWHcxNE2Mu 0iGx6i3oYH5+tU+kcmDfVcxC3z3QMKEbFCgP9Rzi51RNjKILuSKS82egixVnc4/+VewK Ox9j8Y3V5YBh1AsFWBzBcJfo2xKChtr+X8qWagHnGR6WiuNVMJfVY4qN0BXhuy2CiX71 a5Qg== ARC-Message-Signature: i=2; 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=iSs/Vosc7CnoenTetnWlp0hJgLhWVJnkVWhpNQtM4sM=; fh=0aH9TQ/wEY32zjJafmD0huJzTNjC4Drm2sEsBNo5Fa8=; b=WixSysDgZ3vw+GSykL3XuVGNrH9R9TQIaGD5SS+ZulXDrx55PVIMqyYeg/wVPnBn/y NbyW/GvHkmvNuNtXVh0uatyv6PShdUwwHKZmtDWfClEu63AEAmrpZTiidw8ScdaScpnW gAp+Unc6hKhRtgx6Bk9zM+pXNxKX3C+o1cARIeHr2K7ULRzcfF69allez4oXFkraU7sg uXeR3jno9ky9vbBbjY8Z6ir+oH7RxpvvfoSoCo44KF60czY5rWmdschuercAYaCKXdjd 7U1SFBRkoXhliCkpu6Wy81XxH4EfB2WUUtcQOfZ8wf/+Z+kNIoRWcaA7qGjnhNsoXMLC W3fA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=axh+lK2g; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-57458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCUmuN71RGZ7ji4GDVXa/cUffLs5g/f1XEkuz5C5zME+BG1YSWQcuAOpY7kJBY3MyvWl+qoACksH9O9Hq+w/PrKA4VmOL+KFF7pMppOUOg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id na17-20020a17090b4c1100b0029020beea5esi495786pjb.48.2024.02.07.20.08.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 20:08:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57458-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=axh+lK2g; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-57458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57458-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 78FF7285529 for ; Thu, 8 Feb 2024 04:08:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B61152E3E5; Thu, 8 Feb 2024 04:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="axh+lK2g" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 D0CB12C6AA; Thu, 8 Feb 2024 04:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707365313; cv=none; b=eOYuLy3ii4R/2BOjeXHNx6hEgP6QxVFZvxmQM1xxUPUl6BI6LPxWSWWuBbj6ELXrhdXk+cZtQmmwE5FfkLpm4np92BH+baycEJjP0HokpYwWQDafqRWG3jy+LSl9bF4IsAS5RqisVGV/c5qKFjeBT2qRASPyjwIoFAYx53BLRjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707365313; c=relaxed/simple; bh=NkAI6H35ROaFu13zo+RHURA61NgMQ5XNqRAfgGx1xd4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rwqqC1yYCP0sEezxPJxsarXMmtN9kg9LfR6XzxvK1hP9dT0RbPX5zyxwdCrsFYoUentIA8TD44FrnIlqnX2K6UL7vfhWTo63ed7L5EnsJVx+6Hb+keZoRvLat50oLR6F0QPvN8AXeo6aoq6T9e7V4TYQkqbv11HmbDo+orSoux0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=axh+lK2g; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707365312; x=1738901312; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NkAI6H35ROaFu13zo+RHURA61NgMQ5XNqRAfgGx1xd4=; b=axh+lK2gYBDAsq+wPvxKmI6vcTNDpNQ2CXsNRUYWWnJ8prK0J8STDJlz gOEwc5i1bTNFyU8Xxl4N5uepNnziBGeBmWH0U1XrphFDoFrUIwcGHbIeR VkHMqp0dHxL0qfi/uyzo/JsR//d+frJYYrMxy16PZ8t1P6wfD2jIvWg+i 71VWLOwqOLt3L0Cqc9M65pQ/auGNI2xWEtjfmduZCgZVd3Is/pr5PZ7XI BagwzCJdD9nxtvD9zR3PbRNJixvXQp7w5PpoBOr1PBRh6Aqha+oWyRtVh 0QqBlrypJ8QILkv+7AiN6/b8IOqz0bjSJb1vIYtRIYNftyTIW73k/HQMc g==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="11775903" X-IronPort-AV: E=Sophos;i="6.05,252,1701158400"; d="scan'208";a="11775903" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2024 20:08:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,252,1701158400"; d="scan'208";a="1531966" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 07 Feb 2024 20:08:24 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1rXvi3-0003LK-2f; Thu, 08 Feb 2024 04:08:23 +0000 Date: Thu, 8 Feb 2024 12:07:40 +0800 From: kernel test robot To: Heikki Krogerus , Prashant Malani , Greg Kroah-Hartman Cc: oe-kbuild-all@lists.linux.dev, Benson Leung , Tzung-Bi Shih , Guenter Roeck , Emilie Roberts , "Nyman, Mathias" , "Regupathy, Rajaram" , "Radjacoumar, Shyam Sundar" , Samuel Jacob , linux-usb@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, Uday Bhat Subject: Re: [PATCH 2/2] platform/chrome: cros_ec_typec: Make sure the USB role switch has PLD Message-ID: <202402081136.sve0cViZ-lkp@intel.com> References: <20240207145851.1603237-3-heikki.krogerus@linux.intel.com> 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: <20240207145851.1603237-3-heikki.krogerus@linux.intel.com> Hi Heikki, kernel test robot noticed the following build errors: [auto build test ERROR on usb/usb-testing] [also build test ERROR on usb/usb-next usb/usb-linus chrome-platform/for-next chrome-platform/for-firmware-next driver-core/driver-core-testing driver-core/driver-core-next driver-core/driver-core-linus linus/master v6.8-rc3 next-20240207] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Heikki-Krogerus/usb-roles-Link-the-switch-to-its-connector/20240207-230017 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing patch link: https://lore.kernel.org/r/20240207145851.1603237-3-heikki.krogerus%40linux.intel.com patch subject: [PATCH 2/2] platform/chrome: cros_ec_typec: Make sure the USB role switch has PLD config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240208/202402081136.sve0cViZ-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240208/202402081136.sve0cViZ-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202402081136.sve0cViZ-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/platform/chrome/cros_ec_typec.c: In function 'cros_typec_parse_port_props': >> drivers/platform/chrome/cros_ec_typec.c:75:34: error: invalid use of undefined type 'struct acpi_device' 75 | if (adev && !adev->pld_crc) | ^~ drivers/platform/chrome/cros_ec_typec.c:76:29: error: invalid use of undefined type 'struct acpi_device' 76 | adev->pld_crc = to_acpi_device_node(fwnode)->pld_crc; | ^~ drivers/platform/chrome/cros_ec_typec.c:76:68: error: invalid use of undefined type 'struct acpi_device' 76 | adev->pld_crc = to_acpi_device_node(fwnode)->pld_crc; | ^~ vim +75 drivers/platform/chrome/cros_ec_typec.c 23 24 #define DP_PORT_VDO (DP_CONF_SET_PIN_ASSIGN(BIT(DP_PIN_ASSIGN_C) | BIT(DP_PIN_ASSIGN_D)) | \ 25 DP_CAP_DFP_D | DP_CAP_RECEPTACLE) 26 27 static int cros_typec_parse_port_props(struct typec_capability *cap, 28 struct fwnode_handle *fwnode, 29 struct device *dev) 30 { 31 struct fwnode_handle *sw_fwnode; 32 const char *buf; 33 int ret; 34 35 memset(cap, 0, sizeof(*cap)); 36 ret = fwnode_property_read_string(fwnode, "power-role", &buf); 37 if (ret) { 38 dev_err(dev, "power-role not found: %d\n", ret); 39 return ret; 40 } 41 42 ret = typec_find_port_power_role(buf); 43 if (ret < 0) 44 return ret; 45 cap->type = ret; 46 47 ret = fwnode_property_read_string(fwnode, "data-role", &buf); 48 if (ret) { 49 dev_err(dev, "data-role not found: %d\n", ret); 50 return ret; 51 } 52 53 ret = typec_find_port_data_role(buf); 54 if (ret < 0) 55 return ret; 56 cap->data = ret; 57 58 /* Try-power-role is optional. */ 59 ret = fwnode_property_read_string(fwnode, "try-power-role", &buf); 60 if (ret) { 61 dev_warn(dev, "try-power-role not found: %d\n", ret); 62 cap->prefer_role = TYPEC_NO_PREFERRED_ROLE; 63 } else { 64 ret = typec_find_power_role(buf); 65 if (ret < 0) 66 return ret; 67 cap->prefer_role = ret; 68 } 69 70 /* Assing the USB role switch the correct pld_crc if it's missing. */ 71 sw_fwnode = fwnode_find_reference(fwnode, "usb-role-switch", 0); 72 if (!IS_ERR_OR_NULL(sw_fwnode)) { 73 struct acpi_device *adev = to_acpi_device_node(sw_fwnode); 74 > 75 if (adev && !adev->pld_crc) 76 adev->pld_crc = to_acpi_device_node(fwnode)->pld_crc; 77 fwnode_handle_put(sw_fwnode); 78 } 79 80 cap->fwnode = fwnode; 81 82 return 0; 83 } 84 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki