Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp522939rwb; Fri, 13 Jan 2023 00:23:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXvZQtgEbgcJYzuWunnzMyR4hsWFTXyYzOPA6YIHKB+5WByyvbFmsfJ6c0dyl9Deb2t5k5R+ X-Received: by 2002:a05:6a20:e616:b0:a6:7529:7c99 with SMTP id my22-20020a056a20e61600b000a675297c99mr90416807pzb.5.1673598220714; Fri, 13 Jan 2023 00:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673598220; cv=none; d=google.com; s=arc-20160816; b=ZJMJckHA0YVgIgMo2bKqYl0T+6iYdztk0kUgoPm6FGu454hAIBaHr4+i8p/v5mlGVA Fnqi/+3gjPlyi9ZCIRCB+WtedUleCqKhHP/BCUCUDxO/8z5wTi0GH7lrt8MFPZ90HkvR GDvu9cVDiBK5RPVRlTjm5sR3An9YNJuKkFOfZl17niVaKdf+wYxr/cataItHbvWFsSzS ISnqqHHGV16S0lk0MwGpj19oNcv0E5kKUiZ6IA8uh3p7s3tHmwowf/wZtzPwFW080IVN V90t3MlbO0W/5yNko41KJHbUY/O0OkhtXkd63XyRbIu5hVRMEdld8aZjUkRXvM13ZPSC f17g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=W0+4RXTlK0IqIB9mYO3YSmFVYM13UL+Gup7cLGu7Nzw=; b=JtWC+NWyk+nOEPEsX26fHjbvyeu+NXjxrff4ILQaVsVUkXdBri1X1Z4mZr04X2XOTs p8H9kJlgKzQLMszvXIflex9oFbqkRXKWs+eqJpuGPmtB20h/tdOR08KCcHwa5dCvK1CY tqWlpRbHR13Pl0WW+NWEUVnAf9mlIWIkBH4EGp33TAGP7FR/opkU2ce53Ic/ZMOv3gTG LQqy+wZUqJ+VkutHhnuRYJAbBAL2lLHXUTFfWGYkJIewoaJa/p/A7A/SsJMVO/tJM3Vq EQmPqnpDBNg2BY6TkaRPyQUtad8/WTOmKqTUquifYaFk7Bax2QsBi4c04911Dl4VuUL9 6bQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Fmn00t90; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a637242000000b00477aeffa74fsi21287527pgn.107.2023.01.13.00.23.34; Fri, 13 Jan 2023 00:23:40 -0800 (PST) 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=@chromium.org header.s=google header.b=Fmn00t90; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240941AbjAMIK4 (ORCPT + 50 others); Fri, 13 Jan 2023 03:10:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240939AbjAMIKJ (ORCPT ); Fri, 13 Jan 2023 03:10:09 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5648321A5 for ; Fri, 13 Jan 2023 00:09:22 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id i70so967540ioa.12 for ; Fri, 13 Jan 2023 00:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=W0+4RXTlK0IqIB9mYO3YSmFVYM13UL+Gup7cLGu7Nzw=; b=Fmn00t90xJPmYNPJkrLBinV7c53WSSG1nRO2CEfpjlJfQU2BIZzTmdL1R0NOTFpb9Q eR4ku2xTE6T2EWT8UoP4xt9FpbjU/g5bDKOeEHDAIe56Fp+yotzNdcp0EKF8GTBsTCkt /hm6KiUd+IhQWCRDMH7pa5M0uSbadJuDDgiOA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W0+4RXTlK0IqIB9mYO3YSmFVYM13UL+Gup7cLGu7Nzw=; b=A7D0Uq0Tmsj50bVZNNwA3WRpxR5B3gVZPjQy2B4NP2tI0dSeN8syhxDvyfZhjK3CuP xzH6M9mFvz6HLKy4wUxygakG5Unt+OTtf3ZdrLNOpIpt93zNY7ag/c9KSE1dhTF8HfIk PaLUUKHmZ/AnxpF8hFCIGmyoBHNWJdYIhcy4lMwR5TkAvatw3EU+2R7BC1TEHSvdzldk 62u1Xmly8eA0kieIjJoQat3sakWwnJ0xHZUJqMHZ86chwaqWkx/TvdJnm65DM8MnQ6JL SAHOKV16OZv+45XvXoTj4y0xWPidAzGhNFW0zKK4YN73OBv4/lhzHmpbl72p7hHg3xx8 Myng== X-Gm-Message-State: AFqh2kphywxOFRDNVoLKBOHnZEMh/+BVVfGK0YP9J7hblGGJnjfHwYk7 AKZHGK+6qbWkQ4dat5kxHV0zz3gFi775IDCUc892Rw== X-Received: by 2002:a05:6638:1a7:b0:38a:3770:2fa2 with SMTP id b7-20020a05663801a700b0038a37702fa2mr7649958jaq.208.1673597361628; Fri, 13 Jan 2023 00:09:21 -0800 (PST) MIME-Version: 1.0 References: <20230112042104.4107253-1-treapking@chromium.org> In-Reply-To: From: Pin-yen Lin Date: Fri, 13 Jan 2023 16:09:10 +0800 Message-ID: Subject: Re: [PATCH v10 0/9] Register Type-C mode-switch in DP bridge endpoints To: Rob Herring Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Krzysztof Kozlowski , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Prashant Malani , Benson Leung , Guenter Roeck , Stephen Boyd , =?UTF-8?B?TsOtY29sYXMgRiAuIFIgLiBBIC4gUHJhZG8=?= , Marek Vasut , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Javier Martinez Canillas , Lyude Paul , chrome-platform@lists.linux.dev, Xin Ji , Thomas Zimmermann , linux-kernel@vger.kernel.org, Allen Chen , linux-acpi@vger.kernel.org, Hsin-Yi Wang , Dmitry Baryshkov , Douglas Anderson , Imre Deak , Jani Nikula , =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Kees Cook , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , shaomin Deng Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi Rob, On Fri, Jan 13, 2023 at 6:44 AM Rob Herring wrote: > > On Wed, Jan 11, 2023 at 10:21 PM Pin-yen Lin wrote: > > > > > > This series introduces bindings for anx7625/it6505 to register Type-C > > mode-switch in their output endpoints, and use data-lanes property to > > describe the pin connections. > > > > The first two patch modifies fwnode_graph_devcon_matches and > > cros_typec_init_ports to enable the registration of the switches. > > > > Patch 4~6 introduce the bindings for anx7625 and the corresponding driver > > modifications. > > > > Patch 7~9 add similar bindings and driver changes for it6505. > > > > v9: https://lore.kernel.org/all/20230109084101.265664-1-treapking@chromium.org/ > > v8: https://lore.kernel.org/all/20230107102231.23682-1-treapking@chromium.org/ > > v7: https://lore.kernel.org/all/20230105132457.4125372-1-treapking@chromium.org/ > > v6: https://lore.kernel.org/all/20221124102056.393220-1-treapking@chromium.org/ > > v5: https://lore.kernel.org/linux-usb/20220622173605.1168416-1-pmalani@chromium.org/ > > > > Changes in v10: > > - Collected Reviewed-by and Tested-by tags > > - Replaced "void *" with "typec_mux_set_fn_t" for mux_set callbacks > > - Print out the node name when errors on parsing DT > > - Use dev_dbg instead of dev_warn when no Type-C switch nodes available > > - Made the return path of drm_dp_register_mode_switch clearer > > - Added a TODO for implementing orientation switch for anx7625 > > - Updated the commit message for the absence of orientation switch > > - Fixed typo in the commit message > > > > Changes in v9: > > - Collected Reviewed-by tag > > - Fixed subject prefix again > > - Changed the naming of the example node for it6505 > > > > Changes in v8: > > - Fixed the build issue when CONFIG_TYPEC=m > > - Fixed some style issues > > - Fixed the subject prefixes for the bindings patch > > - Fixed the bindings for data-lanes properties > > > > Changes in v7: > > - Fix the long comment lines > > - Extracted the common codes to a helper function > > - Fixed style issues in anx7625 driver > > - Removed DT property validation in anx7625 driver. > > - Fixed style issues in it6505 driver > > - Removed the redundant sleep in it6505 driver > > - Removed DT property validation in it6505 driver > > - Rebased to drm-misc-next > > - Fixed indentations in bindings patches > > - Added a new patch to fix indentations in Kconfig > > 4 versions in a week! Please slow down your pace. When you send a new > version, you move to the end of my review queue. I see. I'll keep this in mind in the future series. > > IIRC, these 2 chips are a bit different in what the mode switch or > muxing looks like. One had a built-in mux and the other doesn't? Do I > have to go research this again? No, you need to explain all this in > this series. Yes, anx7625 has a built-in mux while it6505 doesn't, but it's for another use case. IIUC the built-in mux in anx7625 is designed for automatically switching between two orientations of a single Type-C connector, and in that case we might need to register an orientation switch. But we don't have hardware for this use case. The use case this series aimed is having two downstreams for the bridges, and registering two mode switches to switch between them. In this use case, the built-in mux of anx7625 is not used and the behavior of the switches is the same as it6505. Explanations and TODOs have been added in the anx7625 driver change. I can also mention this in the cover letter in the future series and please let me know if anything is not clear for you. > > Rob Thanks and regards, Pin-yen