From patchwork Fri Sep 9 09:14:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 1675940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=sZTsC4qm; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MP9LF28TRz1yj1 for ; Fri, 9 Sep 2022 19:14:45 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229455AbiIIJOn (ORCPT ); Fri, 9 Sep 2022 05:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbiIIJOj (ORCPT ); Fri, 9 Sep 2022 05:14:39 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68EBE1CFCF for ; Fri, 9 Sep 2022 02:14:37 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id a8so1601378lff.13 for ; Fri, 09 Sep 2022 02:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=mVdK7E4cY7cM5XQpQxkxfa74Zdst6+MVrVvVyV2J/ME=; b=sZTsC4qmG3N4ZhlzVNgf2Cz+mT4hmqeYeHoq0nJoM+mtNj+UGnELed8RQwGArniXGR YT9Drrj/vOf/DSssfXMSE211vG/ihKDBViaRjNiEpGO9pIeUUiYub+PDfqW10dQ+C0py 2BEL1Yb/Zo8uwUWeGfnpindD02vrpbHpLVnK357UV1+FcHf0s5kcQQ08NQQ+2o1qOV3N MUfeRM4760T01DkPlrMv3oKimoShLhvcFMPvRS9M+dRcDB1FMK2qAR0KMLsBtdtrmA4a YAMH3dXwNG8yld04wcA/oN14eueK+WkHgGD88tHHUV9Q0AgvI2wq6NPzvia/BLaVXk9J 21dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=mVdK7E4cY7cM5XQpQxkxfa74Zdst6+MVrVvVyV2J/ME=; b=7zG1ZU6X5/avSVDQ03T0WZnhEKPLhihuFFIMZ6t0aZEWdYpP3Yl4Wu+NtIogd4A1a7 zVn/rt9GpB00go0ite5yYpdbRD6ECL78xoJEqdGw9qclh0AMangVg9unCKHdsNgFpmlZ wUj0BiFcJSTPwWt/CQa1V/GZ+hg0mS0oIvNPwZzV8kiryWvc+Krrp/UMHs7nA6hlEZC7 Cu3tH+xOHZD3cMlORSJ+0tZZMT5eej6TqlOG4oOLkpt6yrnNzbElvER+AxqQxZ6126UU UzzUBvEWaCHGi/HoVWEYu3VKIz3lNDvcy0hbaxrmIIg8qywgZVNX/eizkY3uyTZ5yeNz O8oQ== X-Gm-Message-State: ACgBeo0ZScBokMj5LDV61av74bX9FlEN78JXIysTaPUzU011lyiBZIyF yfd6CE3Je8mkh4QcGgLRHHnu4Q== X-Google-Smtp-Source: AA6agR5GLSJc2/tZgMKnpxjUZbHhfQBcV4ocohEfkZI2hZeRI0rEjw/VZNAQ/8PcktlxZLsGQWYFYg== X-Received: by 2002:a05:6512:1115:b0:497:cd1:463 with SMTP id l21-20020a056512111500b004970cd10463mr3896511lfg.24.1662714875565; Fri, 09 Sep 2022 02:14:35 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id z26-20020a2e4c1a000000b0026acbb6ed1asm201615lja.66.2022.09.09.02.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:14:34 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Bjorn Helgaas , Vinod Koul , Kishon Vijay Abraham I Cc: Philipp Zabel , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v3 1/9] phy: define submodes for PCIe PHYs Date: Fri, 9 Sep 2022 12:14:25 +0300 Message-Id: <20220909091433.3715981-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220909091433.3715981-1-dmitry.baryshkov@linaro.org> References: <20220909091433.3715981-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-pci@vger.kernel.org Define two submodes to be used for the PCIe PHYs, where required. Signed-off-by: Dmitry Baryshkov --- include/linux/phy/phy.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index b1413757fcc3..bd60c1a72988 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -45,6 +45,15 @@ enum phy_mode { PHY_MODE_DP }; +/* + * Submodes for the PHY_MODE_PCIE, allowing the host to select between RC (Root + * Complex) and EP (End Point) PHY modes. + */ +enum { + PHY_SUBMODE_PCIE_RC, + PHY_SUBMODE_PCIE_EP, +}; + enum phy_media { PHY_MEDIA_DEFAULT, PHY_MEDIA_SR,