Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp88045lqe; Fri, 5 Apr 2024 13:37:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvBTIgnzJbTQvWBLZHQVsOVASBYL1rSbkWK3Aeto16OYKnPFyajAluxH7/n3KhtEvuw3cqtya95I+1ULr6/4+AoB7toyr7lR8aymMftA== X-Google-Smtp-Source: AGHT+IGlCWDE7T9+J8pawA29pnrcp8pdLg5v7FBDFntGs9g/a3nVXGzs6zRuHYuVnZ6kFwSN4cq1 X-Received: by 2002:a17:903:2351:b0:1e3:c16c:18f6 with SMTP id c17-20020a170903235100b001e3c16c18f6mr3505636plh.35.1712349428784; Fri, 05 Apr 2024 13:37:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712349428; cv=pass; d=google.com; s=arc-20160816; b=zTVg2mwqBj14wJmQxMMxhYENUEiyDzQZaEDafxU6r+Wbw6lH1ZNWIynzSuyyHY66DI 9VyO3Rb7E/f8XMZqSSyxGXHvOFZFoQ9RHSgLVsjychup5KfgeRKRaMZeaSlfb572vjd4 Rc4qFZ6OI6aWNkFXDpQFUPV10l77+7w+wN7jRNUjBydkxGpOThSJVccfXd0NXD84yl3p vNqF1uvdIOClOuMxs4+AQjVm0crf7e7Wz1a6Uancd7+x33bxcxN8jRT5ki8yM9ERRk/R WK2HSKTSukAdxEb4rAQEFLerDcfWSayOUs7RFD0l+LcCDF/TF8LB1/0xt/6/R2FV40Az uGfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=/86pn6vkv7rN4o5AcWzNGDdSkHGVI9X5IaswAWqNOJE=; fh=OJxfqU9nu19SX9Yg6thvyHBk/jfks8ohYQ2Isf3ERmE=; b=cK2xDX9a+gsKUoe4SVU5wWcz7kJnv9tyuoDLm3pw7tiUTbI/MU+E7z1PD7QybcISii /7w24qE61isMbLrGVivhD6/DWMWQLCBRb8xYk9/8B7UZNRj5/0tB8cLE3wO6q67LwjRj H0sJlPo96u/10T0EZBrq3l4wLTj0D63LDUa/rFWkj+YM+moSFEl+ZAlPI2jU7AztCluO MyKPXx3nnHmRtsNf/F6XZX1i+r3Q0PMNGlYmi30KYfpxWuQZ+bLdbspnDK3aLHt0Kwei yMgDyI0lle7RKKrFBlj2K7S7ZPnyp1nwYXCnRNvtiPpQYV6V9qBtEXi9w9MxNQbSaiCz u6Sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tNM9bvvX; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-133566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k4-20020a170902ce0400b001e29de2a2f1si1929401plg.247.2024.04.05.13.37.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 13:37:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tNM9bvvX; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-133566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 42404283069 for ; Fri, 5 Apr 2024 20:37:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25955174EF6; Fri, 5 Apr 2024 20:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tNM9bvvX" Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E924171E51 for ; Fri, 5 Apr 2024 20:36:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712349415; cv=none; b=pDAZggJsayCaityOObVABtrG3UiLWXY/CO8ZXZ07EMCPnUbr7kjrxOaWzo+wRzzcSkfCA27v586AT8cdBeD/fh399x9PE9XAODO/pI3QKcqKhKugRpzlwLvZy8m1q14aVQc2pTCT0mVDGZ6RTRqT3Siftql4se30jP5/0rQwnfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712349415; c=relaxed/simple; bh=LU/xQB6V/25bLcvayMCENtNqmkx93CwiDahm1ICVE0U=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WMpR2+NdNaBOIyHnKxiJ52SdeJi03iq8IO6Af6McTStS7fmr8JV7afymGNqW0vio8UM8SwIzNK73McLlDDKvRuunW2F9OvfXct2MHo1OEnsB0CTHZyFNs1FZWeVQqecxVULNl/TK9vJ/66MajNHT9NjIQyrXNYW78eemwBchfYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tNM9bvvX; arc=none smtp.client-ip=209.85.219.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-dcbd1d4904dso2708821276.3 for ; Fri, 05 Apr 2024 13:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712349412; x=1712954212; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/86pn6vkv7rN4o5AcWzNGDdSkHGVI9X5IaswAWqNOJE=; b=tNM9bvvXfdTuhYlt4/Fg14FY0fgOIobs2m0IsRCnESfybhR1ysguuBGP7b9IjTppSz EUL15xpSU8frl7hS5vYiqUmGh8uNnFCw7GSkoUsvjbmBFfpn4XRnzKdGr1gKDANVu/Op gXcHwfCo5I5SiNsPZgWGC3isGf8YoUKRhrmj821aPEXuSk1gv6nl4PxNPZLG0ApK7cjA i3hqAGDhEfcYiVwoKfa5xuppBP+A485DkDxREu86lO/t+mV1BFx5MgtkFwMYqklwQXC2 Nh3h23ZOr4j/MNPVjtJXriUW1/f94cSl75YTnkfdbOyymr4+d0BU65XHl3AJtux4dqI5 IKqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712349412; x=1712954212; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/86pn6vkv7rN4o5AcWzNGDdSkHGVI9X5IaswAWqNOJE=; b=oSXz7hj0TsPrkZUdFlAgK/sZ26+b96hyTW2l9hVSbdzlW74cTr9dXWEGSIoyopc3zg 5x15oX9gn5b3lBgmsoxhtV8Y8hkATNS8qVRUl0lcvUIlDpYm1UhJ/U7PMAGVJ/8+JOBZ n/2bcRzeBeLw0gvE7vzpnq+34lyluX2OVuMBRAL5Q91VnLrh48Fmfi/6Ztyrm+9mzpsH /Ubg0yJmKXVnI2LBp0VRedPybo1DRZXIPn+y3bURvLLaBlr1DUrz43Pspmok2mU914SQ JxfDxiYOgA410Npbn8RQDygPOHy2gWs1xhaZU1AxaWNrTALO7MkltPVRg4swCjLGLaOk 6FoQ== X-Forwarded-Encrypted: i=1; AJvYcCXRhF3rAo7SH7WjDveLNmWVU5sgshnXmPGU5T8qlyAZjKxl56WYqZtSHbmJo4ub0WDdVQm4wjKp9rVN59RLaac0LxdAqcD4abQybOt+ X-Gm-Message-State: AOJu0YxjvlOO+Pt0w+2NgUjbZTZvAyPPCudfd5Y35ddL7ULpMAQSvpvT cmmfiknsFKxIqBM6MkHl40+Wi1XBXKcSmshaX8zRFGM0mbeQ6MYTopuDeLgBF99X3ZJmDmwmwPy zRGaUXS69x3Spb8itT+BBhLuUzk3IAdfd5bX3eA== X-Received: by 2002:a25:af10:0:b0:dda:aa3e:73fc with SMTP id a16-20020a25af10000000b00ddaaa3e73fcmr2428953ybh.41.1712349412380; Fri, 05 Apr 2024 13:36:52 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240404051229.3082902-1-quic_kriskura@quicinc.com> <20240404051229.3082902-3-quic_kriskura@quicinc.com> <2024040455-sitting-dictator-170c@gregkh> <2024040558-undercut-sandbar-7ffc@gregkh> In-Reply-To: From: Dmitry Baryshkov Date: Fri, 5 Apr 2024 23:36:41 +0300 Message-ID: Subject: Re: [PATCH v19 2/9] usb: dwc3: core: Access XHCI address space temporarily to read port info To: Bjorn Andersson Cc: Greg Kroah-Hartman , Krzysztof Kozlowski , Johan Hovold , Krishna Kurapati , Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Wesley Cheng , Konrad Dybcio , Conor Dooley , Thinh Nguyen , 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 Content-Type: text/plain; charset="UTF-8" On Fri, 5 Apr 2024 at 22:27, Bjorn Andersson wrote: > > On Fri, Apr 05, 2024 at 06:43:56AM +0200, Greg Kroah-Hartman wrote: > > On Thu, Apr 04, 2024 at 06:25:48PM -0700, Bjorn Andersson wrote: > > > 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. > > > > It does not do that at all. It provides proof that someone else has > > reviewed it and agrees with it. Think of it as a "path of blame" for > > when things go bad (i.e. there is a bug in the submission.) Putting > > your name on it makes you take responsibility if that happens. > > > > Right, this is why I like your idea. > > But as s-o-b either builds a trail of who handled the patch, or reflects > that it was co-authored by multiple people, I don't think either one > properly reflects reality. > > > > 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? > > > > For some companies we REQUIRE this to happen due to low-quality > > submissions and waste of reviewer's time. Based on the track record > > here for some of these patchsets, hopefully it doesn't become a > > requirement for this company as well :) > > > > Interesting, I was under the impression that we (maintainers) didn't > want such internally originating tags. But why? It just means that the patch has been reviewed. In some rare cases we explicitly ask a developer to have all the patches reviewed before sending them upstream. In such a case having an R-B tag fulfills the expectation of the maintainer: it shows that another engineer has reviewed the patch. > If that's not the case, then I'd be happy to adjust our internal > guidelines. -- With best wishes Dmitry