Received: by 2002:ac8:6714:0:b0:405:464a:c27a with SMTP id e20csp390616qtp; Fri, 28 Jul 2023 05:15:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHuURyCwAj9ftfEw4R3hkdJf7mO7sphzDaqypgi/G4AfZaf942G4sJ513SpAnkZPuOk7B1b X-Received: by 2002:a17:90b:380b:b0:260:9cad:c56d with SMTP id mq11-20020a17090b380b00b002609cadc56dmr1064443pjb.7.1690546513406; Fri, 28 Jul 2023 05:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690546513; cv=none; d=google.com; s=arc-20160816; b=CXrigd6lp6N+QFmjQyU7gQ8ohpNzehUhlOjsTb9+DqHriugtZq+KGaOzmMkzI60QS8 z0wk6XXZr+7G/93E0WWTT5/1TWnpLSA7HN3ilLg2Phs1iQQZbO0lzW5QxkvUI+To8fzL LF5HoNVEfLEQ9p0bF7KXQwxwOk4MVIMmmU95S2X2Xi7lCDiDCPPuiKqMfvdCOuz5Ghhv 2vSb4WtiDLor6moRBvYITtSmao7uKHkESnUK+vKAk6+afJzDXatBo7ngQw28l+tYtv+z 32/+WIRzs7pTmdGbL/w+eDqMAHrsVAY7lcov6sowwPed7OSdL1aec3MwTvXay/2FU1lY 6KYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cFEa9MMxPQK3mIe8y2ZSoEZucFBC9apzwzTZ2gpfxUg=; fh=CB+fHQhUNtTqDN5kitf8lQRMNE2vsAi90quMeuuU8RQ=; b=G0SSOfAr6cqsYdjOdJfkuuEObpoFk1nGQ1rkyWqW0TIUFFUymHQ6K8VT7kTh8FGMoK EKMjuxslGUXPAi5tjRrVg9UfAHneHI0jmzkNayH5BGWq+Fx67UlFlSX3QScE0AbdiBf9 H8dJh0nUZ58BoYP02vtDx1WHMKKOMezvJPHta3cGGLiT/oDWzgmvD9JSVM3FFlQ5OxPJ YW2MSmhNPK3O7Lc4gVp0RN6y/7bh7RKRn1KMCQecaW5ZsW2eG5jZXtInAXKM7X7iDH1w 6Us9D/ScJ7g7HXIX2VaDAKrapuyvK2X5wrrAtMqtoV6SAK3A09oQuhhzu8BLzg8hOaJ7 0erw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WOWvFttn; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020a17090a8c0a00b0025bea0a396asi4604467pjo.6.2023.07.28.05.14.59; Fri, 28 Jul 2023 05:15:13 -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=@linaro.org header.s=google header.b=WOWvFttn; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235711AbjG1MEA (ORCPT + 99 others); Fri, 28 Jul 2023 08:04:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232776AbjG1MDi (ORCPT ); Fri, 28 Jul 2023 08:03:38 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7B24C0A for ; Fri, 28 Jul 2023 05:03:09 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fbc59de009so20502895e9.3 for ; Fri, 28 Jul 2023 05:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690545787; x=1691150587; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=cFEa9MMxPQK3mIe8y2ZSoEZucFBC9apzwzTZ2gpfxUg=; b=WOWvFttnchRa1YQWyMjh/IMy1E+sMabw0JaGJJvGCydS8dFaH3Z5BvL0a8M9/Gaqlm bU9weHP63TkAt1c9UbvTR1qpReKo/6gk/bWTzDvBzX3qyOKbobVMQskfyOzyHWzAPBdV 5Xq3fsXeRm60AcWT2yOmlpIwSSN61VV2cId7aJ6uuaGSbPrvVec2ylqpViKMtyKB6h6f Ip85NgpHLr8vq8hU9ATm2AvYJImuRAtKyClPjMdxwHQOekq6jaYiYIvfSdeojTQ0dx/W g/pw1K/sGQHOXEcklE82JNXjXNTVPTQeR5yDr7rL2oRV8qlAc64F6bDb63CsfrPNNnEo /etA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690545787; x=1691150587; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cFEa9MMxPQK3mIe8y2ZSoEZucFBC9apzwzTZ2gpfxUg=; b=k+2VL9LXvJhm2ERc0yGV2AUY+QyZ3esA/BF4Hyi+MnM+6qUxk4YmkCSxm5bvIZ+RtF gltW/FdcawisnaqeGP5Zl4n6yBk4zG3bbLpxADuoCEAJH+0HmhZWsgxkEq/K49R2vCCk hcHx/vN6g8ExailQ8hc1rwHiHVI6VvmI15Vmz/jZemYBKMWXo/aIe5Jfy11uqAcP2ba+ Vcn1fLlRf8Sb1VWH5mMdUjljdT9dk+eWBPuLi4ogOblZg/4FwliP3Kq1M7FpGDpWYa9Y /TvSKPWRBUbvI/NMhnJD1eMUXzGr8c+H8Q1XqIPG1bS7hXCJBE00ekfn8Vn3qTdEv/dv Ovcg== X-Gm-Message-State: ABy/qLZhsBWfQOy1W8WJ2gWMyaatHX2A5uue1iqMxOIdLSe1yMXHCol2 ZXyqqxay2Y0kwljs+lRGGOsjUA== X-Received: by 2002:a7b:c4d4:0:b0:3fc:85c:5ef7 with SMTP id g20-20020a7bc4d4000000b003fc085c5ef7mr1524091wmk.22.1690545786731; Fri, 28 Jul 2023 05:03:06 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id g17-20020adfe411000000b0031437299fafsm4692479wrm.34.2023.07.28.05.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 05:03:06 -0700 (PDT) Date: Fri, 28 Jul 2023 15:03:03 +0300 From: Dan Carpenter To: Johannes Zink Cc: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Laurent Pinchart , Thierry Reding , Neil Armstrong , Sam Ravnborg , kernel test robot , Dan Carpenter , patchwork-jzi@pengutronix.de, kernel@pengutronix.de, Laurent Pinchart , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] drm/panel-simple: allow LVDS format override Message-ID: <1cd00596-604d-4fbf-b9d1-9ee0f05cb373@kadam.mountain> References: <20230523-simplepanel_support_nondefault_datamapping-v3-0-78ede374d3d9@pengutronix.de> <20230523-simplepanel_support_nondefault_datamapping-v3-3-78ede374d3d9@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523-simplepanel_support_nondefault_datamapping-v3-3-78ede374d3d9@pengutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Fri, Jul 28, 2023 at 01:54:40PM +0200, Johannes Zink wrote: > @@ -556,7 +602,7 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc) > struct device_node *ddc; > int connector_type; > u32 bus_flags; > - int err; > + int err, ret; I don't like this at all... > > panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL); > if (!panel) > @@ -601,6 +647,13 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc) > panel_simple_parse_panel_timing_node(dev, panel, &dt); > } > > + if (desc->connector_type == DRM_MODE_CONNECTOR_LVDS) { > + /* Optional data-mapping property for overriding bus format */ > + ret = panel_simple_override_nondefault_lvds_datamapping(dev, panel); > + if (ret) > + goto free_ddc; This *looks* like we are returning an error but we aren't. I think we should be. If not then we need to have a discussion about that and add some comments. regards, dan carpenter > + } > + > connector_type = desc->connector_type; > /* Catch common mistakes for panels. */ > switch (connector_type) { > > -- > 2.39.2