Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3396763pxf; Mon, 22 Mar 2021 05:36:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz85kLG3oe/t01EtfabhoqiXqdBCQ/lVpOeJuznCOxWYJ/BwuXqKv24LzQf29OBckTzmpI6 X-Received: by 2002:a05:6402:10c6:: with SMTP id p6mr25426728edu.241.1616416616055; Mon, 22 Mar 2021 05:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616416616; cv=none; d=google.com; s=arc-20160816; b=sUm/IX+nnA294eG0LGcpnW/0LtdBnZTIYry7vNfF27xRQJC5p5ViAalWVSCPnzNmgo i8NE/CkSo6oHUs5eHmkMMpMKOLg2z/fJRQBYy9+2wmBl740DvFKMekwC6DmgPRVaH12U EfKhiivEK58yH+/koi2HLs5y6Red54BQk5gLzYRVqlIgcQodRIgD2RcBM+HurmgXHzdR mL1MIolutDDCmSdsn0aRSP8K0i7TGZj/b4eJWGTLtmZDDlbROIsw1hbVXtPt3VN0qFXe 31jCbwNDucQqrkf5uir8+EgiAa0DUXcAYmPQ1+Mz/G+pEu0dVTj0kV+ldZtSi9oWKi53 BsfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x4mDblS7jv2xrapYNRxctKRIYxERj2yqZalfQtejxpE=; b=NrW7QXGCK2ZzHT8VTS2pOLsz1cOwFax0LbTdX2q8Euw9hBUTuV7zR3GWKHJfVVufGI 5syrAx7luWqaMbz6qwuA7fMfZNthySGJX4L3oYYuAUs7nyk4qt8J84ffnvr+AR+XTqu6 ZloYscHyMI9URzHs9j9C5UZKsmLESkmauFXHiTd6aPiOwioTcZ0AC9yL/PkXgwqHNEAQ fhgaWC/RfEd3IZqGOOf8l0ZxNL1u2PJ5bsq7uC7Xz47gIWnyVrArpxpTUlVqsqwB/rwN ReObiUFYpHHhPb4db14ARV+cc8xDwGammmQCn01n4BpFD3/AtusFfoSYYfwOn5s8Kr0p oVJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DJoH65wu; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x21si11275450eju.471.2021.03.22.05.36.34; Mon, 22 Mar 2021 05:36:56 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=DJoH65wu; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbhCVMfi (ORCPT + 99 others); Mon, 22 Mar 2021 08:35:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:55578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbhCVMct (ORCPT ); Mon, 22 Mar 2021 08:32:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0E6826199F; Mon, 22 Mar 2021 12:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616416369; bh=eJDuW1nCbwhN9OjJD1WjXaKufCCg/gLcBm8Mwb7Kxdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DJoH65wuerbYUkucoO1RYa/qcs5WKqcecRDMdXlyq213urPVVi5JNDD4bqTf/dSYp GCoN6YIDTt8lE4WSChGTh1TDPkpjRig/rRpGzh7HNz5FwOMZhAeRgGzRuktHgM4Hkp kyc802Y+7ssi6GUryI+Sv/eE6OsWx/HkPajW4afw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heikki Krogerus , =?UTF-8?q?Guido=20G=C3=BCnther?= , Elias Rudberg Subject: [PATCH 5.11 081/120] usb: typec: Remove vdo[3] part of tps6598x_rx_identity_reg struct Date: Mon, 22 Mar 2021 13:27:44 +0100 Message-Id: <20210322121932.375287307@linuxfoundation.org> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210322121929.669628946@linuxfoundation.org> References: <20210322121929.669628946@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Elias Rudberg commit 3cac9104bea41099cf622091f0c0538bcb19050d upstream. Remove the unused "u32 vdo[3]" part in the tps6598x_rx_identity_reg struct. This helps avoid "failed to register partner" errors which happen when tps6598x_read_partner_identity() fails because the amount of data read is 12 bytes smaller than the struct size. Note that vdo[3] is already in usb_pd_identity and hence shouldn't be added to tps6598x_rx_identity_reg as well. Fixes: f6c56ca91b92 ("usb: typec: Add the Product Type VDOs to struct usb_pd_identity") Reviewed-by: Heikki Krogerus Reviewed-by: Guido Günther Signed-off-by: Elias Rudberg Cc: stable Link: https://lore.kernel.org/r/20210311124710.6563-1-mail@eliasrudberg.se Signed-off-by: Greg Kroah-Hartman --- drivers/usb/typec/tps6598x.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/usb/typec/tps6598x.c +++ b/drivers/usb/typec/tps6598x.c @@ -64,7 +64,6 @@ enum { struct tps6598x_rx_identity_reg { u8 status; struct usb_pd_identity identity; - u32 vdo[3]; } __packed; /* Standard Task return codes */