[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <81C3A93C17462B4BBD7E272753C1057923BD6DF2F0@EXDCVYMBSTM005.EQ1STM.local>
Date: Thu, 20 Sep 2012 12:15:23 +0200
From: Sjur BRENDELAND <sjur.brandeland@...ricsson.com>
To: Ohad Ben-Cohen <ohad@...ery.com>
Cc: Sjur Brændeland <sjurbren@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Alan Cox <alan@...rguk.ukuu.org.uk>
Subject: RE: [PATCHv3] remoteproc: Add STE modem driver for remoteproc
Hi Ohad,
> > + /* Provide callbacks to modem device */
> > + mdev->drv_ops = &sproc_drv_ops;
>
> Implicitly providing the modem with drv_ops and drv_data in this
> manner feels racy and somewhat error prone.
>
> E.g., on remove these members are set to NULL, under the assumption
> that the modem won't invoke sproc_kick_callback or access sproc
> anymore, but this doesn't feel safe.
>
> Any chance you can add an explicit registration method to
> ste_modem_dev_ops, with which you'll be able to explicitly set/unset
> sproc_kick_callback and sproc ?
Good point. I'll make a respin fixing this.
Thanks,
Sjur
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists