Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3287811rwo; Mon, 24 Jul 2023 08:54:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEbxFTsAeCQADz0yaI4TLMKKhualPDQ4CSqwLCXVqU0aaTxy6c976ejJDSRLKH2V1Z/yFG6 X-Received: by 2002:a05:6512:2815:b0:4f8:7325:bcd4 with SMTP id cf21-20020a056512281500b004f87325bcd4mr7013870lfb.0.1690214046858; Mon, 24 Jul 2023 08:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690214046; cv=none; d=google.com; s=arc-20160816; b=BUlO6mb3AZnsI8lh71Y6iTcBR5QrGS3GWbVGQkLfghC/4xZY4Ms/KgqEWW6Q9MU2rd 575lDQ0nw2+1z18p/3ewAPrfXE1WZfdEd0Hm73RC7k5yxu0C6Y0xIq4SxA1r7XttDOsp wM5BKn7w2d5wlBeBjuJZvpet4O6Sssy2oedHfYHqYAu57My142FmOKie9arVnFfSW9+a qSUAJ2OJxJ97wU3ACzVsIcftXsG0gP/W8K21oPdjcEJnLTmnGKuDFW3WeFEb2PDY9PRk 8EUi9E2Bpq34yoDBc+HYSxkjK8JTW4NlCACA2DSSQHq/jOvUP2SmpLGpXeJsTkbWOdlK VbDg== 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=xRLxtzIxLI2M39Mo8Uu/Hhu5rkUT1rnl8WAV/m/Y10s=; fh=NuwzVEuV6GvY1PF4xfRex0iJqPMEvenFRxjocQchqrs=; b=oiGKqhpPWV/9m2FeusUCoUaf9BWC7lyg3+1MuCSFQVhkSaFmFgbS/f4IIzeYUc9dib Ga57EyYCEs950AvOcuRhrH8Zgqc8lV/4vyMBZrSo7YaZv4KkmCzhHr2aAKSbCyXoKG2w AYqjNKFPc7YFOFf7hyw2tYf/ggsjWKhHYd1Hv1e8pzcFA9qrxxm5b5BrtPPSEM+2Yi0N jczcc7gt3yc/nNp+uvhzjnSaycSsj3mqmYfV3rB0xwuljN4bgoCfh8U4AL+hCSdt6LxV XcwMfKF4LLiVaJL3a2d5Q/c648iu6ZUqWnEWmUf9AVlpcwqluoF/c6V2oaaGdsutsru2 6vxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KxZNmLvG; 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 si8-20020a170906cec800b00992f1a4593asi6680137ejb.472.2023.07.24.08.53.38; Mon, 24 Jul 2023 08:54:06 -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=KxZNmLvG; 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 S229554AbjGXPll (ORCPT + 99 others); Mon, 24 Jul 2023 11:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjGXPlk (ORCPT ); Mon, 24 Jul 2023 11:41:40 -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 4C7DAB7; Mon, 24 Jul 2023 08:41:39 -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 D571560C49; Mon, 24 Jul 2023 15:41:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FBE2C433C8; Mon, 24 Jul 2023 15:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690213298; bh=FwmJyUFEwRmW6GyLKrRzaoOIFKD1ZixYyekFLFBjYm8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KxZNmLvGWF0DcvPN5zy994G1T8upsOy4oNv0aa5nIm9dPf/QVVpQZn848TRZ1rklg 3W1Bdkz6crdOaUKTZJTf63y+9/GThMSsqtya4Gl9U9YgsTgm0RLlGuHo6H6C5/1VaI 9zWORpzVrZesTnVYEsypK7vADRQiw93qJVtLfSG/JjoSJ1ZfB0015D7Sf5a4wKrXe/ kGnkkRJY/FoAVIib6/IqSS/08ZYLBSqS8CQiwQ60ySUCkGDBDg5Xc9nf4w7qQK40yc siMJJO9hrCcKMdsVuPTxhP/ROnUDZe+VLzRnAYTnPhxlJIsHxIQqHdOGfX/Oe4wP9Y 91yoKaZiERL/Q== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qNxgz-0005Ey-0h; Mon, 24 Jul 2023 17:41:49 +0200 Date: Mon, 24 Jul 2023 17:41:49 +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, quic_harshq@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 [ Please remember to trim your replies. ] On Sun, Jul 23, 2023 at 08:29:47PM +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: > >> +#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. > > Moving the defines would be sufficient right ? Just wanted to know if > there is any reason you are suggesting to move the structure as well so > that I can update commit text accordingly. The defines are used for parsing the members of struct xhci_protocol_caps and they belong together even if no driver has apparently ever used the structure. Johan