Re: [PATCH 4/7] usb: misc: uss720: point pp->dev to usbdev->dev
Alex Henrie <[email protected]> Tue, 12 Mar 2024 19:30:21 -0600
| Newsgroups | gmane.linux.usb.general,gmane.linux.parport |
|---|---|
| Message-ID | <CAMMLpeRpMwL3+c-uBrASuDOT4=YmxGRn5q1g8xKw2BAfdpujNQ@mail.gmail.com> |
On Tue, Mar 12, 2024 at 1:39=E2=80=AFAM Johan Hovold <[email protected]> wro= te: > > On Mon, Mar 11, 2024 at 11:50:29PM -0600, Alex Henrie wrote: > > This avoids a "fix this legacy no-device port driver" warning. > > Please be more specific. Hello Johan, thanks for taking a look at these patches. The warning comes from parport_announce_port in drivers/parport/share.c. include/linux/parport.h says that dev is the "Physical device associated with IO/DMA." Commit 4edb38695d9a ("parisc: parport0: fix this legacy no-device port driver!", 2013-05-30) fixed a similar issue and says only "Fix the above kernel error from parport_announce_port() on 32bit GSC machines (e.g. B160L). The parport driver requires now a pointer to the device struct." Do I just need to include "The parport driver now requires a pointer to the device struct" in the commit message? If not, where can I learn more about what the dev field is for, to be able to write a better description of why it's necessary to fill it in? Thanks, -Alex