public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: "Mukund JB`." <mukundjb@esntechnologies.co.in>
Cc: linux-kernel-Mailing-list <linux-kernel@vger.kernel.org>
Subject: Re: How to support partitions in driver?
Date: Thu, 18 Aug 2005 08:07:23 +0100	[thread overview]
Message-ID: <20050818080722.A3966@flint.arm.linux.org.uk> (raw)
In-Reply-To: <3AEC1E10243A314391FE9C01CD65429B3845@mail.esn.co.in>; from mukundjb@esntechnologies.co.in on Thu, Aug 18, 2005 at 12:22:55PM +0530

On Thu, Aug 18, 2005 at 12:22:55PM +0530, Mukund JB`. wrote:
> I have few basic queries regarding my partition implementation in my Sd
> driver. 
> Sorry for asking such petty things here. But, somehow it's not working &
> I am made to ask it here.

Why don't you use the MMC/SD layer already merged into the kernel
instead of rewriting your own.  Grab a copy of Andrew Morton's
kernel, and look at the code in drivers/mmc and include/linux/mmc.

There are three host drivers there already.  I'm sure you can work
out how to interface the existing framework to your device.

And suddenly you can take advantage of the already existing mmc
block device support, which does support partitions, and does
manage to get hot swapping block devices more or less correct.
(and if it doesn't, it'll be one less driver to fix later.)

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

  reply	other threads:[~2005-08-18  7:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18  6:52 How to support partitions in driver? Mukund JB`.
2005-08-18  7:07 ` Russell King [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-18  7:47 Mukund JB`.
2005-08-18 19:42 ` Russell King

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=20050818080722.A3966@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mukundjb@esntechnologies.co.in \
    /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