Received: by 10.213.65.68 with SMTP id h4csp743150imn; Wed, 4 Apr 2018 06:35:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/JXgnty8haAirRa96lcSw4jlJnpvNvhL9GcqCgkunrF1ZLjXpVOdUa9TBRtXw+8HQq9wkc X-Received: by 10.101.66.6 with SMTP id c6mr12274942pgq.35.1522848904112; Wed, 04 Apr 2018 06:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522848904; cv=none; d=google.com; s=arc-20160816; b=H/qv+wXa/0rMtG4EJ75O3rv2o9qsVyY0rqsYMzbqKqmTfDleY+N+ZQrWJyJHRwtVbv Yzp38eP6gCTsfTsvS8Me31ZGfBLIxN5pBQ+Sy2AbsQFYce3ee0HhIn8io0wp+pGtNV6v iHO4A2XdNyzK+w4JRzxV7AGE9FZQpFX8VrruVYn6mhjOiylhGvwA5RBju/vzuvhAOCww 2jWyNd8IqMBD3VQqX/P6U+TZDvF8w2GtefgZOnRUplCuTHRS0C0jVrAvPPA7Kkph29pk ZuSF/UcExvRHL246WPCVKAqyIYLHS2QPqmjgAqq82UoQM97PsBWyYaiodnr0H1kLfHZV /Tow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=h/+9XwLRSHdyHiOBkH+l5lXQNjLKg49iLLi15DGWBU8=; b=i2Cvs6cQ9c47owIOXCFkGvfeHkmlm/fLKow8tNb/ZOwpjLtOUtxNIo9ch8LB576awN I+LuQCk0qmOYpmPOr74Ab/ok4Lwm1LmK4x3aQcHGSBTKL8GeSBggiBbhYbyo7NpTJH1/ KzSDxhl7BErAJT6vEsTLL7BEV9S4/k3Zhy/VOiLBH7OLE2/k8amqgCt040wKr2vLCNLc q//UQ4jKJFRPV5Tz0ZbTKUTFhN+pJSqirkVdVoPEi979kj9l8oPWepyMJ3+0nRPL0zM7 wJTHE5Wa15LnHbqQW5wMDSAadglzl74FbXrpoKYgkyEj0u6iDPddYGrrrN3suOTxGSzu 2WGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HmuZdx1O; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18si4185631pfe.168.2018.04.04.06.34.49; Wed, 04 Apr 2018 06:35:04 -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=fail header.i=@gmail.com header.s=20161025 header.b=HmuZdx1O; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751281AbeDDNdg (ORCPT + 99 others); Wed, 4 Apr 2018 09:33:36 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:38415 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751247AbeDDNde (ORCPT ); Wed, 4 Apr 2018 09:33:34 -0400 Received: by mail-io0-f181.google.com with SMTP id b20so26372843iof.5; Wed, 04 Apr 2018 06:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=h/+9XwLRSHdyHiOBkH+l5lXQNjLKg49iLLi15DGWBU8=; b=HmuZdx1OODCV6CL8d3gZXkhlDqQyE3sXHTLTApZxSNMd+S/Vx6RDeCQixAAr6wZwp6 +tLZDmFC49et9n/Xviqf6T9V+KIASfA3NM2acjiMlxuH9CfiuLxbNOJCp83w+rY6wbna aj8aAD9HnQgQmnSZ/w4PtEWCvnmFdU0jVZHtsfgjqtdjb76WY567pWH3k4K4cHrmhZ5o GMhnjQG53uXUB42O64TMFVm7ueorvsM2rHPzsk1ZYspUewZ+dB+Y7dQTFnRD1g+ScnNg 37HAgszyezKVBO3Tyua6Kf4jLLaMn+iM3vG+ryWy3Thq6+tBi+iEaneWZLfG23JwwwQi qoHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=h/+9XwLRSHdyHiOBkH+l5lXQNjLKg49iLLi15DGWBU8=; b=a4jwzRLgM2NMPX63rNnUiSPBO6FPchBGAcgqwE75K1oeXNEZyL5xwRSCMDZpb8cPDF bShA+Eb71OhneOwbwd3SyG8HNCeC4ZxdLLCG14fUif2APiomvB05s9id6LPMa4OQqp13 vd3UycI5UleqGOXnu0UKb6KwGMdKSk4rUWwtTh2I7Tn22T6STlS8hYK1i/y0ExQvxCT1 DrbF3syJOxhKc5sdfBjbT0YDYPnOnxHdoi7MJleIg8C5t9K/uwA6Q7eJhAvedWsJljeW 6YNIqNYpYymzHvkWUc/BjiaEXrhNQIh+Wqw4eFhiwj5PPGXEepynoGhSrrYgvU7cOQfZ 2zzg== X-Gm-Message-State: ALQs6tAYBJksGfFfCvnLez+FLm4lPUCvpHpQi+ZvfS33HXwa65ySiER+ xCnql7MpfosjCOsQ8srS+G/38D+4nedVqtqAikG1WQ== X-Received: by 10.107.201.146 with SMTP id z140mr16829562iof.266.1522848814064; Wed, 04 Apr 2018 06:33:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.129.29 with HTTP; Wed, 4 Apr 2018 06:33:13 -0700 (PDT) In-Reply-To: <2158461.zz8sS7CZ86@diego> References: <20180322093943.49717-1-tomeu.vizoso@collabora.com> <20180326090001.57627-1-tomeu.vizoso@collabora.com> <2158461.zz8sS7CZ86@diego> From: Tomeu Vizoso Date: Wed, 4 Apr 2018 15:33:13 +0200 X-Google-Sender-Auth: PgSHV90QVGysqHZ3ucdMmcz0Dqc Message-ID: Subject: Re: [PATCH v4] usb: dwc2: dwc2_vbus_supply_init: fix error check To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: open list , Felipe Balbi , Amelie Delaunay , Minas Harutyunyan , Greg Kroah-Hartman , linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Could this patch be picked up, please? Thanks, Tomeu On 26 March 2018 at 13:51, Heiko St=C3=BCbner wrote: > Am Montag, 26. M=C3=A4rz 2018, 11:00:01 CEST schrieb Tomeu Vizoso: >> devm_regulator_get_optional returns -ENODEV if the regulator isn't >> there, so if that's the case we have to make sure not to leave -ENODEV >> in the regulator pointer. >> >> Also, make sure we return 0 in that case, but correctly propagate any >> other errors. Also propagate the error from _dwc2_hcd_start. >> >> Fixes: 531ef5ebea96 ("usb: dwc2: add support for host mode external vbus >> supply") Cc: Amelie Delaunay >> Signed-off-by: Tomeu Vizoso > > Reviewed-by: Heiko Stuebner