* Is it possible for Realtek card reader driver to reside in SCSI subsystem? @ 2012-04-23 3:49 edwin_rong 2012-04-23 7:39 ` James Bottomley 0 siblings, 1 reply; 7+ messages in thread From: edwin_rong @ 2012-04-23 3:49 UTC (permalink / raw) To: JBottomley, linux-scsi, gregkh@suse.de, 王炜 Dear James and all : Sorry to disturb you again! I'm an software engineer of Realtek corporation, responsible for writing driver for Realtek Card Reader chips. Our device supports SD/MMC/MS/MSpro/xD series of cards, etc., which is implemented as an SCSI device in our driver, and now our driver rts_pstor is under staging folder of linux kernel, so I want to know whether it is possible to move it out of staging folder, and reside in SCSI subsystem? I also know that both "mmc" and "memstick" subsystem exist in kernel now, but our device is a composition of these types of cards, so it seems not suitable for keeping our driver there. All replies are appreciated. Thanks & BRs Edwin.Rong ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is it possible for Realtek card reader driver to reside in SCSI subsystem? 2012-04-23 3:49 Is it possible for Realtek card reader driver to reside in SCSI subsystem? edwin_rong @ 2012-04-23 7:39 ` James Bottomley 2012-04-23 8:00 ` Is it possible for Realtek card reader driver to reside in SCSIsubsystem? edwin_rong 0 siblings, 1 reply; 7+ messages in thread From: James Bottomley @ 2012-04-23 7:39 UTC (permalink / raw) To: edwin_rong; +Cc: linux-scsi@vger.kernel.org, gregkh@suse.de, 王炜 On Mon, 2012-04-23 at 11:49 +0800, edwin_rong wrote: > Dear James and all : > > Sorry to disturb you again! > > I'm an software engineer of Realtek corporation, responsible for writing > driver for Realtek Card Reader chips. > > Our device supports SD/MMC/MS/MSpro/xD series of cards, etc., which is > implemented as an SCSI device in our driver, > and now our driver rts_pstor is under staging folder of linux kernel, so > I want to know whether it is possible to move it out of staging folder, > and reside in SCSI subsystem? > > I also know that both "mmc" and "memstick" subsystem exist in kernel > now, but our device is a composition of these types of cards, > so it seems not suitable for keeping our driver there. > > All replies are appreciated. The general rule is that if the device itself speaks SCSI ... as in either the firmware or the underlying disk does, then you should be using SCSI (This doesn't mean you have to have an actual SCSI device anywhere ... lots of USB devices are some wierd flash or IDE device fronted by a chip that does SCSI<->whatever translation [usually badly]). Conversely if you would be writing your SCSI command emulation in the driver, don't ... you should be using another subsystem. James ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is it possible for Realtek card reader driver to reside in SCSIsubsystem? 2012-04-23 7:39 ` James Bottomley @ 2012-04-23 8:00 ` edwin_rong 2012-04-23 8:11 ` James Bottomley 0 siblings, 1 reply; 7+ messages in thread From: edwin_rong @ 2012-04-23 8:00 UTC (permalink / raw) To: James Bottomley Cc: linux-scsi@vger.kernel.org, gregkh@suse.de, 王炜 On 04/23/2012 03:39 PM, James Bottomley wrote: > On Mon, 2012-04-23 at 11:49 +0800, edwin_rong wrote: >> Dear James and all : >> >> Sorry to disturb you again! >> >> I'm an software engineer of Realtek corporation, responsible for writing >> driver for Realtek Card Reader chips. >> >> Our device supports SD/MMC/MS/MSpro/xD series of cards, etc., which is >> implemented as an SCSI device in our driver, >> and now our driver rts_pstor is under staging folder of linux kernel, so >> I want to know whether it is possible to move it out of staging folder, >> and reside in SCSI subsystem? >> >> I also know that both "mmc" and "memstick" subsystem exist in kernel >> now, but our device is a composition of these types of cards, >> so it seems not suitable for keeping our driver there. >> >> All replies are appreciated. > The general rule is that if the device itself speaks SCSI ... as in > either the firmware or the underlying disk does, then you should be > using SCSI (This doesn't mean you have to have an actual SCSI device > anywhere ... lots of USB devices are some wierd flash or IDE device > fronted by a chip that does SCSI<->whatever translation [usually > badly]). Conversely if you would be writing your SCSI command emulation > in the driver, don't ... you should be using another subsystem. > > James > Dear James, Got it, thanks for your response, sincerely. As to my case, which subsystem do you think is fit for our driver to stay, could you give me some suggestions? Thanks & BRs Edwin ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is it possible for Realtek card reader driver to reside in SCSIsubsystem? 2012-04-23 8:00 ` Is it possible for Realtek card reader driver to reside in SCSIsubsystem? edwin_rong @ 2012-04-23 8:11 ` James Bottomley 2012-04-23 8:24 ` Is it possible for Realtek card reader driver to reside inSCSIsubsystem? edwin_rong 0 siblings, 1 reply; 7+ messages in thread From: James Bottomley @ 2012-04-23 8:11 UTC (permalink / raw) To: edwin_rong; +Cc: linux-scsi@vger.kernel.org, 王炜, Greg KH [updated Greg to non-SUSE address] On Mon, 2012-04-23 at 16:00 +0800, edwin_rong wrote: > On 04/23/2012 03:39 PM, James Bottomley wrote: > > On Mon, 2012-04-23 at 11:49 +0800, edwin_rong wrote: > >> Dear James and all : > >> > >> Sorry to disturb you again! > >> > >> I'm an software engineer of Realtek corporation, responsible for writing > >> driver for Realtek Card Reader chips. > >> > >> Our device supports SD/MMC/MS/MSpro/xD series of cards, etc., which is > >> implemented as an SCSI device in our driver, > >> and now our driver rts_pstor is under staging folder of linux kernel, so > >> I want to know whether it is possible to move it out of staging folder, > >> and reside in SCSI subsystem? > >> > >> I also know that both "mmc" and "memstick" subsystem exist in kernel > >> now, but our device is a composition of these types of cards, > >> so it seems not suitable for keeping our driver there. > >> > >> All replies are appreciated. > > The general rule is that if the device itself speaks SCSI ... as in > > either the firmware or the underlying disk does, then you should be > > using SCSI (This doesn't mean you have to have an actual SCSI device > > anywhere ... lots of USB devices are some wierd flash or IDE device > > fronted by a chip that does SCSI<->whatever translation [usually > > badly]). Conversely if you would be writing your SCSI command emulation > > in the driver, don't ... you should be using another subsystem. > > > > James > > > Dear James, > > Got it, thanks for your response, sincerely. > > As to my case, which subsystem do you think is fit for our driver to > stay, could you give me some suggestions? Well, you said it's a combination of mmc and memstick. If it can be bound as two separate drivers, I'd say one in each. If there's magic that has to be done in the binding (as in you need a single bind driver that activates each component), I'd say be guided by the maintainers of those components. My instinct would be to put it in one and use the other via Kconfig, but whatever they find most appropriate. James ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is it possible for Realtek card reader driver to reside inSCSIsubsystem? 2012-04-23 8:11 ` James Bottomley @ 2012-04-23 8:24 ` edwin_rong 2012-04-23 15:48 ` Greg KH 0 siblings, 1 reply; 7+ messages in thread From: edwin_rong @ 2012-04-23 8:24 UTC (permalink / raw) To: James Bottomley; +Cc: linux-scsi@vger.kernel.org, 王炜, Greg KH On 04/23/2012 04:11 PM, James Bottomley wrote: > [updated Greg to non-SUSE address] > On Mon, 2012-04-23 at 16:00 +0800, edwin_rong wrote: >> On 04/23/2012 03:39 PM, James Bottomley wrote: >>> On Mon, 2012-04-23 at 11:49 +0800, edwin_rong wrote: >>>> Dear James and all : >>>> >>>> Sorry to disturb you again! >>>> >>>> I'm an software engineer of Realtek corporation, responsible for writing >>>> driver for Realtek Card Reader chips. >>>> >>>> Our device supports SD/MMC/MS/MSpro/xD series of cards, etc., which is >>>> implemented as an SCSI device in our driver, >>>> and now our driver rts_pstor is under staging folder of linux kernel, so >>>> I want to know whether it is possible to move it out of staging folder, >>>> and reside in SCSI subsystem? >>>> >>>> I also know that both "mmc" and "memstick" subsystem exist in kernel >>>> now, but our device is a composition of these types of cards, >>>> so it seems not suitable for keeping our driver there. >>>> >>>> All replies are appreciated. >>> The general rule is that if the device itself speaks SCSI ... as in >>> either the firmware or the underlying disk does, then you should be >>> using SCSI (This doesn't mean you have to have an actual SCSI device >>> anywhere ... lots of USB devices are some wierd flash or IDE device >>> fronted by a chip that does SCSI<->whatever translation [usually >>> badly]). Conversely if you would be writing your SCSI command emulation >>> in the driver, don't ... you should be using another subsystem. >>> >>> James >>> >> Dear James, >> >> Got it, thanks for your response, sincerely. >> >> As to my case, which subsystem do you think is fit for our driver to >> stay, could you give me some suggestions? > Well, you said it's a combination of mmc and memstick. If it can be > bound as two separate drivers, I'd say one in each. If there's magic > that has to be done in the binding (as in you need a single bind driver > that activates each component), I'd say be guided by the maintainers of > those components. My instinct would be to put it in one and use the > other via Kconfig, but whatever they find most appropriate. > > James > > Gotcha! Thanks for your suggestion, James. BRs Edwin ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is it possible for Realtek card reader driver to reside inSCSIsubsystem? 2012-04-23 8:24 ` Is it possible for Realtek card reader driver to reside inSCSIsubsystem? edwin_rong @ 2012-04-23 15:48 ` Greg KH 2012-04-24 1:10 ` Is it possible for Realtek card reader driver to resideinSCSIsubsystem? edwin_rong 0 siblings, 1 reply; 7+ messages in thread From: Greg KH @ 2012-04-23 15:48 UTC (permalink / raw) To: edwin_rong; +Cc: James Bottomley, linux-scsi@vger.kernel.org, 王炜 On Mon, Apr 23, 2012 at 04:24:49PM +0800, edwin_rong wrote: > On 04/23/2012 04:11 PM, James Bottomley wrote: > >[updated Greg to non-SUSE address] > >On Mon, 2012-04-23 at 16:00 +0800, edwin_rong wrote: > >>On 04/23/2012 03:39 PM, James Bottomley wrote: > >>>On Mon, 2012-04-23 at 11:49 +0800, edwin_rong wrote: > >>>>Dear James and all : > >>>> > >>>>Sorry to disturb you again! > >>>> > >>>>I'm an software engineer of Realtek corporation, responsible for writing > >>>>driver for Realtek Card Reader chips. > >>>> > >>>>Our device supports SD/MMC/MS/MSpro/xD series of cards, etc., which is > >>>>implemented as an SCSI device in our driver, > >>>>and now our driver rts_pstor is under staging folder of linux kernel, so > >>>>I want to know whether it is possible to move it out of staging folder, > >>>>and reside in SCSI subsystem? > >>>> > >>>>I also know that both "mmc" and "memstick" subsystem exist in kernel > >>>>now, but our device is a composition of these types of cards, > >>>>so it seems not suitable for keeping our driver there. > >>>> > >>>>All replies are appreciated. > >>>The general rule is that if the device itself speaks SCSI ... as in > >>>either the firmware or the underlying disk does, then you should be > >>>using SCSI (This doesn't mean you have to have an actual SCSI device > >>>anywhere ... lots of USB devices are some wierd flash or IDE device > >>>fronted by a chip that does SCSI<->whatever translation [usually > >>>badly]). Conversely if you would be writing your SCSI command emulation > >>>in the driver, don't ... you should be using another subsystem. > >>> > >>>James > >>> > >>Dear James, > >> > >>Got it, thanks for your response, sincerely. > >> > >>As to my case, which subsystem do you think is fit for our driver to > >>stay, could you give me some suggestions? > >Well, you said it's a combination of mmc and memstick. If it can be > >bound as two separate drivers, I'd say one in each. If there's magic > >that has to be done in the binding (as in you need a single bind driver > >that activates each component), I'd say be guided by the maintainers of > >those components. My instinct would be to put it in one and use the > >other via Kconfig, but whatever they find most appropriate. > > > >James > > > > > Gotcha! > > Thanks for your suggestion, James. Also, at the least, you have a lot of basic coding style issues to clean up in the drivers/staging/rts_pstor/ directory before your code can move out of there. Please start working on that as soon as possible. thanks, greg k-h ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is it possible for Realtek card reader driver to resideinSCSIsubsystem? 2012-04-23 15:48 ` Greg KH @ 2012-04-24 1:10 ` edwin_rong 0 siblings, 0 replies; 7+ messages in thread From: edwin_rong @ 2012-04-24 1:10 UTC (permalink / raw) To: Greg KH; +Cc: James Bottomley, linux-scsi@vger.kernel.org, 王炜 On 04/23/2012 11:48 PM, Greg KH wrote: > On Mon, Apr 23, 2012 at 04:24:49PM +0800, edwin_rong wrote: >> On 04/23/2012 04:11 PM, James Bottomley wrote: >>> [updated Greg to non-SUSE address] >>> On Mon, 2012-04-23 at 16:00 +0800, edwin_rong wrote: >>>> On 04/23/2012 03:39 PM, James Bottomley wrote: >>>>> On Mon, 2012-04-23 at 11:49 +0800, edwin_rong wrote: >>>>>> Dear James and all : >>>>>> >>>>>> Sorry to disturb you again! >>>>>> >>>>>> I'm an software engineer of Realtek corporation, responsible for writing >>>>>> driver for Realtek Card Reader chips. >>>>>> >>>>>> Our device supports SD/MMC/MS/MSpro/xD series of cards, etc., which is >>>>>> implemented as an SCSI device in our driver, >>>>>> and now our driver rts_pstor is under staging folder of linux kernel, so >>>>>> I want to know whether it is possible to move it out of staging folder, >>>>>> and reside in SCSI subsystem? >>>>>> >>>>>> I also know that both "mmc" and "memstick" subsystem exist in kernel >>>>>> now, but our device is a composition of these types of cards, >>>>>> so it seems not suitable for keeping our driver there. >>>>>> >>>>>> All replies are appreciated. >>>>> The general rule is that if the device itself speaks SCSI ... as in >>>>> either the firmware or the underlying disk does, then you should be >>>>> using SCSI (This doesn't mean you have to have an actual SCSI device >>>>> anywhere ... lots of USB devices are some wierd flash or IDE device >>>>> fronted by a chip that does SCSI<->whatever translation [usually >>>>> badly]). Conversely if you would be writing your SCSI command emulation >>>>> in the driver, don't ... you should be using another subsystem. >>>>> >>>>> James >>>>> >>>> Dear James, >>>> >>>> Got it, thanks for your response, sincerely. >>>> >>>> As to my case, which subsystem do you think is fit for our driver to >>>> stay, could you give me some suggestions? >>> Well, you said it's a combination of mmc and memstick. If it can be >>> bound as two separate drivers, I'd say one in each. If there's magic >>> that has to be done in the binding (as in you need a single bind driver >>> that activates each component), I'd say be guided by the maintainers of >>> those components. My instinct would be to put it in one and use the >>> other via Kconfig, but whatever they find most appropriate. >>> >>> James >>> >>> >> Gotcha! >> >> Thanks for your suggestion, James. > Also, at the least, you have a lot of basic coding style issues to clean > up in the drivers/staging/rts_pstor/ directory before your code can move > out of there. Please start working on that as soon as possible. > > thanks, > > greg k-h Dear Greg, Yes, it is. Now we're working on the refactor of Realtek card reader driver to make it support all Realtek driver-based chips with USB or PCIe inferface, that is to say, making all Realtek card reader driver in one, and it will substitute currently existing "rts_pstro" and "rts5139" under driver/staging directory in the future. Thanks Edwin ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-04-24 1:10 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-04-23 3:49 Is it possible for Realtek card reader driver to reside in SCSI subsystem? edwin_rong 2012-04-23 7:39 ` James Bottomley 2012-04-23 8:00 ` Is it possible for Realtek card reader driver to reside in SCSIsubsystem? edwin_rong 2012-04-23 8:11 ` James Bottomley 2012-04-23 8:24 ` Is it possible for Realtek card reader driver to reside inSCSIsubsystem? edwin_rong 2012-04-23 15:48 ` Greg KH 2012-04-24 1:10 ` Is it possible for Realtek card reader driver to resideinSCSIsubsystem? edwin_rong
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox