Skip to content

Commit d230242

Browse files
Ondrej Zarydamien-lemoal
authored andcommitted
ata: pata_parport: implement set_devctl
Add missing ops->sff_set_devctl implementation. Fixes: 246a1c4 ("ata: pata_parport: add driver (PARIDE replacement)") Cc: [email protected] Signed-off-by: Ondrej Zary <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent b555aa6 commit d230242

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/ata/pata_parport/pata_parport.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ static void pata_parport_dev_select(struct ata_port *ap, unsigned int device)
5151
ata_sff_pause(ap);
5252
}
5353

54+
static void pata_parport_set_devctl(struct ata_port *ap, u8 ctl)
55+
{
56+
struct pi_adapter *pi = ap->host->private_data;
57+
58+
pi->proto->write_regr(pi, 1, 6, ctl);
59+
}
60+
5461
static bool pata_parport_devchk(struct ata_port *ap, unsigned int device)
5562
{
5663
struct pi_adapter *pi = ap->host->private_data;
@@ -252,6 +259,7 @@ static struct ata_port_operations pata_parport_port_ops = {
252259
.hardreset = NULL,
253260

254261
.sff_dev_select = pata_parport_dev_select,
262+
.sff_set_devctl = pata_parport_set_devctl,
255263
.sff_check_status = pata_parport_check_status,
256264
.sff_check_altstatus = pata_parport_check_altstatus,
257265
.sff_tf_load = pata_parport_tf_load,

0 commit comments

Comments
 (0)