Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22308232rwd; Fri, 30 Jun 2023 06:34:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlFsPQkS/Whb30IjRHBdN8XdgX4z3brIdGhs6vLRu2F1FKYuIRYdVp8xbPWnxQIwjQVC+d8f X-Received: by 2002:a17:902:6941:b0:1b8:5fb4:1c82 with SMTP id k1-20020a170902694100b001b85fb41c82mr2061362plt.50.1688132065907; Fri, 30 Jun 2023 06:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688132065; cv=none; d=google.com; s=arc-20160816; b=yK5cvSe30LqItLvyINHdqIXCiCrovrndJ4dKTsr2SGN0nMFQcW/6GFjTYZQeZ7CsUK wTnLjLg0aOb3sUyift9IA3V2aO3qLyEb7PUcuS6XakpDezOhnmm7YL+HMXy6ca+wbZT/ NcZEUpzeNuoRsTwlyPcLlAwOGs7A26T2+NM2izwcQlj2POChFH4pCJKrTuIY+YO/SvNk waSIUNYq5R9m54a/uSLPh4ZK3qpyco0cBQTznJMqqLpABfRM3WCZ1g1rSy0cVQOuhen0 xHM7pEz9Y3i/oeuaHAxbFwBHLulpXS5o3NiizU7cYLEOOssYBTnG8mHucv9y7d3Iacd3 jsQw== 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=Yuv7ydY92AABDsmJbYud8D5lEI5+GZ0PtgZpHp1OVkQ=; fh=fFv7x1KuscyMfo7/Po5XGtd0lMoNVjRLy6HjYTiN5hw=; b=cyGqmXzPXrjfvoboZb+tqJHbfDEk/Nr3gOPM4vHD8qd6Aut9sGJD6PF1d3XYJlQEbp wSjhELcAeVTaAI9iIELMOrYbUstNtSf4plulgXs3WehDSfoSzu478nSlTx2/AfZ3O6QF DSQu8uCjx6ggAiBilFlwdwcjLVfIiarOdj7tPGldlPOqP1bHQxFiOUlnDnjw0wRJSu6k C7iFhZVpxIQMxFtgYmw/zERJEV3LQD5fMs8mRyGp069hUFpTj9KZ3KWnwh1UoVjyxwmA SSbGOPQfr9npwvLg9rxh0VRbok/oVlTgs60DSz/tlhWD0yksyUWoj/fPvXlc4yATYBzA S7LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=REOLyBAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18-20020a1709027c1200b001b02e044c87si11791016pll.320.2023.06.30.06.34.10; Fri, 30 Jun 2023 06:34:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=REOLyBAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232080AbjF3MlO (ORCPT + 99 others); Fri, 30 Jun 2023 08:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjF3MlN (ORCPT ); Fri, 30 Jun 2023 08:41:13 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE46ED; Fri, 30 Jun 2023 05:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688128872; x=1719664872; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2FYd99bnFlQzYvPT8VK/+D26pZGzuJX6LEsG6BobVfE=; b=REOLyBAhhyceInBpXDnwGQdyG6H9KNPtDZlKH7/t8ik/s66v08+M6s+3 VsWWo0/MNmigcw3m3gACFeh3KPyIqFjriFNW4rmCuY7oinInYaMX1Gfsc e7kwARoRLm+w9YdqjWx6yWLJKjXHOT4YaUeMhD9KbynG8WCNAMWx2GXU5 07i4LnMJ4DPF/QzLpOVITarlOB0ZW5WiOwaobZVYpygaTknWyJqrQ2rlc rvKKswgWTlhlRhl1jSLxFrFKoIluWVpZWgqQK0HpUoEt9mmrvPr9SxecR dgCtOhU1YJ8ojzcsYWQS0P/iL+UKpR4OnJttkzmfAkc0wDx5Yy0gRw1rp A==; X-IronPort-AV: E=McAfee;i="6600,9927,10756"; a="347165217" X-IronPort-AV: E=Sophos;i="6.01,170,1684825200"; d="scan'208";a="347165217" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2023 05:41:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10756"; a="862280390" X-IronPort-AV: E=Sophos;i="6.01,170,1684825200"; d="scan'208";a="862280390" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 30 Jun 2023 05:41:08 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Fri, 30 Jun 2023 15:41:07 +0300 Date: Fri, 30 Jun 2023 15:41:07 +0300 From: Heikki Krogerus To: Kyle Tso Cc: gregkh@linuxfoundation.org, badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2 2/3] usb: typec: Iterate pds array when showing the pd list Message-ID: References: <20230623151036.3955013-1-kyletso@google.com> <20230623151036.3955013-3-kyletso@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230623151036.3955013-3-kyletso@google.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 23, 2023 at 11:10:35PM +0800, Kyle Tso wrote: > The pointers of each usb_power_delivery handles are stored in "pds" > array returned from the pd_get ops but not in the adjacent memory > calculated from "pd". Get the handles from "pds" array directly instead > of deriving them from "pd". > > Fixes: a7cff92f0635 ("usb: typec: USB Power Delivery helpers for ports and partners") > Cc: stable@vger.kernel.org > Signed-off-by: Kyle Tso Acked-by: Heikki Krogerus thanks, -- heikki