From: Guenter Roeck <linux@roeck-us.net>
To: cy_huang <u0084500@gmail.com>,
gregkh@linuxfoundation.org, robh+dt@kernel.org,
matthias.bgg@gmail.com, heikki.krogerus@linux.intel.com
Cc: gene_chen@richtek.com, devicetree@vger.kernel.org,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
cy_huang@richtek.com, linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 3/3] usb typec: mt6360: Prevent the race condition during module remove
Date: Wed, 26 Aug 2020 20:34:24 -0700 [thread overview]
Message-ID: <b9c73699-bd84-52f7-e42d-a482036e78e0@roeck-us.net> (raw)
In-Reply-To: <1598498732-25194-3-git-send-email-u0084500@gmail.com>
On 8/26/20 8:25 PM, cy_huang wrote:
> From: ChiYuan Huang <cy_huang@richtek.com>
>
> Prevent the race condition from interrupt and tcpci port unregister
> during module remove.
>
> Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Please squash with the first patch of the series.
Thanks,
Guenter
> ---
> drivers/usb/typec/tcpm/tcpci_mt6360.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/typec/tcpm/tcpci_mt6360.c b/drivers/usb/typec/tcpm/tcpci_mt6360.c
> index 6a28193..a381b5d 100644
> --- a/drivers/usb/typec/tcpm/tcpci_mt6360.c
> +++ b/drivers/usb/typec/tcpm/tcpci_mt6360.c
> @@ -164,6 +164,7 @@ static int mt6360_tcpc_remove(struct platform_device *pdev)
> {
> struct mt6360_tcpc_info *mti = platform_get_drvdata(pdev);
>
> + disable_irq(mti->irq);
> tcpci_unregister_port(mti->tcpci);
> return 0;
> }
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-08-27 3:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-27 3:25 [PATCH v2 1/3] usb typec: mt6360: Add support for mt6360 Type-C driver cy_huang
2020-08-27 3:25 ` [PATCH v2 2/3] usb typec: mt6360: Add MT6360 Type-C DT binding documentation cy_huang
2020-08-27 3:25 ` [PATCH v2 3/3] usb typec: mt6360: Prevent the race condition during module remove cy_huang
2020-08-27 3:34 ` Guenter Roeck [this message]
2020-08-27 4:53 ` 啟原黃
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=b9c73699-bd84-52f7-e42d-a482036e78e0@roeck-us.net \
--to=linux@roeck-us.net \
--cc=cy_huang@richtek.com \
--cc=devicetree@vger.kernel.org \
--cc=gene_chen@richtek.com \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=u0084500@gmail.com \
/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