Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp414753lqp; Thu, 4 Apr 2024 18:26:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQiMmI3yRapc7insrbLvMD4nTRiW13FlhJU6FJ4ufmvWTYA3n+B3cxmyQpVS7mZT4RfMh3M/Y7kRiDW1A1DSKamJD/Jjho84447jxoIw== X-Google-Smtp-Source: AGHT+IGY0G4Fto3Uukbhhg7Fa/zEpgPvtcZQLakKu/vnFAoEYYJyRhuYi+OdkqagjNHxJ9F4A/d5 X-Received: by 2002:a25:9e81:0:b0:dc7:49a0:7f87 with SMTP id p1-20020a259e81000000b00dc749a07f87mr3439280ybq.63.1712280372038; Thu, 04 Apr 2024 18:26:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712280372; cv=pass; d=google.com; s=arc-20160816; b=hh8r/TBkHhPc9DBAp7vTPNAKCbEdxOwdYUm0vWTRH36nj7xQFhlHadbBDdUhMl7+cQ Rw4fu9GVB2aPq1Bv4LhymmxoPyOaPjvhTWfRU++wQutFuCIDKUrfYEmDCu02tJ+m24r4 n66RsYv0KTAkoWYnglQMWbwnQE5CGIPzbscEkqa8m85unpgzcvf6dY1YzGYH/qAdoVHF FyXHtRwUXiJkMs4fStsvopksp1F7p3PThdVz0aFsVi9Zzh6lxw655u+MXShAGMoC6jv4 FqGRvkNtTLTGxQuTKmNlJs9cvsuJMhhYEfB/2mYd7ktoNlFsRP5RUghNlYMbTdGnDuEd IVwQ== 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=O5dtNG1z2cvTQQaBaWNF2qI0ydnL32rMZCbAqJKz7O4=; fh=dOhuSlT4zzdDfDtaxriKKTddRSc5ZgFvYLqNvDuhZis=; b=rTJxStrybOaTrs39tIb5NXQkXmqPMTru8j5hq0UqW/tUyfWNDnakbOEkfrpptkYUcc /zV/hrke8cLKwFNL3wTic1zu4hsTNOs6r7rCdSDjYaLzQezxG/NoEm3mvGLC2iUDGu86 deimvSqgCutx8YjAj8ZMp1CEkNVrYLkhjElS/gFz9Sn+gjarFp+nhzANocMxENoDBi5d eY5kdg6YtJEIjMyGX0vgk8Qn+de/RjnCaXRClKHxEkDIDT7RbhvHjrX3LD3C+h4SCqBL GSy3p/Ubr92oWSToJNcfeEPhyLu+Vw0A1TSthidqy793E7Vna574pNFF+dawQgP7LcYc fhCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aCIGYXMU; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-132306-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t15-20020ac8588f000000b004315f0aa54esi693897qta.366.2024.04.04.18.26.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 18:26:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132306-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aCIGYXMU; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-132306-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C1FCB1C230D5 for ; Fri, 5 Apr 2024 01:26:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD46CDF4D; Fri, 5 Apr 2024 01:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="aCIGYXMU" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 3C23D7484; Fri, 5 Apr 2024 01:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712280359; cv=none; b=DcVF3FEqRhWcMfG4XtadDYIfUn0LHiV5DyTdKnJqQGgXSRV/RkFh2lGwxZKnw+C3vVfCHJCZjYrb6zP/MXDbzFwCeXv2MAfOJI19pE9zNDrhDtnlMy6Q0op7LVQidHteBOYlWWHImataZZSnZD8MZ5CHQTWJ3Ppr25suf3fngJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712280359; c=relaxed/simple; bh=VxNzn9NzUzbYGOkFQsAjckg4Rrz38PKu14VlBGuKaPw=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mp9nXFExocriKMULA37FGeVOkd/8wo+DZQ7CimgtLZZdiZJVEz6ErG7qTuNHq8pGjfHSPzBReaRpVxn9K/NnAVjtPzkVAe8iDBy04nugbLyAw6JwG+To1YpqRHIUfCg26wFK+/wcCcymAkmze28on8ArakqRM5L33KRdTKrXQTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=aCIGYXMU; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4350oPk3007803; Fri, 5 Apr 2024 01:25:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=O5dtNG1z2cvTQQaBaWNF2 qI0ydnL32rMZCbAqJKz7O4=; b=aCIGYXMUtcLAYxyc7NGn1fX/Vnf5LDCK3yKMM Qzc31yat8acZy0xBrqkSEQXfLuBiBaIAa34CCGlUQ/7mRxkDNCkHuATFrgAwArk8 2rkO7WWtvGfeRJ6wpHWjGrltmbCVPi8LZ/5V7qQx+cutnqkdmE9ZmFlzOISg0Vwh 0jTr7IGeCl5uh1Syjx6ZG/R9JylJU1ffuj+ChXg9KDjWRbrCgkCcEUce0+L+GDYr HrTSYaBOk0FyRIavIOtpZr88MLV/UeVXyfpiPLkvzVkFCQZI+5276j5aWQeEUwfb iFfeyjP9+mg7jENdaiuR+8BEQB9ie4oLkWuNXpT7kBm1kn4uw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x9en0jwdt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 Apr 2024 01:25:50 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4351PnDl026050 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 5 Apr 2024 01:25:49 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 4 Apr 2024 18:25:49 -0700 Date: Thu, 4 Apr 2024 18:25:48 -0700 From: Bjorn Andersson To: Greg Kroah-Hartman CC: Krzysztof Kozlowski , Johan Hovold , Krishna Kurapati , "Krzysztof Kozlowski" , Rob Herring , Bjorn Andersson , Wesley Cheng , Konrad Dybcio , "Conor Dooley" , Thinh Nguyen , Felipe Balbi , , , , , , , Johan Hovold Subject: Re: [PATCH v19 2/9] usb: dwc3: core: Access XHCI address space temporarily to read port info Message-ID: References: <20240404051229.3082902-1-quic_kriskura@quicinc.com> <20240404051229.3082902-3-quic_kriskura@quicinc.com> <2024040455-sitting-dictator-170c@gregkh> 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: <2024040455-sitting-dictator-170c@gregkh> X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: vG80GPtb9uPykzBRJzi3geUKM6jy9qO7 X-Proofpoint-GUID: vG80GPtb9uPykzBRJzi3geUKM6jy9qO7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-04_22,2024-04-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1011 impostorscore=0 adultscore=0 priorityscore=1501 phishscore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404050009 On Thu, Apr 04, 2024 at 02:58:29PM +0200, Greg Kroah-Hartman wrote: > On Thu, Apr 04, 2024 at 10:07:27AM +0200, Krzysztof Kozlowski wrote: > > On 04/04/2024 09:21, Johan Hovold wrote: > > > On Thu, Apr 04, 2024 at 10:42:22AM +0530, Krishna Kurapati wrote: > > > > > >> +static int dwc3_get_num_ports(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 (!base) > > >> + return PTR_ERR(base); > > > > > > This is obviously still broken. You need to update the return value as > > > well. > > > > > > Fix in v20. > > > > If one patchset reaches 20 versions, I think it is time to stop and > > really think from the beginning, why issues keep appearing and reviewers > > are still not happy. > > > > Maybe you did not perform extensive internal review, which you are > > encouraged to by your own internal policies, AFAIR. Before posting next > > version, please really get some internal review first. > > Also get those internal reviewers to sign-off on the commits and have > that show up when you post them next. That way they are also > responsible for this patchset, it's not fair that they are making you do > all the work here :) > I like this idea and I'm open to us changing our way of handling this. But unless such internal review brings significant input to the development I'd say a s-o-b would take the credit from the actual author. We've discussed a few times about carrying Reviewed-by et al from the internal reviews, but as maintainer I dislike this because I'd have no way to know if a r-b on vN means the patch was reviewed, or if it was just "accidentally" carried from v(N-1). But it might be worth this risk, is this something you think would be appropriate? Regards, Bjorn