Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp114497rwb; Thu, 6 Oct 2022 15:28:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM47PRGhgi28UQ5pWGHs2FKsXrBCVHpu0T6la/zy2h/QC/8rrPO2njWtVIaMHjsqacwVpYvM X-Received: by 2002:a63:e442:0:b0:438:7919:adf with SMTP id i2-20020a63e442000000b0043879190adfmr1773737pgk.4.1665095306712; Thu, 06 Oct 2022 15:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665095306; cv=none; d=google.com; s=arc-20160816; b=nhkUrODIxsiiTy77xOZk6dKYNUn7nFNp4JgiIV0ohjDgnxZKoSVdTzQi3ucYMFJ7qN eOGIm98rkZZyn7h8qk8++Whau/cha/Hs4aHQZRmm/cdHCpIvWZcd2G3bSxzTrC3kkeQ7 BcdSAUn28KQXxsmyUkARJWKd7P3v/jBb64FDErICcRKodt0HinnWfnzzg06hkQyhlqWu m0ekQS+qVzSJHDZPLqKBoaQr5tp8QSf9u14Lflt/23T+sEHAqvr3iE79pPLqgrG/mK0n UdH9iZOLtQcxsTIdEs6qV00QymUpGub/EakpRvhv382VdxKKBYfuNPkEIc3YPqgf7fcy GfJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FL68dpL42Mx7JqcV5yKNfqU/nz0e+Ht7vuoz3H5+fH8=; b=Ba/hGEn8BKFUsADWRikl3eDpUgE6c6gv7w7Cw0dvEebaCqstB4cHmxvLNaUJShcBlq 4r5yxZUqcjRCWU5+C7mnUXAB//APQfj3q57id6y4jqW3lFHMsBGcK/phhWqiAiUBLQHn a0ynj7k97x2gAdROwzM+1g1tD2kW+Gf041Micn8ravhbhrWLm8dV7ogHImJqpa00IpXE tzOye6Vq6lm3EJL7fkzxSz/6HLUl219o1aKNRiujVwE+pQODnht8Dumm14Ibp1xr5rTq 2LcU0dNz+IYCQN33DFwY636x7JE7Bq8BboRzsqmL63F/AmpBTMiROAds7V9rSj/4HFyc UIgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CYw8nJyM; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a17090a2b4c00b0020ac15764f6si535431pjc.176.2022.10.06.15.28.14; Thu, 06 Oct 2022 15:28:26 -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=@gmail.com header.s=20210112 header.b=CYw8nJyM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbiJFWFq (ORCPT + 99 others); Thu, 6 Oct 2022 18:05:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231577AbiJFWFg (ORCPT ); Thu, 6 Oct 2022 18:05:36 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5097A63EA for ; Thu, 6 Oct 2022 15:05:35 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id w2so1849800qtv.9 for ; Thu, 06 Oct 2022 15:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FL68dpL42Mx7JqcV5yKNfqU/nz0e+Ht7vuoz3H5+fH8=; b=CYw8nJyMYNGQx30NInvL0gFMxLXWLoeaO1xSfNo86ZXoBAd8FkIwCcpt2e7icOQm3v brj2RADHXp81YIdXfuwtRmGARdrgxdKgCTnogfmLm/kGVuFxE6pTLO9lBLczflLpN1B9 yBh3CrXs3ulqbosnvtvGg3OApZNKqvSkDVXP+/DpvEoGh13DMQYx4ogAOsHMc29UoDA1 OIa7BXEqATaHH+wJZkvttMLiI5XFAqMn78S3iGgLvEc9AbsJtIzvxYCGTcv4spVA6Cn2 nMmbjcBxMKyfq2F7/HjsB0QIZ6dwBCBwEbYNd4uWNZpdo7JUqpt+DOp1TnJizi9Nzime Tysw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FL68dpL42Mx7JqcV5yKNfqU/nz0e+Ht7vuoz3H5+fH8=; b=c2WqevVKq7ZDsTScPX04wvq+CUPmOYfrtS33UxsuhJHqZEEroZGotz1ST2T5Ri9MQ6 gflJ4mqo6wH7XhJNj4hdAnxv+ItP8AK3mg3GjkfOXaex683Td8XMrlP7XNJj+2/AYXWT T5r/x/JhQM3X0oLXVUSrpRkOntTMvBdC5gczvr4sDdkACX2FUyhL4kqPurxPok8O1C91 LXyY8rVPsaKrl3zWErG4RtpNy7Fyt/0J4iq1iwm57b5rBuBHbPjvDE60Kud+gHniG+bQ Ev7cdyS8xZJf5ZQ16VXU2N+KF58JZzpC/ACdLd4yFMuDUqTXdtrk0GDTzqypInrHVgy6 geUw== X-Gm-Message-State: ACrzQf2IkAnNse3q5nsNLw16j4s4Pmgyw+ZBCM3SuXSLNNwaDf9b8fNt 4EEekU4tBTiVBctphSPsqrU= X-Received: by 2002:ac8:58ce:0:b0:35c:d69a:9311 with SMTP id u14-20020ac858ce000000b0035cd69a9311mr2069612qta.367.1665093934301; Thu, 06 Oct 2022 15:05:34 -0700 (PDT) Received: from [192.168.1.102] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id i19-20020a05620a249300b006cf3592cc20sm309737qkn.55.2022.10.06.15.05.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 15:05:32 -0700 (PDT) Message-ID: <29803905-d0e2-3efb-e249-fd745f9abcf0@gmail.com> Date: Thu, 6 Oct 2022 15:05:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 1/6] phy: usb: Improve port mode selection Content-Language: en-US To: justinpopo6@gmail.com, alcooperx@gmail.com, kishon@ti.com, vkoul@kernel.org, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Cc: bcm-kernel-feedback-list@broadcom.com References: <1665005418-15807-1-git-send-email-justinpopo6@gmail.com> <1665005418-15807-2-git-send-email-justinpopo6@gmail.com> From: Florian Fainelli In-Reply-To: <1665005418-15807-2-git-send-email-justinpopo6@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 10/5/2022 2:30 PM, justinpopo6@gmail.com wrote: > From: Justin Chen > > Split port modes into two different variables. Supported port modes > is what the hardware supports. While port mode is how the hardware > is currently configured and can be dynamically changed through the > sysfs. We initialize all supported port modes on init even though > the port mode may not be selected because we cannot guarantee the > downstream interface from the phy will be active or not. > > This also fixes an issue where port modes selected via sysfs were > not being saved through suspend/resume. > > Signed-off-by: Justin Chen Acked-by: Florian Fainelli -- Florian