From: Greg KH <gregkh@linuxfoundation.org>
To: Claire Chang <tientzu@chromium.org>
Cc: robh@kernel.org, jslaby@suse.com, long.cheng@mediatek.com,
changqi.hu@mediatek.com, linux-serial@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] serdev: ttyport: add devt for tty port
Date: Fri, 15 May 2020 14:46:21 +0200 [thread overview]
Message-ID: <20200515124621.GB1888557@kroah.com> (raw)
In-Reply-To: <20200506072314.112409-2-tientzu@chromium.org>
On Wed, May 06, 2020 at 03:23:12PM +0800, Claire Chang wrote:
> serial_match_port() uses devt to match devices. However, when serdev
> registers a tty port, devt has never been set. This makes
> device_find_child() always return NULL.
>
> Assign devt in serdev_tty_port_register() to fix this.
>
> Signed-off-by: Claire Chang <tientzu@chromium.org>
> ---
> drivers/tty/serdev/serdev-ttyport.c | 2 ++
> 1 file changed, 2 insertions(+)
So is existing code broken because of this? Or does no one ever call
device_find_child() on this? Who needs/uses this?
thanks,
greg k-h
next prev parent reply other threads:[~2020-05-15 12:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 7:23 [PATCH 0/3] add wakeup_irq for in-band wakeup support Claire Chang
2020-05-06 7:23 ` [PATCH 1/3] serdev: ttyport: add devt for tty port Claire Chang
2020-05-15 12:46 ` Greg KH [this message]
2020-05-18 10:04 ` Claire Chang
2020-05-18 14:56 ` Johan Hovold
2020-05-06 7:23 ` [PATCH 2/3] tty: serial_core: add wakeup_irq to support in-band wakeup Claire Chang
2020-05-06 7:23 ` [PATCH 3/3] uart: mediatek: move the in-band wakeup logic to core Claire Chang
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=20200515124621.GB1888557@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=changqi.hu@mediatek.com \
--cc=jslaby@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-serial@vger.kernel.org \
--cc=long.cheng@mediatek.com \
--cc=robh@kernel.org \
--cc=tientzu@chromium.org \
/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;
as well as URLs for NNTP newsgroup(s).