lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 29 Oct 2013 18:42:19 -0700
From:	Randy Dunlap <rdunlap@...radead.org>
To:	David Cohen <david.a.cohen@...ux.intel.com>, broonie@...nel.org
CC:	ning.li@...el.com, linux-kernel@...r.kernel.org,
	linux-spi@...r.kernel.org, Fei Yang <fei.yang@...el.com>
Subject: Re: [PATCH 1/2] spi: add Intel Mid SSP driver

On 10/29/13 11:05, David Cohen wrote:

a few more comments:

> +static unsigned int ssp_get_clk_div(int speed)
> +{
> +	return max(100000000 / speed, 4) - 1;

Divide uses library call?  I dunno...
Bad if so.  Would need to use some function from
#include <asm-generic/div64.h>

> +}

> +/**
> + * setup() - Driver setup procedure
> + * @spi:	Pointeur to the spi_device struct

		Pointer

> + */
> +static int setup(struct spi_device *spi)
> +{
> +}
> +/**
> + * ssp_spi_probe() - Driver probe procedure
> + * @pdev:	Pointer to the pci_dev struct
> + * @ent:	Pointer to the pci_device_id struct
> + */
> +static int ssp_spi_probe(struct pci_dev *pdev,
> +	const struct pci_device_id *ent)
> +{
> +	/* Set platform & configuration quirks */
> +	if (sspc->quirks & QUIRKS_PLATFORM_MRST) {
> +		/* Apply bit banging workarround on MRST */

		                     workaround

> +		sspc->quirks |= QUIRKS_BIT_BANGING;
> +		/* MRST slave mode workarrounds */

		                   workarounds

> +		if (ssp_cfg_is_spi_slave(ssp_cfg))
> +			sspc->quirks |= QUIRKS_USE_PM_QOS |
> +					QUIRKS_SRAM_ADDITIONAL_CPY;
> +	}
> +	if (intel_mid_identify_cpu() == INTEL_MID_CPU_CHIP_TANGIER)
> +		ssp_timing_wr = 1;
> +
> +	if (status < 0) {
> +		dev_err(&pdev->dev, "can not get IRQ\n");

		                     cannot

> +		goto err_free_4;
> +	}
> +
> +}

> +MODULE_AUTHOR("Ken Mills");
> +MODULE_DESCRIPTION("Bulverde SSP core SPI contoller");

                                             controller

> +MODULE_LICENSE("GPL");


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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ