Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4190282pxu; Mon, 30 Nov 2020 21:10:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtm9/w1SEaVFb+5YXoUFgBfewFOiwzUGs3kXSCSdeRYEDXrUQ2/AeF3oOv6Hy+UJDa0U91 X-Received: by 2002:a17:906:e093:: with SMTP id gh19mr1321417ejb.510.1606799441609; Mon, 30 Nov 2020 21:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606799441; cv=none; d=google.com; s=arc-20160816; b=vHC+BxOL4Vy9Q3pcs+g6GyR8gy+keJ+r8iL3Ju3yXXKdfCF5q5r1iipECfQubWNXu6 drZPn0xS3TocxiIh27KUTHwbRxFuQKpospLwLkfAS5k6JUZ/m+Xbxx0303BFx1i/n5Re IO0OyDraRjU0Ov67Yj5z/Vyo5s6Jet9waUtROGtjJS5p1XU8b05y7BCKUD5FeLNGt6F7 tz5kDDrYfhuxFeWE4Zbbi50rSfVY6OXgmuC2FTpdR8Izi6/wkSXqd9dy3hp78Q28Khm3 /d62K/C4WZdPOj4x5qLQ3YkkGAadjx7I67AUDSHM4dsXkYoyybobQKNdLpV5ehGMtNhZ 6BuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=nruMNWNcZEmjcKrORKjvDrxT0A/8sh/ZqXFGa7woZ+A=; b=uNs+E+PL1xvtBDoqnIxh1jQik4dbyc/LdYg3OItGmxVCDNXlvK2NtSTKtk3ySdiT7E WlsxQMy45frj8h35ouRkVdHqQl6KXFV039N87yEYB/D+bltaiklmvAeBLF+bZpqw1WGz hUe7EillJPoeiQLoMxcfYk5jhmuBWsSinWB86QA8hen872ouz+R4DCQ0ax/Ipye/U856 eT9Hz2SvoJ8b1qA7eRPJTcK40jNwSNWGbw/km9vyVTGaeZ0tU1z9v/HU12NJEO47UR34 kEkFxukVJnu3piCTBKts4EfHjGVh/5L042uMNJ0r3CEYcPJPEH2FXcpiXKMloo9Tyl4D KsxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UMXU8w2c; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si424466edq.584.2020.11.30.21.10.19; Mon, 30 Nov 2020 21:10:41 -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=@google.com header.s=20161025 header.b=UMXU8w2c; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728312AbgLAEYJ (ORCPT + 99 others); Mon, 30 Nov 2020 23:24:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728212AbgLAEYJ (ORCPT ); Mon, 30 Nov 2020 23:24:09 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBD5CC061A04 for ; Mon, 30 Nov 2020 20:22:48 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id h9so882030ybj.10 for ; Mon, 30 Nov 2020 20:22:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=nruMNWNcZEmjcKrORKjvDrxT0A/8sh/ZqXFGa7woZ+A=; b=UMXU8w2cUY0sT47QLX4rKblaiuaWMGkD5mdqrs1sB8lQ9OFaFFcvwaFABiRHvZdAJ0 Djo2X+h1dd516KdL29sTzsTfOeqAdr4O1+jABIUCaMcjEPHIODUD78xxnLUhVBgrjiZw RW1hYeMREXpX30FB3DP/5vRwPfIhrY4dxpJbBMgZVUvOXKp6InKgdetHbN6aHavldJae K4ADF154w6iKSeRhegIAhyxeDlJKvwwX9AWv2GjHFltK28GBDpoAC0ExgkylgQXs7FCW n+TqD7WGWISpuQe6S3u9Paky/LpjM/CaTLp3wJquZX26syVf/is2cr/6p5nho+epKUpS Nh8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=nruMNWNcZEmjcKrORKjvDrxT0A/8sh/ZqXFGa7woZ+A=; b=PBv+8+azkh4vu3sTTt2hyLeiJDWW0tX8lZGZr2ckvmADjG0JgFfdbR0RasAQfgWCIx ywKCTqsqwxWZc/jq/gYZOJZatcEq2FXc5yANHMojtIoUKeeVitMTf0l6GcsH086EvOVc gPOTvwrnttPTqJeAIA4TB14GtkMPqfwpUcotOuoM/x0bzAbgathoongyGvTSCVpdow2W mFTWGgapcGwLVRGKTTKneuXBDJCoBsz8Rn88Onum3jyJDdYjSCphX33+EVWTTv0YPxZt UCx1FZgr+Hx23f85G2D19S1RnDX2TmTS+DapKwR7JHS4CMyGkidUEE1Fv/iYz2GHYv8d 5mnA== X-Gm-Message-State: AOAM530kojJOGKuA3g8FImQbQ/9mE//7s6v4zzhjlOTBxqkwDM7MCrTs aYaL3qbdgR4oHpZmOXMkNDms+HwMOJ8= Sender: "badhri via sendgmr" X-Received: from badhri.mtv.corp.google.com ([2620:15c:211:201:f292:1cff:fee0:66cf]) (user=badhri job=sendgmr) by 2002:a25:830e:: with SMTP id s14mr925680ybk.213.1606796568112; Mon, 30 Nov 2020 20:22:48 -0800 (PST) Date: Mon, 30 Nov 2020 20:22:37 -0800 In-Reply-To: <20201201042237.414235-1-badhri@google.com> Message-Id: <20201201042237.414235-4-badhri@google.com> Mime-Version: 1.0 References: <20201201042237.414235-1-badhri@google.com> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH v1 4/4] usb: typec: wcove: Update wcove_pd_transmit to include negoitated rev From: Badhri Jagan Sridharan To: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Badhri Jagan Sridharan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pd_transmit callback now passes down negotiated_rev to set retry count accordingly if needed. Signed-off-by: Badhri Jagan Sridharan --- drivers/usb/typec/tcpm/wcove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/typec/tcpm/wcove.c b/drivers/usb/typec/tcpm/wcove.c index 9b745f432c91..79ae63950050 100644 --- a/drivers/usb/typec/tcpm/wcove.c +++ b/drivers/usb/typec/tcpm/wcove.c @@ -356,7 +356,8 @@ static int wcove_set_pd_rx(struct tcpc_dev *tcpc, bool on) static int wcove_pd_transmit(struct tcpc_dev *tcpc, enum tcpm_transmit_type type, - const struct pd_message *msg) + const struct pd_message *msg, + unsigned int negotiated_rev) { struct wcove_typec *wcove = tcpc_to_wcove(tcpc); unsigned int info = 0; -- 2.29.2.454.gaff20da3a2-goog