Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1143099iob; Wed, 4 May 2022 15:50:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKTE/jGFN0LXc7R+hoOqgyokonwI77aSqtSdWjDjewD6jxMuElQs1Tp4hnuR43pCI09QNm X-Received: by 2002:a05:6402:27cd:b0:427:bf42:44cb with SMTP id c13-20020a05640227cd00b00427bf4244cbmr19642823ede.276.1651704651028; Wed, 04 May 2022 15:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651704651; cv=none; d=google.com; s=arc-20160816; b=k/y/OWjyEUF9jOWmDYzqL/n1ZBMS4RhWxK6/6lmjFmilmQZKdLJ6eu+FuSjXosDea8 ViFpEEsoZKLR7G/PFD+rqigtkse7z3+WHeRaeKdttFrHm2EDWsu+lIgxh5x9Qp0smvqL DzB9sdUvwClfpPUi2poTqjb+wq5O+FAbBlzxZlHq+9mQ4zwACVYmPZfZIT2QuCdVjfIN h+tlSZQnJIHknpaIYMTKf3w+ZBTW1WnKDL1Wzwd9Yi6JVwCn9n95KCfO7Xw7OavbmPZv yS9dmbRcuiNhDftYa+9W+CBhbVqWc+J0V4w1ZVkeLRoafQWegXT2rImgJ7Q/8bFWxeGV lQTg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GmZTwFabLGlAnrD06+ek5qmCSM1kbUrMhrde4CyIlrA=; b=Meoj6Q/qHJqYU7ZEf3RAMiF5KPeK9X07btMzBUmSKgfmDo8EbOxPC7U+5KaHQBh/eN VnbiaLPCMdw1bi3qMHLNP7feCSsf4PDiv2pYY3EvXZJMdhJvx6rxh9r9qeUSOoPtyh70 bRlMJ+wefiaZnb0YiZRQLGFF/F/Im33DYcQJ+QmoW1BWe5h22bKqrfacDCGTJ2b7Od0a 2Lb7n4hvwz2bF/IM0Wk3hiyAtelHgg4VHDnMCDHApD23CwoCKow45mOt8F8+ULkooruZ lWwdjlMOxiCohA5SpZLWmEWolTyvoZZ5DcexNy3D22cXszNRBLe2KWXBtQxuL6J7cCv2 JA8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tWHKhc3I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020aa7c804000000b0042610c7339bsi16759875edt.214.2022.05.04.15.50.28; Wed, 04 May 2022 15:50:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tWHKhc3I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357569AbiEDRPH (ORCPT + 99 others); Wed, 4 May 2022 13:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355334AbiEDRER (ORCPT ); Wed, 4 May 2022 13:04:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93293473AC; Wed, 4 May 2022 09:52:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 374DAB827A1; Wed, 4 May 2022 16:52:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2A06C385A4; Wed, 4 May 2022 16:52:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683176; bh=d7FYk8CcoJFVfmacnUDKuqx+IN8JrgInU5TLM/A7XjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tWHKhc3IyIEP2FnmBCEfww4Xp4c6E2o3Vo7K0kdeuP0rwFPkwB3FfhpD+NvVD/OOT U0vdm7SeWzMd/o97kFfpHJJjb+9rnYuFogWJ017Qwf8keb1kB6KVFsNMlky2fSSwa6 bcwwicg66jT3LVLG7FjSs6qoYNqqzrxmnfGX88Yc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, stable , Sean Anderson Subject: [PATCH 5.15 028/177] usb: phy: generic: Get the vbus supply Date: Wed, 4 May 2022 18:43:41 +0200 Message-Id: <20220504153055.585463037@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Anderson commit 03e607cbb2931374db1825f371e9c7f28526d3f4 upstream. While support for working with a vbus was added, the regulator was never actually gotten (despite what was documented). Fix this by actually getting the supply from the device tree. Fixes: 7acc9973e3c4 ("usb: phy: generic: add vbus support") Cc: stable Signed-off-by: Sean Anderson Link: https://lore.kernel.org/r/20220425171412.1188485-3-sean.anderson@seco.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/phy/phy-generic.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c @@ -268,6 +268,13 @@ int usb_phy_gen_create_phy(struct device return -EPROBE_DEFER; } + nop->vbus_draw = devm_regulator_get_exclusive(dev, "vbus"); + if (PTR_ERR(nop->vbus_draw) == -ENODEV) + nop->vbus_draw = NULL; + if (IS_ERR(nop->vbus_draw)) + return dev_err_probe(dev, PTR_ERR(nop->vbus_draw), + "could not get vbus regulator\n"); + nop->dev = dev; nop->phy.dev = nop->dev; nop->phy.label = "nop-xceiv";