Re: [PATCH 1/3] spi: bcm2835: add driver stats to debugfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 24, 2019 at 04:23:09PM +0000, kernel@xxxxxxxxxxxxxxxx wrote:
> @@ -111,8 +112,60 @@ struct bcm2835_spi {
>  	int rx_prologue;
>  	unsigned int tx_spillover;
>  	unsigned int dma_pending;
> +
> +#if defined(CONFIG_DEBUG_FS)
> +#define BCM2835_AUX_INCR(field) ((field)++)
> +	u64 count_transfer_polling;
> +	u64 count_transfer_irq;
> +	u64 count_transfer_irq_after_poll;
> +	u64 count_transfer_dma;
> +
> +	struct dentry *debugfs_dir;

Please also amend the kerneldoc of struct bcm2835_spi.


> +#define BCM2835_AUX_INCR(field)
                   ^^^

Why aux?  This is the non-aux driver.


> +	/* the base directory */
> +	dir = debugfs_create_dir(name, NULL);

Missing error handling.

Thanks,

Lukas



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux