Message ID | 20231016130934.1158504-8-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3449100vqb; Mon, 16 Oct 2023 06:10:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/LpmgvGa2eue0e8JWBEXwgmEPBLk61L9E990nkfV3HwlxXT3MEnex6ykF7gnH5tVQwQkJ X-Received: by 2002:a17:90a:b397:b0:27d:6268:b75c with SMTP id e23-20020a17090ab39700b0027d6268b75cmr5280507pjr.4.1697461852833; Mon, 16 Oct 2023 06:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697461852; cv=none; d=google.com; s=arc-20160816; b=mCDMWkT4xaCY0Y+sOn7ZYmx77hllnIfuTHpIJZgxpEBpr70ImEIkCCY1EhQHPPmXRR JHR/41P9PYALkdYZgAxY2w7YB2LA6Q4yUZMWwuILSvBiyCjy/nj1kErcbocd77utyNJc AeGArDEO2yu/pho449CvvDRFqY9l3bMf/XVdZ3PUf1IfhrkinPMrdeV7FWSqye/NguYn bsLKj1vil++VFcYrsSOemHZ5fNHOaOuRMS5eR51JxpnMRAmakb1swDz7qUBIdlLcb+hL DMWQdqEVuuTQoOong0v9r8lj1uV+4hnR1xVgk6pjeA6PaeYuWAMGeoDPL/yiDeqgFykw 9Qhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/W72DNmXr/ph+zOs7MIDX4ePhF8yUKUKwzfn5KgBBfo=; fh=YYrWResMAxfU+C17BdM7l/WUXXvK87rdz5rOaZ9UMD0=; b=frDvG8I+cII5n+jGZMoWVrvxrx2Cjpd8+dFm821i3qvkbH+sd1fmxiwRH6wkGOg4yq QQ1y705d48uZupvmUvY+BpbGB6h+CQscLm+xcsMk8eFIT5vprNlP0cHKYLwu9ve8Tna7 omaVxG97Yk2iQ72b8ILWegSY9LdApsBu+biGEPa3UC3lWtmxAdZwJLZnd5H0j8bhDnP2 cr36apYrmhh8xSrkXBjZM0ITS9KaVI/90dY9YyIE7Lmhz7JBfHC4C2MIfhKrqQJ05KTP PubqZegyq3UML3XyTy1w3MNpX2aNu4NYNe/IMV+4814L8EDEyg56s2inJ689ypYMGIoT rFDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XIQViUqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id np3-20020a17090b4c4300b0027d84544288si3046232pjb.177.2023.10.16.06.10.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 06:10:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XIQViUqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E599C8047D57; Mon, 16 Oct 2023 06:10:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233810AbjJPNKY (ORCPT <rfc822;hjfbswb@gmail.com> + 18 others); Mon, 16 Oct 2023 09:10:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233545AbjJPNJz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 16 Oct 2023 09:09:55 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D7B3115; Mon, 16 Oct 2023 06:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697461792; x=1728997792; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0s6SJFl6EojiT5uelJ/E8mqMVnAxTbxFEfT6I0A+Yko=; b=XIQViUqaUkxTSJtkmExSMurd8hYWpg470aQbp4W7QfjD9UaDYG1EFdM9 erhPOvRO0zxFjoXJXPJLpiWsQ9G6TJJCN+oaKVvpZLkleYC8KcDTFM15p r5C9Q1yDF4kWMJSrqRJtXYv2vkmK+PVMFTlwx9QxehRL9OEtMCa+wA4ku IRJFFBNQYAzgvzhSFbhWF7tB2KJfbbKteUp0hWCOGDAoOGEz2D4Sgl4Wq 9WjcfX2/hPnDzjjDxyzek02vQTUag9xt/lqFkLwzUtln2bfMcJJ7fomR+ udcwlwl1MBVx0Q02N4E7cwetWHDxf+nABwCzNmggt22IljJdgIAOM/RSn w==; X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="416590161" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="416590161" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 06:09:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="759385518" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="759385518" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 16 Oct 2023 06:09:46 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 401CDA4A; Mon, 16 Oct 2023 16:09:42 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Mathias Nyman <mathias.nyman@linux.intel.com>, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mathias Nyman <mathias.nyman@intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Subject: [PATCH v2 07/10] xhci: dbc: Replace custom return value with proper Linux error code Date: Mon, 16 Oct 2023 16:09:31 +0300 Message-Id: <20231016130934.1158504-8-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20231016130934.1158504-1-andriy.shevchenko@linux.intel.com> References: <20231016130934.1158504-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 16 Oct 2023 06:10:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779917759896108720 X-GMAIL-MSGID: 1779917759896108720 |
Series |
xhci: dbc: Update driver to use modern APIs
|
|
Commit Message
Andy Shevchenko
Oct. 16, 2023, 1:09 p.m. UTC
Replace the custom return value with proper Linux error code.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/usb/host/xhci-dbgcap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-dbgcap.c b/drivers/usb/host/xhci-dbgcap.c index c211c69e8041..779a564ad698 100644 --- a/drivers/usb/host/xhci-dbgcap.c +++ b/drivers/usb/host/xhci-dbgcap.c @@ -593,7 +593,7 @@ static int xhci_do_dbc_start(struct xhci_dbc *dbc) static int xhci_do_dbc_stop(struct xhci_dbc *dbc) { if (dbc->state == DS_DISABLED) - return -1; + return -EINVAL; writel(0, &dbc->regs->control); dbc->state = DS_DISABLED;