Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2180648rdd; Fri, 12 Jan 2024 01:36:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxAyLnHAvrARMAs7st6+0WzudWrmd7V9hxtMCMNRwmxFBUM3A7LjUIxLG7/aycAEgm9g4t X-Received: by 2002:a17:906:7191:b0:a2a:decf:b8d6 with SMTP id h17-20020a170906719100b00a2adecfb8d6mr464269ejk.49.1705052209515; Fri, 12 Jan 2024 01:36:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705052209; cv=none; d=google.com; s=arc-20160816; b=IroLQH487qBd8EYte5+f8Z6I2aEN99VcBwyJTA3jwLRSmNuRS7BKnnLRfH/F83jSs8 u604zlzLLeseM2rR/z9G6yVF2RkiCsGC7vS8lZRqp2WKeXa//4Q0lkgOe+rrIAkfcr9D 4/On6h+zpSQGAQXPJGaX+flrJ1uI4CaMdFwt3PtIIon4EjA8LHveZKMGtEHIX3eHfBal vVhuUitthZxlDAzRHu88IXu3ct8homi/1QzTG3hbwb0DFnmuPBIzqD0yn2uHy2vEHIj2 2OVi7kSQUt/NHm+loYRCK4I3GRMhPAqODyz4VpH8LBA8EAXAjYzJY+GhRokV/sOHp+ln /u3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=zrigGjhUftMsEvvhMgmyslWsk/A848z/GQjhjvTjG/k=; fh=r4N056HpI5q8Q8wpgpq8DVJO03Z744Zl7MDqUIdtJHs=; b=NBz+d6DQdHlpMxPO6Z77GhfjJ84LLjRABPd89vbHEHBz+kzkwMRBcE9lUR2PxpRdhV 2CKUHWKTiWmzbwU86vSOqADbrx0HLnT/j08M6e97MqnIneYVIFLvZdAhz/4AffuNlVIi BSnLErMromFj5iWwk0L5kECFgRKdFIg4S7fkdHwVFd/Zb8MT/G45nr2DZKbPquQbS6m5 XNT/lLXNXFRSZrI/cdIsgyHeM/cx1GeTj8ahmndLN+RvVVcudEHmWHkB4O8xDX5vvpre xzAezGebC6BD9UaM7tZR1PKLCVSpFUSlVwcg6la/d2UdgFW9MvhSo9d5niQ7Tt5kIJz/ qhcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="mawCA5/4"; spf=pass (google.com: domain of linux-kernel+bounces-24491-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ot1-20020a170906ccc100b00a27d6806c6csi1262263ejb.851.2024.01.12.01.36.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:36:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24491-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="mawCA5/4"; spf=pass (google.com: domain of linux-kernel+bounces-24491-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 422361F2587C for ; Fri, 12 Jan 2024 09:36:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3877757309; Fri, 12 Jan 2024 09:36:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mawCA5/4" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB11251C2E for ; Fri, 12 Jan 2024 09:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-40e54f233abso31526035e9.0 for ; Fri, 12 Jan 2024 01:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705052191; x=1705656991; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zrigGjhUftMsEvvhMgmyslWsk/A848z/GQjhjvTjG/k=; b=mawCA5/4be53fynPQBvy4OVV1P0XzS82li55NAuCX6XeGOGq6MjgkoWY8XnzicHh/W WIeSmWTXK4ZhvKUYq5B0kJ1M69OKXuo1hIEzd0CEt7/BmfETnCRY5TR7BGFw05HNcEfg 4yKAYOIqjAJA7eRdI3d3dyPc83Bqnb308ALftmgJ7jhvDZMsVeA0tx4Qp8dbP0k5cqLc PNOcwkhY6yIQWVffQRek1jXb2qXhnZ9jCYrbXRl2NImhW13wpGlCBZPhHw9BUMqVAwja Q+hi/G3i6n6kk0JNMgiXvjnGm4V+WmaoqonHDIuyH+gvffTZKu2P6EKIDRDVp1HD96dj lIeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705052191; x=1705656991; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zrigGjhUftMsEvvhMgmyslWsk/A848z/GQjhjvTjG/k=; b=s5HCQfk143CRYy6/bRSLK5rLzrmppwQWBHVdcuFmgEYCZweG1T3GHDiGrFR4Bv6xBK p1cvD0QTD+q7PX+s688O3KJqLY/I8iCQdB2QMUQ9eEfqi4Txyyx5+/6QNc/8fq8ly6Ig zvdIxHzI4VTEFW1o3+m1//3rdINnI+mhOYYZDA5RFUAgJA7xpWrnVuR7cuB4WA6DGpyp Aiocu9U+e1KNlzeTPAgbguanGH2WkmgMDoXI7zYy3BY+BMF41Dp1amwdd32N0PToqw6A taof3f+6xWXj+WHJPVzi/E8SEF0PqS5lWYeKzlYl/yoiNO+m5sGYJZP2ukSgW8ExCyXT Zkrw== X-Gm-Message-State: AOJu0Yxibbjc9A5T3mlkdqD3LaJKw89d+0iqisnqQDZUvZzLPREWIa00 TRDc8dvK0pKwex2m5DrZ/QO40k7dizzLsw== X-Received: by 2002:a05:600c:1f92:b0:40d:70c3:5f3d with SMTP id je18-20020a05600c1f9200b0040d70c35f3dmr577626wmb.105.1705052191103; Fri, 12 Jan 2024 01:36:31 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id fl13-20020a05600c0b8d00b0040d8cd116e4sm9009008wmb.37.2024.01.12.01.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:36:30 -0800 (PST) From: Neil Armstrong To: hanxu5@huaqin.corp-partner.google.com, chenguanxi11234@163.com Cc: cgel.zte@gmail.com, quic_jesszhan@quicinc.com, sam@ravnborg.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, yang.guang5@zte.com.cn, jiang.xuexin@zte.com.cn, Chen Haonan In-Reply-To: <3ac20d355b0b3ad3cedb87c8f4efa819a055624b.1702967834.git.chen.haonan2@zte.com.cn> References: <3ac20d355b0b3ad3cedb87c8f4efa819a055624b.1702967834.git.chen.haonan2@zte.com.cn> Subject: Re: [PATCH linux-next v2] drm/panel: Simplify with dev_err_probe() Message-Id: <170505219020.999327.8364667104260922232.b4-ty@linaro.org> Date: Fri, 12 Jan 2024 10:36:30 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.4 Hi, On Mon, 25 Dec 2023 22:26:15 +0800, chenguanxi11234@163.com wrote: > dev_err_probe() can check if the error code is -EPROBE_DEFER > and can return the error code, replacing dev_err() with it > simplifies the code. > > Thanks, Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next) [1/1] drm/panel: Simplify with dev_err_probe() https://cgit.freedesktop.org/drm/drm-misc/commit/?id=9f78b3ae051d9eeeed9658cf54b3f0ea6920097b -- Neil