Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp19740pxb; Tue, 14 Sep 2021 17:31:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxWsdbQwkedQuT6I6gqYwN8CkSNbGAf8weqt67wFI+IclnhA4GoUrQ+9YCKZiANebHxG6G X-Received: by 2002:a05:6512:39c9:: with SMTP id k9mr14981486lfu.351.1631665917648; Tue, 14 Sep 2021 17:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631665917; cv=none; d=google.com; s=arc-20160816; b=qMNMQJYdhzGGJ+pVwl1oME74QOylyZmTq2jFamumanj45m1h8UTtUYhCgnIRefO/l7 eUsc3jyRts7XmNBv7JAudzlPr2cGhIHTz2ZwDHlTnEZ7rVmSQHPt03ezqiejeAaTbvsh /qrpotIjvvRWkWIkM9sTLS6LRPEvm3bfVQc6j3V558UTv3o0ru61iy8Ok5Gj1XDrvY+B 1T9XXS/oNubPuEuQfunEnK5SKRig1KORJp/L1lizI41UIFTUdbzQl6kfjTXUDmHCFuWq jEaJqALowFCfYuQV7K/1vd7Q8vnA/ayuMfYg97uJz240VR+5gJ9dCvFqFoxJDxMeXlVd psGg== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=JukkaUTsG0GonnjXzrW/GiofJ5UBspcWxgvtjkWtQ1U=; b=tCR2AB5roKT+qXkJ+SIZDzpUKJUYXcAnGR3ovadIrXpsQlHjVlStwMQ3cW65ZXC/LX 9elYv1zYdtezBRb+oNEEYr5MdN/ouvIk/u0s+3KQ+tesxrZZ8vpq6AeFwQ6XqPnMfAvG yRDhXOLdRgKYG/oWioF4yZ34M3KOBR2fT8cAXvvrY4klbSRe0QJ8ly4GaLzm1dintxiw j087sr4TI7HnWIFf5LvnK9i4MedpnsX/3cA5GhYM99Yic01Tv5RFHmaUvRtjiHl6nRJv ItenVNspM/HqG/poSWzrCICt1vOq5eY7hTMKOw9Rgrw85MBXq5A6SDMsaz12TuGK036c 7xzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AuuJcS90; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l24si12354326lji.154.2021.09.14.17.31.30; Tue, 14 Sep 2021 17:31:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AuuJcS90; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230399AbhIOAbO (ORCPT + 99 others); Tue, 14 Sep 2021 20:31:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbhIOAbN (ORCPT ); Tue, 14 Sep 2021 20:31:13 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 058F9C061574 for ; Tue, 14 Sep 2021 17:29:55 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id v2so1776516oie.6 for ; Tue, 14 Sep 2021 17:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=JukkaUTsG0GonnjXzrW/GiofJ5UBspcWxgvtjkWtQ1U=; b=AuuJcS90PlV274We64tcJ6Vja+tX9GL//WLswy6oBmmnJMa7VGj/eLcCwShK9DARKD zqdTE/OS/pw60d80+8u2tcQqEkfWV/C87yp9w8+ukZ8gTLV8gDdSQ5jfWgxZwg75mWST Y1B1iOoQZ0vvZqXLaavPaARDqld6N0eLdsH/w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=JukkaUTsG0GonnjXzrW/GiofJ5UBspcWxgvtjkWtQ1U=; b=kIqgFKRg0rz9mVGbJOGCnJNCrOL0hkVtgBiWDme0fMuSSD8FfDkGmNGFFAAWNsMMey TOSMqFrkr/eoJq8IbRofMljMZhzOF0gIocHInIVdHe0/tAgGX7m8bbtW60gISILtyy8F zzksnuj0Z2zGRPHohwVqElp0IywnY6PjzhGtRit+/4PUrYVMuGx08+YOef8DzAYa/SY1 Sw6I2m7lHytYPD+yjGvcViY73Gxqz165hjzRTZC+PYUh7r00O+YRyMk4J6ADY8jW9W3Y yPrVWJ/AHedSHByGFfto+aEnEYeJoXZVowQW8JUmBSBSv60kje/mcqEjwrZp8f+JQuKn 9ItA== X-Gm-Message-State: AOAM532Tu0T5ukqV/OZsipZDGTOzEzRNWeuSQpEqJduL8b73he2nalgs mViO9UxDaU0QhgQw1i9UDUSvDxowIa577BssvIfInM/NNOg= X-Received: by 2002:a05:6808:909:: with SMTP id w9mr3380549oih.164.1631665794244; Tue, 14 Sep 2021 17:29:54 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 14 Sep 2021 17:29:53 -0700 MIME-Version: 1.0 In-Reply-To: <20210914162825.v3.2.Ib06997ddd73e2ac29e185f039d85cfa8e760d641@changeid> References: <20210914162825.v3.1.I85e46da154e3fa570442b496a0363250fff0e44e@changeid> <20210914162825.v3.2.Ib06997ddd73e2ac29e185f039d85cfa8e760d641@changeid> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Tue, 14 Sep 2021 17:29:53 -0700 Message-ID: Subject: Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs To: LKML , Philip Chen Cc: dianders@chromium.org, Andrzej Hajda , Daniel Vetter , David Airlie , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Neil Armstrong , Robert Foss , dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Philip Chen (2021-09-14 16:28:44) > diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm/bridge/parade-ps8640.c > index e340af381e05..8d3e7a147170 100644 > --- a/drivers/gpu/drm/bridge/parade-ps8640.c > +++ b/drivers/gpu/drm/bridge/parade-ps8640.c > @@ -368,6 +396,12 @@ static int ps8640_probe(struct i2c_client *client) > > ps_bridge->page[PAGE0_DP_CNTL] = client; > > + ps_bridge->regmap[PAGE0_DP_CNTL] = devm_regmap_init_i2c(client, ps8640_regmap_config); > + if (IS_ERR(ps_bridge->regmap[PAGE0_DP_CNTL])) { > + return dev_err_probe(dev, PTR_ERR(ps_bridge->regmap[PAGE0_DP_CNTL]), > + "Error initting page 0 regmap\n"); This one also doesn't return -EPROBE_DEFER? The dev_err_probe() should really only be used on "get" style APIs that can defer. > + } > + > for (i = 1; i < ARRAY_SIZE(ps_bridge->page); i++) { > ps_bridge->page[i] = devm_i2c_new_dummy_device(&client->dev, > client->adapter,