From: Jani Nikula <jani.nikula@linux.intel.com>
To: Chu Guangqing <chuguangqing@inspur.com>,
tzimmermann@suse.de, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, airlied@gmail.com, simona@ffwll.ch,
dmitry.baryshkov@oss.qualcomm.com
Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
Chu Guangqing <chuguangqing@inspur.com>
Subject: Re: [PATCH v8 1/1] [DRIVER] gpu: drm: add support for YHGCH ZX1000 soc chipset
Date: Mon, 29 Sep 2025 14:39:56 +0300 [thread overview]
Message-ID: <9ab159073b644c83541e4782c30ae9900b0f27d4@intel.com> (raw)
In-Reply-To: <20250929104831.8548-2-chuguangqing@inspur.com>
On Mon, 29 Sep 2025, Chu Guangqing <chuguangqing@inspur.com> wrote:
> diff --git a/drivers/gpu/drm/yhgch/yhgch_drm_vdac.c b/drivers/gpu/drm/yhgch/yhgch_drm_vdac.c
> new file mode 100644
> index 000000000000..2e222af29f69
> --- /dev/null
> +++ b/drivers/gpu/drm/yhgch/yhgch_drm_vdac.c
> @@ -0,0 +1,134 @@
> +// SPDX-License-Identifier: GPL-2.0
> +
> +#include <linux/io.h>
> +
> +#include <drm/drm_atomic_helper.h>
> +#include <drm/drm_edid.h>
> +#include <drm/drm_probe_helper.h>
> +#include <drm/drm_print.h>
> +#include <drm/drm_simple_kms_helper.h>
> +
> +#include "yhgch_drm_drv.h"
> +#include "yhgch_drm_regs.h"
> +
> +static int yhgch_connector_get_modes(struct drm_connector *connector)
> +{
> + int count;
> + const struct drm_edid *drm_edid;
> +
> + drm_edid = drm_edid_read(connector);
> + if (drm_edid) {
> + drm_edid_connector_update(connector, drm_edid);
You're supposed to do drm_edid_connector_update() even for NULL edid to
reset it.
BR,
Jani.
> + count = drm_edid_connector_add_modes(connector);
> + if (count)
> + goto out;
> + }
> +
> + count = drm_add_modes_noedid(connector,
> + connector->dev->mode_config.max_width,
> + connector->dev->mode_config.max_height);
> + drm_set_preferred_mode(connector, 1024, 768);
> +
> +out:
> + drm_edid_free(drm_edid);
> + return count;
> +}
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-09-29 11:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-28 5:41 [PATCH v6 0/1] [DRIVER] gpu: drm: add support for Yhgc " Chu Guangqing
2025-09-28 5:41 ` [PATCH v6 1/1] " Chu Guangqing
2025-09-28 21:43 ` Dmitry Baryshkov
2025-09-29 6:07 ` Chu Guangqing
2025-09-29 6:31 ` [PATCH v7 0/1] " Chu Guangqing
2025-09-29 6:31 ` [PATCH v7 1/1] " Chu Guangqing
2025-09-29 9:07 ` Dmitry Baryshkov
2025-09-29 11:00 ` Chu Guangqing
2025-09-29 10:48 ` [PATCH v8 0/1] [DRIVER] gpu: drm: add support for YHGCH " Chu Guangqing
2025-09-29 10:48 ` [PATCH v8 1/1] " Chu Guangqing
2025-09-29 11:39 ` Jani Nikula [this message]
2025-10-14 7:34 ` Re: " Chu Guangqing
2025-10-05 23:06 ` Dmitry Baryshkov
2025-10-05 22:56 ` [PATCH v8 0/1] " Dmitry Baryshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9ab159073b644c83541e4782c30ae9900b0f27d4@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=airlied@gmail.com \
--cc=chuguangqing@inspur.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®