Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp450542pxb; Wed, 3 Feb 2021 09:09:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNjs0LU4sSP9Z+fupEtCEef0vrk6q2jvs4M35Vlmpg+VIINXTnW9RhLLEnbEtE8LrkexXZ X-Received: by 2002:aa7:c58e:: with SMTP id g14mr4132017edq.318.1612372180393; Wed, 03 Feb 2021 09:09:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612372180; cv=none; d=google.com; s=arc-20160816; b=xOdG+RtIp8YwS4VFnsMHMlweb5Xjr2lkIa5/2gj2kprLgon8wOazX94gjC0NMASV6H M4we4ekdJKgf2ZPQo5Y1l1Do6J/irK3oMKf1aYgFT3908ZMMp/mKWCIL8ciizY9QPhns xtwaTyYDSqYjY6fYxKXiLfvMmc15Fy/rMyNZJ4QqM1GzUBrJPazu6b876Vy66wc5QnUp LKH4Uxf2DU9mEUehdFQtVbO4D4s8ZhhFCTpLRXHjDN6U6/Dr8O2wqb+drvBDVV8GCzhQ v6vddC6Rx0V3O6OejpG8pMkeENpnLIym2HfuhA5mTeSkYY/MgzI4LE1mvhHrR+Sf54w/ MPSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=CUnsvjpqQ+LIfw6jr2ckrGJOmbFREyddMsAyOizgSvM=; b=H0YjrS8eZXmFvzjz72rwPmRW2WiZXiP6b62HK6nBfF023Y/p14lKxtr4JbhY6cI4qD GGrNrbb37jZjHMMSdQvAhwC10EqdGMnsyB1EV6sonIwgXWPe7d22i0r9JKOQ0szwAvEz 0lkyBPLUlxgj2Vtmuo6VMAb7c3SRggibVPRAf8L9/MjEeYdA1OvJheqJGrARceVEZzHe P5rpFyTZqwCIaes3eFuF4KHW18hdzQVYPqRf28nW+vavkRyx8At8/dWMsxveeFEX3ryT sER7Dv4mnhY8yO0HJbVo8k7/th765ujckfKcX+QNqLXjregryt3uiI8cUfuUxULs5vZd Ru0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vT+s23Jd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si1976814ejj.472.2021.02.03.09.09.10; Wed, 03 Feb 2021 09:09:40 -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=@gmail.com header.s=20161025 header.b=vT+s23Jd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231653AbhBCRIV (ORCPT + 99 others); Wed, 3 Feb 2021 12:08:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbhBCRIT (ORCPT ); Wed, 3 Feb 2021 12:08:19 -0500 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 998C0C061573; Wed, 3 Feb 2021 09:07:39 -0800 (PST) Received: by mail-ot1-x330.google.com with SMTP id v1so522117ott.10; Wed, 03 Feb 2021 09:07:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CUnsvjpqQ+LIfw6jr2ckrGJOmbFREyddMsAyOizgSvM=; b=vT+s23JdOQ+wYurmova2LSVXm1WQl3ZrnGY6j6TuYmJj2q4yeSfVucr4RS1cpRsBo6 tEmPsEsY1tD7nE97X8VjCoZ5fuq4KwTlIMBsPZkGqBXiD2krkj4PVthNh/DapwCze+QD bhIkA+rPuUmIwG3BR5/AezMKgASYlS7o5OH11ZvntuhytCK/zFhcBkE3doMbJWEUkf2Y VfkNsTFdlIyWqGqHu/JcCuyieJfddqJuOVzQgmDHfFjQtCBlskLGNq8Z8ElPLPyJ+MYt ZQZf9H81F+MwWUgXnh92auCe8sT3b4JbHEExV+bMbDMfp993ZlIYlUfmd+f3pFj0T+dc Ss3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=CUnsvjpqQ+LIfw6jr2ckrGJOmbFREyddMsAyOizgSvM=; b=AH/+3FiTe9/1vbiwHEmPfEZdVbdNeOJ8VRc3dENx+I+iNPtNhq8f8Ras9IAlL79xbV jWvPA4JadMesud6f4ngGVNS0KrU4u+rTQvjmo0e+7SHC5lGofE4gcjKv7g+FjRW1O2wN 2Q1d/+3MbicG9kJttoB+IS1IIHX6wgmIO2BId2kv7ORMRw4zbaKBWYRO3nf2+GPtAAIP z1aGE3TJTc9sq5RJ9psTCQhQZko/9zUCFzU3qZrbv3lBU9tFoy5D4JBRl6YUj26St92F KMcTP8rZcFFnhgdU/5VA9yB5Q522AQ6LGl37PPXUFe+HxT78B+fMY1rHAxc4OZlJehsI ZNrA== X-Gm-Message-State: AOAM531wFHTfrFy+SG3HThcwiKHworZl2uHaMLjruYbgUUhGllahfZA1 5B3cneB2aZL7T3y07UC37hDkV6mLn8c= X-Received: by 2002:a9d:6ac6:: with SMTP id m6mr2718404otq.226.1612372058371; Wed, 03 Feb 2021 09:07:38 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 126sm514907oop.30.2021.02.03.09.07.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Feb 2021 09:07:37 -0800 (PST) Sender: Guenter Roeck Subject: Re: [PATCH v5 1/8] usb: typec: Manage SVDM version To: Heikki Krogerus Cc: Kyle Tso , gregkh@linuxfoundation.org, hdegoede@redhat.com, robh+dt@kernel.org, badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20210202161733.932215-1-kyletso@google.com> <20210202161733.932215-2-kyletso@google.com> <20210203124724.GD1687065@kuha.fi.intel.com> <20210203145143.GA58095@roeck-us.net> <20210203150121.GI1687065@kuha.fi.intel.com> <20210203150419.GJ1687065@kuha.fi.intel.com> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/L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AR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Wed, 3 Feb 2021 09:07:34 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210203150419.GJ1687065@kuha.fi.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/3/21 7:04 AM, Heikki Krogerus wrote: > On Wed, Feb 03, 2021 at 05:01:26PM +0200, Heikki Krogerus wrote: >> On Wed, Feb 03, 2021 at 06:51:43AM -0800, Guenter Roeck wrote: >>> Thinking about it, would it make make sense to define the functions as >>> static inline ? >> >> I (and I believe Guenter too) > > s/I believe Guenter too/I thought you too/ > Oops, you are correct. I somehow thought the structure holding the variable was defined in an include file. Sorry, my bad. Please ignore the noise I am making. Guenter >> want to keep these structures protected >> for now. If the API starts to get too bloated, then I guess I have to >> reconsider that. But I don't think we are there yet. >> >> I have been thinking about moving the USB PD negotiation details to a >> separate structure that could be more accessible for everybody. That >> should allow me continue to protect my precious structures. But I have >> not yet put much though into that. > >