Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9886726rwr; Fri, 12 May 2023 00:12:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NYDiHZLDyuHRNAXA3lheZ9HTup8AbllQ/9uZOrWkOpZcYeTIB53fqlB/Lwmq2o7+LXBpV X-Received: by 2002:a05:6a20:394a:b0:101:9344:bf89 with SMTP id r10-20020a056a20394a00b001019344bf89mr13760171pzg.49.1683875527785; Fri, 12 May 2023 00:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683875527; cv=none; d=google.com; s=arc-20160816; b=qXrT49frkcC/Ll9tsVlaWwIaOGvAGp3ZWVcVr5uVrg8Hnsgf7pbDBQCGQBD0AvYLi/ rfbvTfz+Dxfa5UNopkBhtWUjrVosA/GtViVVTz0rurRRRTca3TXJmXZeSVOEbFIQKH3O +pXJvdQZX8kgAQT7RhNXQGBPPtpuJBCUt7pv5iUItMgqSuwrUzb6gwbpBrrUy9QF4eSG 5Zq9QYTmIPPQqLutI781Oij7tCuCTv32YXhrax5ziMW1xAxP2V6MXJOaETspCA4MiTIR HGuDxohvIKVfahY0Zw2peEbpqt2z4V1Cjcw9Dek0GPeXuC+PwJS6iYXs4FqkGLo6PLU7 KH9Q== 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=Hk7vHQ0BNvgpEVliVNBIkVdWv3ZlYBdzOpOVtAlYss4=; b=bb7tZHhRahUmpJDY1R2R2DsW4FxgjE5SoCxkwDtKr5QVcQOS2dVe3qSw0gCf5RGhJO Q+2hjW2Q12ZRnr3nakiGvo3s0eaGSyVDs9ukPzUIACYxaaVzP7PcCuZ1H8mGzhYsMiCT qnt4iVOMoKiQuevA8/hZgDOlFvB1703nSLRj1Q6H7+DxkgH3g2Pj+27d/Dhn/HLmYwpo xfXyQvJ61sZfGXgskeoRqUt8m/VAaRYagsoHBL3BMTwM7Vzshxemf/39S3Q1VBxztxTa 9NyP1k9BE0q1ogTk5+qu79i1Fl6bt/si5RaE8gBmBvdOEDwf+M+gze57gB2JieOiMslg 7zEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nHcLuBAM; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h191-20020a6383c8000000b0052c4331ea8dsi7657171pge.27.2023.05.12.00.11.55; Fri, 12 May 2023 00:12:07 -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=@linaro.org header.s=google header.b=nHcLuBAM; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240032AbjELHD3 (ORCPT + 99 others); Fri, 12 May 2023 03:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239826AbjELHD2 (ORCPT ); Fri, 12 May 2023 03:03:28 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 006B97693 for ; Fri, 12 May 2023 00:03:23 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-50bd2d7ba74so86480419a12.1 for ; Fri, 12 May 2023 00:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683875002; x=1686467002; 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=Hk7vHQ0BNvgpEVliVNBIkVdWv3ZlYBdzOpOVtAlYss4=; b=nHcLuBAMzY/Xr1V6NT3wCzGZRsgLH6aCKFw/q/+DZa3cLizCmLSRPYrRRzT3hGNrKu Y8ARm743/EI7Q0mXCI9NQ7XEfR6CLAffXvd+u1VwBCrJP6DDFM0lirSNwUPsADL/Gk5k bBRaKeLZQrwIJ7GaN2fbx8+8aMK/dt7KSUUBquVYFCNYFd6VIfUjD9JcG9I2bGy7UXms Isc+BpcyNmGDJaWm/Imr54Bw5wp4HxqPmCuXhuhIGd90B42iAYGN72FKV30crVmsx/yN QEeSaSRKa/G0wyZ2GepsxqXr+yhGY80GYlMcx6FwnNU+WXZDZAQMUggJsC9rH8WNBN5m CuiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683875002; x=1686467002; 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=Hk7vHQ0BNvgpEVliVNBIkVdWv3ZlYBdzOpOVtAlYss4=; b=MWW84AQsRVYeI+cIpd1BzMgCYDcvICAgBW2EASlhmo0PCWSgnI3qmNnEfXXziQXwH3 ayk8uzXB750yPJ2TTgA8lKfVN+NPkOKFMCiZeC5pyBsY9N6hWxOGhXVievbdOQjrlN6E drbp7AOH7E5XDG2VXTpL2dFvODwpaIXCZccXu4MmwFaFFGZkrNOwkVzqmxTkk6shrQkK r3Ic3CFzG/nfyws9BlE58BkKnkxyRZnykHIGVamoRxbm/K+iqnb1G1jec7Iu5pX9vwUR N5mcbeI+Dyhvgupgogi+L8S9xjkQtvQijq971vRpNFtCRsX1vfuSntSObvRh5YYEhgNX yQaQ== X-Gm-Message-State: AC+VfDxFPWuwv/3MnxgQ3yejkt40+c4RAJNOf5fvZwg5Qcsi0x7GqW9s 7D4wi2HZmdF8x12Xrh6n+YMVrw== X-Received: by 2002:a17:907:7baa:b0:966:1484:469e with SMTP id ne42-20020a1709077baa00b009661484469emr18120747ejc.17.1683875002490; Fri, 12 May 2023 00:03:22 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:7ede:fc7b:2328:3883? ([2a02:810d:15c0:828:7ede:fc7b:2328:3883]) by smtp.gmail.com with ESMTPSA id mc11-20020a170906eb4b00b00969f25b96basm4410829ejb.204.2023.05.12.00.03.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 May 2023 00:03:22 -0700 (PDT) Message-ID: <76dfbf27-8ad2-6e09-5354-b006b9e81af1@linaro.org> Date: Fri, 12 May 2023 09:03:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH V2] dt-bindings: usb: dwc3: Add interrupt-names property support for wakeup interrupt Content-Language: en-US To: "Mehta, Piyush" , "gregkh@linuxfoundation.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "balbi@kernel.org" , "michal.simek@xilinx.com" Cc: "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Simek, Michal" , "Paladugu, Siva Durga Prasad" , "git (AMD-Xilinx)" References: <20230511072154.2030703-1-piyush.mehta@amd.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 12/05/2023 08:57, Mehta, Piyush wrote: > Hi, > >> -----Original Message----- >> From: Krzysztof Kozlowski >> Sent: Thursday, May 11, 2023 3:05 PM >> To: Mehta, Piyush ; gregkh@linuxfoundation.org; >> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; >> conor+dt@kernel.org; balbi@kernel.org; michal.simek@xilinx.com >> Cc: linux-usb@vger.kernel.org; devicetree@vger.kernel.org; linux- >> kernel@vger.kernel.org; Simek, Michal ; Paladugu, >> Siva Durga Prasad ; git (AMD-Xilinx) >> >> Subject: Re: [PATCH V2] dt-bindings: usb: dwc3: Add interrupt-names property >> support for wakeup interrupt >> >> On 11/05/2023 09:21, Piyush Mehta wrote: >>> The hibernation feature enabled for Xilinx Versal NET SoC in DWC3 IP. >>> As the DWC3 IP supports the hibernation feature, to handle the wakeup >>> or hibernation interrupt, add host mode "wakeup" interrupt-names >>> optional property in the binding schema to capture remote-wakeup and >>> connect/ disconnect event in the hibernation state. >>> >>> Signed-off-by: Piyush Mehta >>> --- >>> Change in V2: >>> - Addressed ROB review comments >>> - Updated name of interrupt-names property with "wakeup" >>> - Move interrupt-names property from dwc3-xilinx core to dwc3 core. >>> >>> Link: >>> >> https://lore.kernel.org/all/CAL_JsqK6_7XD7+w+EQvPPmbmSOpfo3JDb0xDN4St >> u >>> HUm1kgchw@mail.gmail.com/ >>> --- >>> Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> index 50edc4da780e..db512769bd80 100644 >>> --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> @@ -53,6 +53,8 @@ properties: >>> - const: dwc_usb3 >>> - items: >>> enum: [host, peripheral, otg] >>> + - items: >>> + enum: [dwc_usb3, otg, wakeup] >> >> You didn't add only "wakeup" but also dwc_usb3 which does not look correct >> here as it is common interrupt. The change does not match commit msg and I >> don't know what you actually want to achieve. >> > > We have dedicated irq line for hibernation feature, "wakeup" irq line triggers hibernation interrupt and the system wakes up. > DWC3 core supports the hibernation feature, we have a dedicated code which is yet to be upstreamed. > As the hibernation feature provided by dwc3-core, so this will be supported by other SOC/vendors. > > For this, we need the interrupt-name/ interrupt property. To enable the hibernation feature for > Xilinx Versal NET SoC, the interrupt-name enum would be: > - enum [host, peripheral, otg, wakeup] Yes, this makes sense. Other combination could be dwc_usb3 and wakeup but only if it is real... adding random entries sounds like not really. Best regards, Krzysztof