* [PATCH v1 1/1] drm/radeon: remove useless and potentially wrong message
@ 2016-12-01 1:21 Andy Shevchenko
2017-03-06 12:12 ` Christian König
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2016-12-01 1:21 UTC (permalink / raw)
To: Alex Deucher, dri-devel, David Airlie; +Cc: Andy Shevchenko
There is no need to repeat information that printed by PCI core at boot time.
Besides that printing was potentially wrong since resource_size_t might be
bigger than 32 bits and there is a dedicated specifier for such type, i.e.
%pap. Someone can fix it and use even better approach, i.e. %pR.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/gpu/drm/radeon/radeon_device.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index 60a8920..67cd59a 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -1440,11 +1440,8 @@ int radeon_device_init(struct radeon_device *rdev,
rdev->rmmio_size = pci_resource_len(rdev->pdev, 2);
}
rdev->rmmio = ioremap(rdev->rmmio_base, rdev->rmmio_size);
- if (rdev->rmmio == NULL) {
+ if (rdev->rmmio == NULL)
return -ENOMEM;
- }
- DRM_INFO("register mmio base: 0x%08X\n", (uint32_t)rdev->rmmio_base);
- DRM_INFO("register mmio size: %u\n", (unsigned)rdev->rmmio_size);
/* doorbell bar mapping */
if (rdev->family >= CHIP_BONAIRE)
--
2.10.2
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] drm/radeon: remove useless and potentially wrong message
2016-12-01 1:21 [PATCH v1 1/1] drm/radeon: remove useless and potentially wrong message Andy Shevchenko
@ 2017-03-06 12:12 ` Christian König
0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2017-03-06 12:12 UTC (permalink / raw)
To: Andy Shevchenko, Alex Deucher, dri-devel, David Airlie
Am 01.12.2016 um 02:21 schrieb Andy Shevchenko:
> There is no need to repeat information that printed by PCI core at boot time.
>
> Besides that printing was potentially wrong since resource_size_t might be
> bigger than 32 bits and there is a dedicated specifier for such type, i.e.
> %pap. Someone can fix it and use even better approach, i.e. %pR.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/radeon/radeon_device.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
> index 60a8920..67cd59a 100644
> --- a/drivers/gpu/drm/radeon/radeon_device.c
> +++ b/drivers/gpu/drm/radeon/radeon_device.c
> @@ -1440,11 +1440,8 @@ int radeon_device_init(struct radeon_device *rdev,
> rdev->rmmio_size = pci_resource_len(rdev->pdev, 2);
> }
> rdev->rmmio = ioremap(rdev->rmmio_base, rdev->rmmio_size);
> - if (rdev->rmmio == NULL) {
> + if (rdev->rmmio == NULL)
> return -ENOMEM;
> - }
> - DRM_INFO("register mmio base: 0x%08X\n", (uint32_t)rdev->rmmio_base);
> - DRM_INFO("register mmio size: %u\n", (unsigned)rdev->rmmio_size);
>
> /* doorbell bar mapping */
> if (rdev->family >= CHIP_BONAIRE)
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-06 12:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-01 1:21 [PATCH v1 1/1] drm/radeon: remove useless and potentially wrong message Andy Shevchenko
2017-03-06 12:12 ` Christian König
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.