Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp681611pxb; Wed, 16 Feb 2022 01:53:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiwo7h8njvj7aeotPf1bvFvf96ENhZyyyBNx+eWUGpmOc5DS/da0GEZsxj2QowBJ201KRI X-Received: by 2002:a05:6a00:13a4:b0:4ce:118f:a822 with SMTP id t36-20020a056a0013a400b004ce118fa822mr2390259pfg.33.1645005201055; Wed, 16 Feb 2022 01:53:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645005201; cv=none; d=google.com; s=arc-20160816; b=JR+pmcMRkgNFQjogzmC6R8q5Ni498SXirMJ1dQY2HlsKJlmGTLK4i8wZb7a6t9AFDD ptY/JXfevVPNObGYSzna44s1BGiOaiCdK9KDzf0EaXEossyhnNHPPlKyhaS2aq2b05hz OfbEJ2klsEzGBDDsLkv+gNGquGmOdTimtnZRyvgWp0jUvqwDoWy7dYVwN4VROk8k1EW9 AraLly0wDE65RH2+KHiFAxtHuPiOG0LVzA7Ry6ZM7LXhaOyo7kDAHQKTbBSbkXxzr+XB xBamnaWB5hQ6K7QUlfm0kTh0Bh0NXw/jsjwAfnT/CBRK91w+CgdCbG355WcuWGRl3QW3 W21Q== 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=idK/WPsNn9ovkHFdsU7Sif7/eTWJW74G0kzJx4BCAZk=; b=05/RGiOf+H8l3gHIAO4VJwYxwozk9H/j15o5Pdn4Y4GnvOEKFeqPjezmS0UOJMgNfR Z4YZ+Oy1p4fRVWzmaVah4ZT8azCz0yUmyjOvAPmX4PvK2mg1wJCOuKYz7OIGB6xCrdwQ 8TFXnF4sai4xDb6aRSMhuCQ+VS9yVV6HjU0L9PKYaTD/neC7CPwBTp0zg1yPJeFzHNKz qHCvVhEg4Znnuhkw80vZWk0H+Wj8M/afqDGOS8d3Ik43Hdwj4pVBlvNU06S79IHQRcRU XqXJM7q2fCD1LSRrq3oIgVSD/W//bVv6Gcdjgl9X6Os7EUlxlgr1+wrl5SSu3TBUOR7C u8EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=oWhRr51V; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z137si5113422pgz.224.2022.02.16.01.53.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 01:53:21 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=oWhRr51V; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 462B397B80; Wed, 16 Feb 2022 01:53:14 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232489AbiBPJwd (ORCPT + 99 others); Wed, 16 Feb 2022 04:52:33 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:51900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232574AbiBPJw0 (ORCPT ); Wed, 16 Feb 2022 04:52:26 -0500 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6CB814085 for ; Wed, 16 Feb 2022 01:51:59 -0800 (PST) Received: by mail-oi1-x22c.google.com with SMTP id s5so447054oic.10 for ; Wed, 16 Feb 2022 01:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=idK/WPsNn9ovkHFdsU7Sif7/eTWJW74G0kzJx4BCAZk=; b=oWhRr51VmZU2S2gYaR5kbbLcR2oXecbmfKsZjko7tJ8FT7VDZbsbDpzlXUSHGGZE2R OCD3N5//IxagJbjaThbI3lobLqGexsB2KenC9HSrf4i9MBD65cK/kpSzy2HWdrqNZ5Is Nu62dR40mf/Edvdo7eW3xe2jHPksS/QIpKevTsyiNmGKhTguFs17sCXWQ5J3/+mhtLa+ 9PKQQLnuQn/H790sO1tDsu5Yr1lBmLXa7HP54dfazNtxFOCfMRMXx1MxO4pWhehIRlIr Yb4DmxqjB9nD+wHD/KEZlpoiCFlEK6aUVt6Tt1nivmpzvrC17wOYBnpIf4dIoR0ni0Cy fhTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=idK/WPsNn9ovkHFdsU7Sif7/eTWJW74G0kzJx4BCAZk=; b=Z7Jbhv/UhRHKhBmpEDdVOx/STKmwebR4CEwtV2sQ4qoxAP1E/69+mxYasKTIsCEvYo PgEyXvh9xvAY+Zk2b3jKWz5kzF8D+Sts8ZrTYhmW2iPZ8jSw9H6gPbR6QPi7IM2meaKd FLoU/M/GSTqtTMKh6Zx1yBaj7BoyFtsOhpSOIG2mpUapMGwJH4/5PWm/wMXrNu5ppWsj 6TXGhSV2ttRKLjSGOZDbikEVesAuTS+SzBJL1Wsu2xZBpiZWbj+3Wxv+DuKkQMx4jwS5 OfLUmjT3ZAqWLrLjhhyS4emCkpL6A/B7IKX+xQGCSSdw5sOkShTmVg9iNp5CyxDe5VgR RbTA== X-Gm-Message-State: AOAM530H9kppPCfYSom/2kyzjA27Zr3HZTLxA7S+pMDWMfljV8zCqX21 xWVO9JnlZi+g6xyzVgs7PEY7TA== X-Received: by 2002:aca:b585:0:b0:2ca:e90c:3b59 with SMTP id e127-20020acab585000000b002cae90c3b59mr286602oif.80.1645005101046; Wed, 16 Feb 2022 01:51:41 -0800 (PST) Received: from [192.168.11.51] (cpe-173-173-107-246.satx.res.rr.com. [173.173.107.246]) by smtp.gmail.com with ESMTPSA id t192sm1520931oie.14.2022.02.16.01.51.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Feb 2022 01:51:40 -0800 (PST) Message-ID: <55aa0436-64f5-1ecb-d95d-721e45f6fb95@kali.org> Date: Wed, 16 Feb 2022 03:51:38 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v10 6/6] usb: dwc3: qcom: Enable the interrupts during probe Content-Language: en-US To: Sandeep Maheswaram , Pavan Kondeti Cc: Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , Mathias Nyman , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_ppratap@quicinc.com References: <1642398248-21753-1-git-send-email-quic_c_sanm@quicinc.com> <1642398248-21753-7-git-send-email-quic_c_sanm@quicinc.com> <93b68251-7e7e-ac92-fb47-346c410744b2@kali.org> <20220118095255.GB11385@hu-pkondeti-hyd.qualcomm.com> <78c90e46-666b-bc9b-235d-ae4c69e19929@quicinc.com> <601cdc74-392f-dd4f-7ea0-8e65c6b6d7e2@quicinc.com> <52b37547-3e78-b18c-307d-7eedf5baab0d@kali.org> <0e006cc0-2760-195a-35b9-0a2f6e8452c5@quicinc.com> <47ae3e73-5880-bfb7-fc14-7dd95a75ce14@kali.org> From: Steev Klimaszewski In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 Sandeep, On 2/16/22 12:27 AM, Sandeep Maheswaram wrote: > Hi Steev > > On 2/16/2022 8:52 AM, Steev Klimaszewski wrote: >> Hi Sandeep, >> >> On 2/15/22 3:40 AM, Sandeep Maheswaram wrote: >>> Hi Steev, >>> >>>>>> >>>>> Can you try with IRQ_TYPE_EDGE_BOTH in your device tree and see if >>>>> you are getting the issue. >>>>> >>>>> Regards >>>>> >>>>> Sandeep >>>>> >>>> I just tested here, changing both of the IRQ_TYPE_LEVEL_HIGH in the >>>> yoga's dts to EDGE_BOTH and I still do not get a booting system. >>>> >>>> -- Steev >>>> >>> Please let us know what devices are connected to your setup and >>> share the device tree file you are using. >>> >>> Please share the failure logs also, >>> >>> Regards >>> >>> Sandeep >>> >> The setup is a Lenovo Yoga C630 (Windows on ARM laptop).  I do not >> have any sort of serial console access to the device, unfortunately.  >> Even when taking it apart, it seems to have some sort of 26pin debug >> adapter port that I've never seen before which you can see on the far >> right in this picture of the motherboard at >> https://i.ebayimg.com/images/g/a2EAAOSwwzZiCxPM/s-l1600.jpg >> >> I do not have anything plugged in to the USB ports (sometimes the >> power adapter, but I have tried both on mains as well as off.) >> >> Which I added as a commit to my kernel tree, and pushed so you can >> see the full dts here: >> https://github.com/steev/linux/blob/c8234e664491e35e3edcd211f3b78c04436402b0/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts >> >> I am booting with the command line arguments of >> >> clk_ignore_unused verbose module_blacklist=msm video=efifb >> earlyconsole=efifb >> >> I can't provide a boot log, because I'm not actually getting >> anything.  Booting a different kernel, and it doesn't appear that >> anything is logged at all. >> >> >> -- steev >> > Can you try with below change > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi > b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 0d6286d..0a9c0f7 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -3796,8 +3796,8 @@ > >                         interrupts = , >                                      , > -                                    , > -                                    ; > +                                    , > +                                    ; >                         interrupt-names = "hs_phy_irq", "ss_phy_irq", >                                           "dm_hs_phy_irq", > "dp_hs_phy_irq"; > > @@ -3844,8 +3844,8 @@ > >                         interrupts = , >                                      , > -                                    , > -                                    ; > +                                    , > +                                    ; >                         interrupt-names = "hs_phy_irq", "ss_phy_irq", >                                           "dm_hs_phy_irq", > "dp_hs_phy_irq"; > > Regards > > Sandeep That does allow it to boot, however.... it breaks USB. [    2.013325] genirq: Setting trigger mode 3 for irq 35 failed (gic_set_type+0x0/0x1b0) [    2.014063] dwc3-qcom a6f8800.usb: dp_hs_phy_irq failed: -22 [    2.014134] dwc3-qcom a6f8800.usb: failed to setup IRQs, err=-22 [    2.014351] dwc3-qcom: probe of a6f8800.usb failed with error -22 [    2.018496] genirq: Setting trigger mode 3 for irq 39 failed (gic_set_type+0x0/0x1b0) [    2.019124] dwc3-qcom a8f8800.usb: dp_hs_phy_irq failed: -22 [    2.019193] dwc3-qcom a8f8800.usb: failed to setup IRQs, err=-22 [    2.019372] dwc3-qcom: probe of a8f8800.usb failed with error -22 steev@limitless:~$ lsusb steev@limitless:~$ -- steev