Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10564029rwp; Fri, 21 Jul 2023 00:55:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGYTE7ir5TMw7UsTbdyXvVehx+uIM684bKFW0Ll62uM5Pi5Mlbdb7OfK0UPZVNFRfsx/cE9 X-Received: by 2002:a05:6a20:8425:b0:130:46ea:29cb with SMTP id c37-20020a056a20842500b0013046ea29cbmr1243625pzd.25.1689926131560; Fri, 21 Jul 2023 00:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689926131; cv=none; d=google.com; s=arc-20160816; b=gtC8qZWzuMkdOq0L6ZKsYKMWdGNBKMyxmD8HF7SN2MzAq3ULOAkS9STyuD8Lg3To/b fOz64BZHKFDoOMYaVsubZoH5Xg4nOIGgeCQuj45oLQ9W6ZcmAFmCrL7BrJaYutwMZdZ3 zHKSn6pahQQ9E9mGK+INs9Dif747bndbcbaAHz2rDDCxIDqRnyfgNdaZpbjPKhOegmmo i38d4XbO9JK+bPZVdxkbHVLCoiUnaMQ2Dekrze8FQJDdupVULTRurGbiID5HHSIpsPxK f2KMb1zDREsaHxWD9Smb/o9hnn8XcBSNr3DRJrjVbGetAvf/40/tf3uxrB7RLenBrYkk SCZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W/+yQQArhQ2w4BG9GIyIjrF/eBukBAcUYF8gIgpmGOw=; fh=d7H5GaWWFW/SAIuWGHhcwi63VOjdTDnm3RNJTHu3y9E=; b=GG1+nQZoAELa5FeBbNBRuq7OV0Q90Y5AMH/75Pe+NqbAcRbF0pOnFxD/BhgkTguS3H 6VuIt93jrJQU9SKo6wOtujl077rltoOsrt9JPhn7eQbNYm6VOh+qaU6cfWMGJ82NS3t8 iVjhFgMNHlSOiB86qIOZatfd1zXas76YVnu2geE6AhDWRoYvjUG8q3Cx3CS23vhclHZR tsbU4GT8BpIw1HafPiwBhvLKCNusODWuOL+99ZOTNtzkIOuDpyV6yS/O8dbccyCc3Q88 gpi0u4PZ5w3YLXTKH+lyhkgHn4/FcvBZLuqwTc0lJpaapaKWKkCbPONGoPZNUiMWAGE1 51oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nCLyshxS; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056a00190800b0066eb5102060si2445330pfi.165.2023.07.21.00.55.19; Fri, 21 Jul 2023 00:55:31 -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=@kernel.org header.s=k20201202 header.b=nCLyshxS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231187AbjGUHoT (ORCPT + 99 others); Fri, 21 Jul 2023 03:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbjGUHoR (ORCPT ); Fri, 21 Jul 2023 03:44:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEA2811D; Fri, 21 Jul 2023 00:44:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7A4F161545; Fri, 21 Jul 2023 07:44:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD808C433C8; Fri, 21 Jul 2023 07:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689925455; bh=Er/BapZb3ALRPOmrjE6iHWD/lgnVLLcsK/VqJs60yPo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nCLyshxSscf0FcD2qfqnOU4ZCp5bAfqiOxoYbib7ddjVIWcaIanoCnij1MWrrDMrD 6fy38OH2di51feftiqQ1daVr0uVucWuCuZ8XFYmTRs76m8aoDWYRAd6QfAL5ip0PQV jd7SeXp86PPDc2OOF9tuJlzCXJVTuFkwFZczU76Dsw1Hb4ATWXEIgDNCo8Ml2KhV3r SBb6OX8PSipIvCC7RYiI5eST+PVw2plCZwGb/MYD3VQSVKX7vt1cTmQpy94Hu+MUnY TsANyvpA+IAY2Ss63kIGn3Z9C3LzreOqLLGiqOF+OByOiCVENI+B8da2qGAwsD1oAW uqDiAZS1yGwCQ== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qMkoJ-0003G1-1a; Fri, 21 Jul 2023 09:44:24 +0200 Date: Fri, 21 Jul 2023 09:44:23 +0200 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , Wesley Cheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, ahalaney@redhat.com, quic_shazhuss@quicinc.com Subject: Re: [PATCH v9 03/10] usb: dwc3: core: Access XHCI address space temporarily to read port info Message-ID: References: <20230621043628.21485-1-quic_kriskura@quicinc.com> <20230621043628.21485-4-quic_kriskura@quicinc.com> <0af6aa13-d83c-8c26-2a60-00cb3bbe4f5e@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0af6aa13-d83c-8c26-2a60-00cb3bbe4f5e@quicinc.com> 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_BLOCKED,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-kernel@vger.kernel.org Hi Krishna, Please remember to trim unnecessary context from your replies (e.g. as it makes it easier to read your reply and later the entire thread in the mailing list archives). On Mon, Jul 03, 2023 at 12:18:14AM +0530, Krishna Kurapati PSSNV wrote: > On 6/27/2023 5:15 PM, Johan Hovold wrote: > > On Wed, Jun 21, 2023 at 10:06:21AM +0530, Krishna Kurapati wrote: > >> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h > >> index 8b1295e4dcdd..42fb17aa66fa 100644 > >> --- a/drivers/usb/dwc3/core.h > >> +++ b/drivers/usb/dwc3/core.h > >> @@ -33,6 +33,10 @@ > >> > >> #include > >> > >> +#define XHCI_EXT_PORT_MAJOR(x) (((x) >> 24) & 0xff) > >> +#define XHCI_EXT_PORT_MINOR(x) (((x) >> 16) & 0xff) > >> +#define XHCI_EXT_PORT_COUNT(x) (((x) >> 8) & 0xff) > > > > Again, don't copy defines from xhci. > > > > Looks like these should be moved to the xhci-ext-caps.h header along > > with struct xhci_protocol_caps. > > > Can't we just give them an exception ? Modifying xhci stuff doesn't > sound good. Can I just rename them and keep them here ? Nope. This is mainline, not Qualcomm's vendor kernel. Johan