Why can't you use dev_info() here?
thanks,
greg k-h
It should work, but I'm not sure what should change in the header files to
do it--esp. to make the dev parameter available in ddk750_help.c. (Only
sm750.c uses dev_ style logging now, the rest of the driver still uses pr_*.)
Thanks,
Ed Lipinsky
Why can't you use dev_info() here?
thanks,
greg k-h
It should work, but I'm not sure what should change in the header files to
do it--esp. to make the dev parameter available in ddk750_help.c. (Only
sm750.c uses dev_ style logging now, the rest of the driver still uses pr_*.)
This printk can be moved to lynxfb_pci_probe, and then it should be no
problem to use dev_info. Just make sure to update the commit message
appropriately.
Why can't you use dev_info() here?
thanks,
greg k-h
It should work, but I'm not sure what should change in the header files to
do it--esp. to make the dev parameter available in ddk750_help.c. (Only
sm750.c uses dev_ style logging now, the rest of the driver still uses pr_*.)
This printk can be moved to lynxfb_pci_probe, and then it should be no
problem to use dev_info. Just make sure to update the commit message
appropriately.
quoted
Thanks,
Ed Lipinsky
--
Sincerely yours,
Mike.
Thanks, that makes sense. I tried deleting the if statement and printk()
from ddk750_help.c, and adding the following in lynxfb_pci_probe() after
calling hw_sm750_map() and checking for errors:
if (sm750_dev->revid = 0xfe)
dev_info(&pdev->dev, "found sm750le\n");
The driver compiles, loads and unloads ok with this code.
Does this look correct?
Regards,
Ed L.
From: Mike Rapoport <hidden> Date: 2016-10-13 15:34:31
On Mon, Oct 10, 2016 at 07:31:46AM -0700, Edward Lipinsky wrote:
Thanks, that makes sense. I tried deleting the if statement and printk()
from ddk750_help.c, and adding the following in lynxfb_pci_probe() after
calling hw_sm750_map() and checking for errors:
if (sm750_dev->revid = 0xfe)
dev_info(&pdev->dev, "found sm750le\n");
The driver compiles, loads and unloads ok with this code.
Does this look correct?
From: Edward Lipinsky <hidden> Date: 2016-10-14 05:18:38
On Thu, Oct 13, 2016 at 05:39:22PM +0300, Mike Rapoport wrote:
On Mon, Oct 10, 2016 at 07:31:46AM -0700, Edward Lipinsky wrote:
quoted
Thanks, that makes sense. I tried deleting the if statement and printk()
from ddk750_help.c, and adding the following in lynxfb_pci_probe() after
calling hw_sm750_map() and checking for errors:
if (sm750_dev->revid = 0xfe)
dev_info(&pdev->dev, "found sm750le\n");
The driver compiles, loads and unloads ok with this code.
Does this look correct?
Yep, seems just right.
quoted
Regards,
Ed L.
Good, thanks. I will submit an updated patch.
Regards,
Ed L.