mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
gpib: Don't use extended registers
When the chip type is 72310 then avoid accessing extended registers Apart from the BSR the 72310 supports only the standard NEC u7210 registers. Signed-off-by: Dave Penkler <dpenkler@gmail.com> Link: https://patch.msgid.link/20260411172511.26546-4-dpenkler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3be376ac8f
commit
1b2bfb7ac2
|
|
@ -103,6 +103,9 @@ static int ines_t1_delay(struct gpib_board *board, unsigned int nano_sec)
|
|||
|
||||
retval = nec7210_t1_delay(board, nec_priv, nano_sec);
|
||||
|
||||
if (ines_priv->pci_chip_type == PCI_CHIP_INES_72130)
|
||||
return retval;
|
||||
|
||||
if (nano_sec <= 250) {
|
||||
write_byte(nec_priv, INES_AUXD | INES_FOLLOWING_T1_250ns |
|
||||
INES_INITIAL_T1_2000ns, AUXMR);
|
||||
|
|
@ -322,6 +325,8 @@ static irqreturn_t ines_interrupt(struct gpib_board *board)
|
|||
spin_lock_irqsave(&board->spinlock, flags);
|
||||
|
||||
nec7210_interrupt(board, nec_priv);
|
||||
if (priv->pci_chip_type == PCI_CHIP_INES_72130)
|
||||
goto out;
|
||||
isr3_bits = ines_inb(priv, ISR3);
|
||||
isr4_bits = ines_inb(priv, ISR4);
|
||||
if (isr3_bits & IFC_ACTIVE_BIT) {
|
||||
|
|
@ -339,6 +344,7 @@ static irqreturn_t ines_interrupt(struct gpib_board *board)
|
|||
|
||||
if (wake)
|
||||
wake_up_interruptible(&board->wait);
|
||||
out:
|
||||
spin_unlock_irqrestore(&board->spinlock, flags);
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user