Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp368283imn; Wed, 3 Aug 2022 07:19:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tc0LAtc2x2XvODZdTp5rLvIyiHcM8tGdJ/G2W0j5Rm2ISc/3/jvkqfsRiK0KSXr7XiY1Zy X-Received: by 2002:a05:6a00:1248:b0:52b:ca7:f2b6 with SMTP id u8-20020a056a00124800b0052b0ca7f2b6mr26218148pfi.82.1659536372310; Wed, 03 Aug 2022 07:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659536372; cv=none; d=google.com; s=arc-20160816; b=Z0FhdQqy0y+y0Yn1IaC8In2gRTI05gTjqqinAQ597VJbaz9H2/eaGlRaq2UujWJ1zX bynkvaeR4CBFlr1u8pkftCSEfiZRzgVBOKaY0WPo8uFN6nha7Hvy8XqMVIDSgo7Yae7N K1p46ZLVEw2bc4pC+ywtcR6qyAeEJNZILq81PH5ktxtJGcsjlWJ0mdnrrfK7dBiGc08q StOl8yOsVPo/FgKBVnRHea0NvdwGup2QxA/4D1hCLdXJGmS7o/Gszjk9diTxrh9JMXvw gH4eynt+Rtmd8RHQ5aid8+bOrVfOAzegLvAtsoQ2QouD13lnaxfrHZlp+kthY4LK8E3P 6b/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BX0MHXFB9OMLas/3vw1gWSW/wKlLfG1bTlBU7/A5LJY=; b=a7NBN7iHGbzWBLwdqXNtgXG/3PAB5CPlRWQT1yHiGTMn6CXr8ZWAURCn9XK+oDyMAw aeT6+sjmVKMAV4yxaRsBApJkzX5W47oQJykjfEY6tNfOXsrlr71jhLtlWarugGIxsv6y 7hBghcFHnnSAgUCTDfGnqRCuzd09uw6RkATRyB5U25BTjZFf5KOrMykp4BwEr5YJgQ+I 7CKWkkh4UClc68VdHgQcuv+s2+tBA87NSF+7ikY5XAZOZWhPLR54aflX5/IK/0lkcNd4 ZeB+W5JhNAo9BnBAMRgUJokmABPSUxTMA5ar1kA9jSenAXAKusOUzlcp3MMTrhbSUXN2 7dIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NgWFEGgq; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a056a00125100b0052d099d99b6si14707522pfi.234.2022.08.03.07.19.16; Wed, 03 Aug 2022 07:19:32 -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=@chromium.org header.s=google header.b=NgWFEGgq; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237580AbiHCOBY (ORCPT + 99 others); Wed, 3 Aug 2022 10:01:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234434AbiHCOBW (ORCPT ); Wed, 3 Aug 2022 10:01:22 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B4EE2A400 for ; Wed, 3 Aug 2022 07:01:21 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id m8so21539609edd.9 for ; Wed, 03 Aug 2022 07:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=BX0MHXFB9OMLas/3vw1gWSW/wKlLfG1bTlBU7/A5LJY=; b=NgWFEGgqhpFOMAezMzzFaK7vGV+stSnIqJjbdEM3QqRLao4HHCRJ6LwcqWOcDrMmwd a0gNzN/9aGOGsFxsbpAEiMb/bknSNrVfjlM3GIgVJFuSpLQlFbJO+zEKTxBYLvzDzmfr yJdg+x5hmAYuyctBRyTquSAt7q/6fDMtx20is= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=BX0MHXFB9OMLas/3vw1gWSW/wKlLfG1bTlBU7/A5LJY=; b=alo6mmsBJ1GesIitHywf2D1JbVTXEjMi0qHreqCLtD94jRmlHwHlLudH4vhallGa9F xyLYjJzjTsN0XangWcpwTWvtz8mAreb0k/IOMHkjuvQov/DOaU81DuEMcKf3Vu5KEoL0 Oiysu1vbu+/vdl8x7oc2Ab93yPocXk4vcj236jnbRtrsxYVFWzV4NR6cNqIWkhftmPYA s65VJfZ2Tuq1j8pGXK7JajGWLmVBPCfTwP6g6/ImMVdtLTsVVbhEOURHfron6HxZ/v60 c0Avl1BCMOCBWCJQIzGyBY+BwJ9gn8E7K46LlnYqSo+YGk4GRS7+StMvavBvcNuA0eu7 1NCA== X-Gm-Message-State: AJIora8fSh6BczjnTnsB2yg2W4PgAQD5mSAc8sMga4FGV1aBCovPsaI0 mRfPsXsnUNuIQqnD96ED0sEdm2P1/L25zVpxJHY= X-Received: by 2002:a05:6402:3907:b0:431:6776:64e7 with SMTP id fe7-20020a056402390700b00431677664e7mr25748831edb.0.1659535279648; Wed, 03 Aug 2022 07:01:19 -0700 (PDT) Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com. [209.85.208.48]) by smtp.gmail.com with ESMTPSA id c12-20020a056402120c00b0043cc2c9f5adsm9550956edw.40.2022.08.03.07.01.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Aug 2022 07:01:18 -0700 (PDT) Received: by mail-ed1-f48.google.com with SMTP id z22so21586730edd.6 for ; Wed, 03 Aug 2022 07:01:18 -0700 (PDT) X-Received: by 2002:a5d:5889:0:b0:21d:bccd:38e3 with SMTP id n9-20020a5d5889000000b0021dbccd38e3mr15858645wrf.659.1659534911179; Wed, 03 Aug 2022 06:55:11 -0700 (PDT) MIME-Version: 1.0 References: <20220802223738.898592-1-dianders@chromium.org> <20220802153434.v3.6.I969118a35934a0e5007fe4f80e3e28e9c0b7602a@changeid> <3f79c5b1-9ce8-6aeb-300a-565ba018ae11@linaro.org> In-Reply-To: <3f79c5b1-9ce8-6aeb-300a-565ba018ae11@linaro.org> From: Doug Anderson Date: Wed, 3 Aug 2022 06:54:58 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 6/6] drm/msm/dsi: Improve dsi_phy_driver_probe() probe error handling To: Dmitry Baryshkov Cc: Rob Clark , Abhinav Kumar , dri-devel , Mark Brown , linux-arm-msm , freedreno , Daniel Vetter , David Airlie , Jonathan Marek , =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Rajeev Nandan , Sean Paul , Stephen Boyd , Vladimir Lypak , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi, On Wed, Aug 3, 2022 at 12:32 AM Dmitry Baryshkov wrote: > > > @@ -634,88 +631,71 @@ static int dsi_phy_driver_probe(struct platform_device *pdev) > > phy->cphy_mode = (phy_type == PHY_TYPE_CPHY); > > > > phy->base = msm_ioremap_size(pdev, "dsi_phy", &phy->base_size); > > - if (IS_ERR(phy->base)) { > > - DRM_DEV_ERROR(dev, "%s: failed to map phy base\n", __func__); > > - ret = -ENOMEM; > > Here (and in a few cases later) this changes the error code from crafted > -ENOMEM to the proper one returned by msm_ioremap_size(). This should be > mentioned in the commit message. Good point. Unless something comes up I'll plan to spin a v4 with this change to the commit message tomorrow. -Doug