Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2618970ybb; Mon, 30 Mar 2020 09:35:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuRONO8LnSuofkpXBvmMcmFv17oL0Ax1dspJZZUxSVgo5i1fEBjPeHIax5eHcLJFmLtT1qU X-Received: by 2002:a9d:949:: with SMTP id 67mr9636988otp.304.1585586117903; Mon, 30 Mar 2020 09:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585586117; cv=none; d=google.com; s=arc-20160816; b=xUqXKGw3qQGZsan76pm4j+u6XDPiJ0iFrlDDv88MaPZeTzaWhoumOkt8ssAyrmdysi l4yerzF64tlGY5DWHY9A2Fg7GgM+sAA6wQKy5xgBh5hcfZA3dgyxcthBkn0x+nuReorL 8/DxPJNym1zoX08vXBCB0ZnD1NA7QxfEI0F09qIMniKskodF3T3bfvL9QNPVtUOFOZju 5PgK3aYLS80Y02IcFXqE1+g2GNMsGM/bwyzQomUFrQ4GMmAlUW/omcOWLKrFl3K1ci7G b9zCZ6tXXImSJ24Hu1ifo9jivvOtgHrhm9sc8GmcOtCJCb39lljOX/yIGwlRK8ct02AP Qg0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dZsn4EW/SyaRsmueE+/vYE2vemazchjXW/dbHmCRlUs=; b=kYtl7ZrJhyTmlD/mQ7+5IaDoOZBa1lo+xorXDNkOHMxqbn4YmhRk8MnS3HcF1AGu/5 sIojTLAvGS2n6Fl1NKfYZQk5rZK73YXNz+N8a6ac5wozy1M8oodI8u1MDw3fr93XSM6O 3ZQU7NqpgBMmDwrb/7bPXkawZmW/FtZ9oQ3TTbj6bbphRYK7tt62G62nvKI632yiF2iV lnxgmAvOBp4TSfCEN4fkGw0x6d/lz9NTo0fKNOMSp7/8DhmqLSfPd2OdEI2gJYNL/ZvQ +cysbyfNEM3hZzGi/TocB/jeHbMfQCQjgAVEfyYG3MHL3Adf2NqeGXZ0BENhLmGDaQbF qSSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cbD3U0SW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x66si6377261ota.244.2020.03.30.09.35.00; Mon, 30 Mar 2020 09:35:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cbD3U0SW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729626AbgC3Puq (ORCPT + 99 others); Mon, 30 Mar 2020 11:50:46 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34503 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729319AbgC3Pup (ORCPT ); Mon, 30 Mar 2020 11:50:45 -0400 Received: by mail-pl1-f195.google.com with SMTP id a23so6892783plm.1 for ; Mon, 30 Mar 2020 08:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dZsn4EW/SyaRsmueE+/vYE2vemazchjXW/dbHmCRlUs=; b=cbD3U0SWemqC1mmtbV87ewilvyfjJ6wvBrx1Zv9z50jgAf9m1zNNdUG66wXMgyvK6w ZZdtz3wzvXNip6aIDfmUPWqG85OQxDWzLAzKrN9IJ2NIzLYVNAO6ke9IydE4kwJIysFp 5v+XWRKX9MnKGNCQeTmnSp3izMpZzXfKXtPtc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dZsn4EW/SyaRsmueE+/vYE2vemazchjXW/dbHmCRlUs=; b=qsUxydzWOjLRaAFTlDiA8VJjsFgUKQbbT3ibQXOOSuXlqruYMzae2kH3n91NOe5Z4H j9ncN6b4CTz+L19dqmweni2hVMUkmkDPcH45dwt1ed9fb6DugQOCP8Ws/iprDe6B/GWn waeT0QYs4bV39HwLLzoWyX7KrIeJSdw452EUsvAt+QL0XLpqqi3ULgysukJNfOGkElxh wbDyNoaqLcJFZpWWqrHa6Gg7vQyXuBgcK2vqKjYYdHQxioZpAONjlU2ZODg6QTRsMz0x VjgAlCQOjBAQKGxNABkSUdV/f5ytJS2afDEwwZ1aqewd/wadnvf3TUb9KywfpJENNNhE BHkw== X-Gm-Message-State: ANhLgQ1aHH06SJ0fKZA0EdUH7eka+O4pcYYrb4sIAW4xRrxsrmzSzBge g1EM2yze6IjSge5IFmtM9gtykA== X-Received: by 2002:a17:90a:3249:: with SMTP id k67mr16585418pjb.167.1585583442859; Mon, 30 Mar 2020 08:50:42 -0700 (PDT) Received: from localhost ([2620:15c:202:1:4fff:7a6b:a335:8fde]) by smtp.gmail.com with ESMTPSA id r7sm10438837pfg.38.2020.03.30.08.50.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Mar 2020 08:50:41 -0700 (PDT) Date: Mon, 30 Mar 2020 08:50:38 -0700 From: Matthias Kaehlcke To: Felipe Balbi Cc: Sandeep Maheswaram , Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Stephen Boyd , Doug Anderson , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manu Gautam , Chandana Kishori Chiluveru Subject: Re: [PATCH v6 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver Message-ID: <20200330155038.GC199755@google.com> References: <1585302203-11008-1-git-send-email-sanm@codeaurora.org> <1585302203-11008-3-git-send-email-sanm@codeaurora.org> <20200329171756.GA199755@google.com> <87h7y62r28.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87h7y62r28.fsf@kernel.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2020 at 11:19:11AM +0300, Felipe Balbi wrote: > > Hi, > > Matthias Kaehlcke writes: > >> Add interconnect support in dwc3-qcom driver to vote for bus > >> bandwidth. > >> > >> This requires for two different paths - from USB master to > >> DDR slave. The other is from APPS master to USB slave. > >> > >> Signed-off-by: Sandeep Maheswaram > >> Signed-off-by: Chandana Kishori Chiluveru > >> Reviewed-by: Matthias Kaehlcke > >> --- > >> drivers/usb/dwc3/dwc3-qcom.c | 128 ++++++++++++++++++++++++++++++++++++++++++- > >> 1 file changed, 126 insertions(+), 2 deletions(-) > >> > >> diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c > >> index 1dfd024..7e85fe6 100644 > >> --- a/drivers/usb/dwc3/dwc3-qcom.c > >> +++ b/drivers/usb/dwc3/dwc3-qcom.c > >> > >> ... > >> > >> +/* To disable an interconnect, we just set its bandwidth to 0 */ > >> +static int dwc3_qcom_interconnect_disable(struct dwc3_qcom *qcom) > >> +{ > >> + int ret; > >> + > >> + ret = icc_set_bw(qcom->usb_ddr_icc_path, 0, 0); > >> + if (ret) > >> + return ret; > >> + > >> + ret = icc_set_bw(qcom->apps_usb_icc_path, 0, 0); > >> + if (ret) > >> + goto err_reenable_memory_path; > >> + > >> + return 0; > >> + > >> + /* Re-enable things in the event of an error */ > >> +err_reenable_memory_path: > >> + ret = dwc3_qcom_interconnect_enable(qcom); > > > > This overwrites the error that led to the execution of this code path. > > The function should return original error, not the result of the > > _interconnect_enable() call. > > > > I saw Felipe queued the patch for v5.8. I think the main options to fix this > > are: > > > > - a v6 of this patch to replace v5 in Felipe's tree (which IIUC will be rebased > > anyway once there is a v5.7-rc) > > - send the fix as a separate patch > > - Felipe amends the patch in his tree > > > > Felipe, what would work best for you? > > Let's go for a v6, which commits should I drop? I can't find anything > related to $subject in my queue: > > $ git --no-pager log --oneline HEAD ^linus/master -- drivers/usb/dwc3/dwc3-qcom.c > 201c26c08db4 usb: dwc3: qcom: Replace by I thought I saw a "queued for v5.8" message from you, but can't find that back. I guess I saw the "queued" message for the "Add USB DWC3 support for SC7180" series and thought it was for this one. Sorry for the confusion.