parport_pc: Let chipset drivers mask unsupported modes
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sun, 8 Jan 2023 21:56:51 +0000 (21:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 12:12:00 +0000 (13:12 +0100)
commitf01dda1cb85e14a1d51c3cedad0feaaf71a93b4b
tree1a7a4a25d3a786af76f02e0da36b0d6c8e2a2b10
parent1c4b7d967e8a18c18ef8ef6354395d4f96a10f0e
parport_pc: Let chipset drivers mask unsupported modes

Rename `parport_pc_probe_port' to `__parport_pc_probe_port' and add a
`mode_mask' parameter so that callers can specify a mask of unsupported
modes to exclude even if mode probing seems to indicate otherwise.  Add
a `parport_pc_probe_port' wrapper with an implicit mask of 0 for the
current callers to use.

No functional change at this point, but the configuration of data write
handlers is now no longer intertwined with determination and reporting
of available modes.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/20230108215656.6433-2-sudipm.mukherjee@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/parport_pc.c