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 D7ACCC6FD19 for ; Mon, 6 Mar 2023 09:40:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbjCFJkF (ORCPT ); Mon, 6 Mar 2023 04:40:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230086AbjCFJkB (ORCPT ); Mon, 6 Mar 2023 04:40:01 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10046233D5; Mon, 6 Mar 2023 01:39:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678095598; x=1709631598; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dTGgd+bgPKsZytVWVUagghqNZFiDYsVMW0zlING2Tl4=; b=H+J9cj9q8E6F7ZMio0qRFVpjH5Q3wh1LTp2NiHHvQV+q9fwW59CkcERU lODcKPdLflFUjSYdCRA6Lh0USIdHZqpGJSSkq/YFaA0g58WXQ3/RayDn5 HmAhzWzYajabtjKsHdMNg/nVQbCNlVVsS84CRGq+xopGNpQpFWfCJnD1C Wp+tlTSAplg3P1BYUHUGm9QP+NEwwPqnReSab2gvHsxLtyH9GCJPFPmCX ZOjhL05yGIyc7umoiWsRfpdQzH5et1ruyI0Djp7B6K865jLiBizQOGgrb GSdCp94YS0sUiJ4Ou8Zi8+K2L9EOXMiTn4syVIwAUN5gaVc29qVw/IFV/ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10640"; a="337029471" X-IronPort-AV: E=Sophos;i="5.98,236,1673942400"; d="scan'208";a="337029471" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2023 01:39:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10640"; a="819244487" X-IronPort-AV: E=Sophos;i="5.98,236,1673942400"; d="scan'208";a="819244487" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 06 Mar 2023 01:39:52 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 06 Mar 2023 11:39:51 +0200 Date: Mon, 6 Mar 2023 11:39:51 +0200 From: Heikki Krogerus To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Guenter Roeck , Andy Shevchenko , Daniel Scally , Sakari Ailus , Len Brown , Yongqin Liu , Sumit Semwal , Martin Kepplinger , Amelie Delaunay , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v1 3/4] usb: typec: tcpm: Remove use of fw_devlink_purge_absent_suppliers() Message-ID: References: <20230301214952.2190757-1-saravanak@google.com> <20230301214952.2190757-4-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230301214952.2190757-4-saravanak@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 01, 2023 at 01:49:50PM -0800, Saravana Kannan wrote: > After recent changes to fw_devlink that ended with commit 4a032827daa8 > ("of: property: Simplify of_link_to_phandle()"), fw_devlink no longer > cares about the "compatible" property and figures out the correct struct > device at runtime. So, we no longer need to call > fw_devlink_purge_absent_suppliers(). > > Signed-off-by: Saravana Kannan > Cc: Yongqin Liu > Cc: Sumit Semwal Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/tcpm/tcpm.c | 9 --------- > 1 file changed, 9 deletions(-) > > diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c > index a0d943d78580..fd131f07020c 100644 > --- a/drivers/usb/typec/tcpm/tcpm.c > +++ b/drivers/usb/typec/tcpm/tcpm.c > @@ -6112,15 +6112,6 @@ static int tcpm_fw_get_caps(struct tcpm_port *port, > if (!fwnode) > return -EINVAL; > > - /* > - * This fwnode has a "compatible" property, but is never populated as a > - * struct device. Instead we simply parse it to read the properties. > - * This it breaks fw_devlink=on. To maintain backward compatibility > - * with existing DT files, we work around this by deleting any > - * fwnode_links to/from this fwnode. > - */ > - fw_devlink_purge_absent_suppliers(fwnode); > - > ret = typec_get_fw_cap(&port->typec_caps, fwnode); > if (ret < 0) > return ret; > -- > 2.39.2.722.g9855ee24e9-goog -- heikki