Re: [patch 2.6.21-rc5 1/3] parport->dev driver model support



On Monday 26 March 2007 2:59 pm, Andrew Morton wrote:
On Mon, 26 Mar 2007 09:06:19 -0700
David Brownell <david-b@xxxxxxxxxxx> wrote:

Currently a parport_driver can't get a handle on the device node for the
underlying parport (PNPACPI, PCI, etc). That prevents correct placement
of sysfs child nodes, which can affect things like power management.

This patch adds a field to "struct parport" pointing to that device node,
and updates non-legacy port drivers to initialize that device pointer.
That field replaces the analagous PCI-only support in parport_pc.

Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
---
NOTE this depends on an earlier patch to make pnp devices set up DMA,
parport is the primary user of legacy i8237 dma infrastructure.

Confusion reigns.

To which "earlier patch" do you refer?

The one named "init-dma-masks-in-pnp_dev.patch" in 2.6.21-rc4-mm1 ...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [patch 2.6.21-rc5 1/3] parport->dev driver model support
    ... of sysfs child nodes, which can affect things like power management. ... This patch adds a field to "struct parport" pointing to that device node, ... NOTE this depends on an earlier patch to make pnp devices set up DMA, ... parport is the primary user of legacy i8237 dma infrastructure. ...
    (Linux-Kernel)
  • Re: [patch/rfc 2.6.20-git] parport reports physical devices
    ... underlying parport. ... This patch resolves that issue for non-legacy configurations: ... I'm using for my daily work has such a legacy parallel port, ... This would make the driver smaller.) ...
    (Linux-Kernel)
  • RFC: add udev support to parport_pc
    ... Here is a patch to parport_pc.c that adds udev support. ... Without it sysfs does not have enough information to give to udev so the lp and parport nodes can be created. ... The only problem I have is the kernel_oops when I do the following: insmod parport, insmod parport_pc, rmmod parport_pc, rmmod parport, insmod parport, insmod parport_pc, rmmod parport_pc, kernel oops. ...
    (Linux-Kernel)
  • Re: [PATCH] Prevent legacy io access on pmac
    ... Follow up to the previous patch: ... Update the return values in i8402 and parport to -ENODEV. ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)