From: Shubhrajyoti <shubhrajyoti@ti.com>
To: Brian Norris <computersforpeace@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>,
linux-omap@vger.kernel.org, linux-mtd@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
Artem Bityutskiy <dedekind1@gmail.com>
Subject: Re: [PATCH RFC 2/2] mtd : Make the mtd_suspend return 0 if the suspend is not implemented
Date: Tue, 24 Jan 2012 14:22:28 +0530 [thread overview]
Message-ID: <4F1E714C.8090206@ti.com> (raw)
In-Reply-To: <CAN8TOE8i-g_QTsidqDW=TRfZMQ8u93+iP8V7rr4paek=7xZ7UA@mail.gmail.com>
On Tuesday 24 January 2012 01:39 PM, Brian Norris wrote:
> Hi,
>
> On Mon, Jan 23, 2012 at 12:12 AM, Shubhrajyoti D <shubhrajyoti@ti.com> wrote:
> ...
>> include/linux/mtd/mtd.h | 6 +++---
>> 1 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
>> index 1a81fde..c717bb6 100644
>> --- a/include/linux/mtd/mtd.h
>> +++ b/include/linux/mtd/mtd.h
>> @@ -427,9 +427,9 @@ static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
>>
>> static inline int mtd_suspend(struct mtd_info *mtd)
>> {
>> - if (!mtd->suspend)
>> - return -EOPNOTSUPP;
>> - return mtd->suspend(mtd);
>> + if (mtd->suspend)
>> + return mtd->suspend(mtd);
>> + return 0;
>> }
>>
>> static inline void mtd_resume(struct mtd_info *mtd)
> I believe this fix is already accounted for in Artem Bityutskiy's
> l2-mtd-2.6 repository as:
>
> commit 091a7fe219ee8d3e76be9e02221433af10c6f574
> mtd: fix MTD suspend
> (http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/091a7fe219ee8d3e76be9e02221433af10c6f574)
>
> However, the bug made it into the 3.3 merge window, so shouldn't this
> bugfix be sent upstream immediately?
OK thanks for pointing that.
> Brian
next prev parent reply other threads:[~2012-01-24 8:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 8:12 [PATCH RFC 0/2] mtd updates Shubhrajyoti D
2012-01-23 8:12 ` [PATCH RFC 1/2] mtd : Prevent the NULL pointer access Shubhrajyoti D
2012-01-27 19:08 ` Brian Norris
2012-01-23 8:12 ` [PATCH RFC 2/2] mtd : Make the mtd_suspend return 0 if the suspend is not implemented Shubhrajyoti D
2012-01-24 8:09 ` Brian Norris
2012-01-24 8:52 ` Shubhrajyoti [this message]
2012-01-24 9:06 ` Russell King - ARM Linux
2012-01-25 5:16 ` Brian Norris
2012-01-30 11:45 ` Artem Bityutskiy
2012-01-30 22:58 ` Rafael J. Wysocki
2012-02-02 11:43 ` Artem Bityutskiy
2012-02-02 18:40 ` Rafael J. Wysocki
2012-02-02 20:21 ` Russell King - ARM Linux
2012-02-02 20:36 ` Rafael J. Wysocki
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=4F1E714C.8090206@ti.com \
--to=shubhrajyoti@ti.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-omap@vger.kernel.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