Skip to content

misc generic ide stuff

Borislav Petkov linux-ide lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18ide-cd: remove wait-for-idle-controller bit in cdrom_start_packet_commanddrivers/ide/ide-cd.c+0 -50 replies
2/18ide-cd: remove ide_cd_drain_data and ide_cd_pad_transferdrivers/ide/ide-cd.c+4 -292 replies
3/18ide-cd: cdrom_decode_status: factor out block pc error handling codedrivers/ide/ide-cd.c+45 -364 replies
4/18ide-cd: cdrom_decode_status: factor out fs request error handling codedrivers/ide/ide-cd.c+111 -950 replies
5/18ide-cd: ide_do_rw_cdrom: add the catch-all bad request case to the if-else blockdrivers/ide/ide-cd.c+4 -40 replies
6/18ide-cd: cdrom_start_seek: remove unused argument blockdrivers/ide/ide-cd.c+2 -20 replies
7/18ide-cd: mv ide_do_rw_cdrom ide_cd_do_requestdrivers/ide/ide-cd.c+2 -20 replies
8/18ide-cd: simplify request issuing pathdrivers/ide/ide-cd.c+21 -180 replies
9/18ide-cd: fold cdrom_start_seek into ide_cd_do_requestdrivers/ide/ide-cd.c+2 -90 replies
10/18ide-cd: move request prep from cdrom_start_seek_continuation to rq issue pathdrivers/ide/ide-cd.c+10 -20 replies
11/18ide-cd: move request prep from cdrom_start_rw_cont to rq issue pathdrivers/ide/ide-cd.c+20 -90 replies
12/18ide-cd: move request prep chunk from cdrom_do_newpc_cont to rq issue pathdrivers/ide/ide-cd.c+8 -60 replies
13/18ide-floppy: replace pc->c with rq->cmddrivers/ide/ide-atapi.c drivers/ide/ide-floppy.c+120 -1093 replies
14/18ide-floppy: fold idefloppy_create_test_unit_ready_cmd into idefloppy_opendrivers/ide/ide-floppy.c+3 -80 replies
15/18ide-floppy: zero out the whole struct ide_atapi_pc on initdrivers/ide/ide-floppy.c+2 -30 replies
16/18ide-floppy: pass rq instead of pc to idefloppy_issue_pcdrivers/ide/ide-floppy.c+5 -40 replies
17/18ide-floppy: cleanup idefloppy_create_rw_cmddrivers/ide/ide-floppy.c+4 -30 replies
18/18ide: use flags in IRQ handlerdrivers/ide/ide-atapi.c drivers/ide/ide-floppy.c drivers/ide/ide-tape.c +2 more+19 -161 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/18] misc generic ide stuff

Hi Bart,

here are some generic ide conversion patches. The first 12 are what i thought you suggested :) concerning prepping the ide-cd code for the generic layer. The remaining 6 are what i've done so far wrt removing ide_atapi_pc from the ide drivers. It is obvious that this is not trivial and I basically tiptoe around the landmines in the IRQ handler and request issue paths :). This raises also several questions:

1. ide-cd uses the cdrom_info struct for e.g. dma status notification, the other ide drivers use it per packet command in pc->flags. Well the last are kinda too much to carry for _each_ command and i'm thinking maybe put all that in the ide_drive_t and make it generic enough to fit all drivers. This way pc->callback() can also be harboured there. One concern might be when a flag is strictly per packet command which could be put somewhere else (maybe in the struct request since it already has members when it is used as a packet command).

2. Can all that pc->xferred, pc->b_count, pc->errors and pc->cur_pos accounting be safely mapped to a rq? I see some discrepancies like is pc->buf_size == rq->data_len, what about pc->req_xfer? I'll have a more detailed look at those when i have more spare time later.

3. (I'm sure there are more :))