Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2531746lqz; Wed, 3 Apr 2024 00:06:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWcwR2Zg9JT96XA5N98J+EFbR1GuQDbIx+otHwmLLDD3PssK8HoYoUaOIlGbByIv95CQqUnC5UlccOZV6o+66ChQi5MlLWEppHz3y1dA== X-Google-Smtp-Source: AGHT+IEjaNQSLWAwVs1kAMBpoSAJmSH5yITQwh9qZ0ItRL+DCYPPtTrs9c95T7v8Dq0CMjJIQgyS X-Received: by 2002:a17:906:fac7:b0:a4e:20cd:f868 with SMTP id lu7-20020a170906fac700b00a4e20cdf868mr9012384ejb.44.1712127980838; Wed, 03 Apr 2024 00:06:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712127980; cv=pass; d=google.com; s=arc-20160816; b=01gQxkkksfJV9UG7OzgKdq2OeNlnF7Q76AycPW8lLHB8EU5P4J6Wh+OI7h28gIthjt 9dIlRHQZsxdIP5Y7wTS9ZN7BevKhgZ4BkWCI+dwck4QXcUy7WAr2NO4qWmoYiUAZgw0q x6qPQ6rQrNXacKQJO7w6+4ghtNSQaE3JenrypiCqPcZ8FFEBz8x8iTfPTGp2k7cnkArF nCKw9qgw/RWaHimc13xJCi6zhHlj0lODAyqn+AkoL+aaVE6cnPX+gA9/lA3rMdGzd4Gd M68ga9x/BzZvFBgaOU0qPdbPmxay5993/p9xLZWbvE7GRpzrnx3SE1Qbc5VqH6XdFMse 7Sbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dpkly1l/8czzRYqGoLewmtL8Hbumt2FZY+U8aSgd64w=; fh=p1gJBd+2okAfiF/f6rmp3dMDYVUfA0ALGM6dUvKrQac=; b=bVnGoUozw5wMMkbEdF7FD055O3IcJHPIWSmOVqZd9vSbPrRcPslCpzbq5fbdWebCnh zzrQbEe30jjry9ziN/JAgXO6xCEXuPz84dKCjyblavKy3EOO1pUVK9Meh7/SgNwSmARY V8lyLW8c0UAeX1q2DMaH+Inj70JpObD8ByKsda7uXKUhbHQgtcQD9i45DCYWL3RTtD9P CAIASa1d9Nib2He0ydc233ZGki/41b+LdYSQoLWWyFuAoZHPOY3mDaaJFl7IN+e9zKap VLbXiVUFKx+Z2QSvJZPrqCT3UuAPJQ+/SNwwfoVAc9G1VaqTPtdPGOONBJreqzgl1bEz OFXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zsqgg+cE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hp31-20020a1709073e1f00b00a46c39976ffsi6712539ejc.500.2024.04.03.00.06.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 00:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zsqgg+cE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 904051F2304E for ; Wed, 3 Apr 2024 07:06:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1941B5674E; Wed, 3 Apr 2024 07:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Zsqgg+cE" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29933537F0; Wed, 3 Apr 2024 07:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712127964; cv=none; b=BlE70Kv0Elqe0ZFkDacP3h63PRIbqvH9m5oZ/fyln/NW/g8Eui4EmXrAY27q0vjdRwEOTj20cjrtq9uAiaUL409hpvy/iq/JJeZ0aanrNlzmahNPWYlre1dV/r9veRFuwAPhZ5W05EqkLFBB+9hHN8x24ap7TLJQK57BhnvYJ0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712127964; c=relaxed/simple; bh=pLe1zO2KxOqFTC50hG8lKBdb2ln2PJxOAj1b7Rg2kIo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oTVPmI+gCqivxOYQG33m8qN03maXDy7hoqs0Kf5WEU9fG3eEMpxKvTSHl7DkzEuE1BIbME4RxYJ7CtTKaSXgjVeFZ7cppwMpgo6HhT34d+xc0H8hJu4iyBfOmYk3uLR6c2YnMMjdapU5mZOBdztUm3LgZaqj5nkYAPw900vmjfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Zsqgg+cE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECE52C433F1; Wed, 3 Apr 2024 07:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712127964; bh=pLe1zO2KxOqFTC50hG8lKBdb2ln2PJxOAj1b7Rg2kIo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zsqgg+cEZQMPJJMhRULn+C1BAygbh1Jo+iW/fdyZq38BLsH1GQlSSiLdKKVmIubdl JPv/ktx6eD1Fer7jBzWejLrYpKWe5qGj9woXlvdU6gTT5yazsOjInI65kTaSR1KriK 4Z9uUD/QhThZzfY5cjtpOda9SCsMu/xiQpe8iGWXHmjPOn2q5mcKYWSLjcWTzyUq2k g8suoptVxiw0vnVB8qX1rRlWfOD6qKassulNDmKmBcfB/nLz++BhhN9G0QTvEN67tN 5neo1wSUKQsZLRPIyF2tlXPl3wGkbuz3Cl2opHP29bv/13s4Iz5eaFyJaiJQjboQtD kBMHljPftTyBw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rruhA-000000007BG-01yh; Wed, 03 Apr 2024 09:06:04 +0200 Date: Wed, 3 Apr 2024 09:06:04 +0200 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Thinh Nguyen , Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Wesley Cheng , Konrad Dybcio , Greg Kroah-Hartman , Conor Dooley , Felipe Balbi , "devicetree@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "quic_ppratap@quicinc.com" , "quic_jackp@quicinc.com" , Johan Hovold Subject: Re: [PATCH v18 2/9] usb: dwc3: core: Access XHCI address space temporarily to read port info Message-ID: References: <20240326113253.3010447-1-quic_kriskura@quicinc.com> <20240326113253.3010447-3-quic_kriskura@quicinc.com> <20240402233218.5kngtj56qellnrmo@synopsys.com> <39010f95-b08f-4a57-b3af-f34eb1069865@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39010f95-b08f-4a57-b3af-f34eb1069865@quicinc.com> On Wed, Apr 03, 2024 at 10:54:25AM +0530, Krishna Kurapati PSSNV wrote: > >> +static int dwc3_read_port_info(struct dwc3 *dwc) > >> +{ > >> + void __iomem *base; > >> + u8 major_revision; > >> + u32 offset; > >> + u32 val; > >> + > >> + /* > >> + * Remap xHCI address space to access XHCI ext cap regs since it is > >> + * needed to get information on number of ports present. > >> + */ > >> + base = ioremap(dwc->xhci_resources[0].start, > >> + resource_size(&dwc->xhci_resources[0])); > >> + if (IS_ERR(base)) > >> + return PTR_ERR(base); > > > > Looks like you forgot to address some of the comments you said you'd > > update previously if you submit a new version to the series. > > > > [*] https://lore.kernel.org/linux-usb/af73110d-e13e-4183-af11-aed869ac0a31@quicinc.com/ > > > > Apologies. I agree. I was too much focused on acpi removal and interrupt > cleanup, I forgot the last comment you gave. > > Can I send in a separate patch for this ? The series has not been merged yet so you can address both issues in a v19. Perhaps wait a day or two in case Thinh has further comments. Johan