Re: [PATCH 05/11] spi/pxa2xx: make clock rate configurable fromplatform data

From: Mark Brown
Date: Tue Jan 08 2013 - 06:02:18 EST


On Mon, Jan 07, 2013 at 12:44:34PM +0200, Mika Westerberg wrote:
> If the architecture doesn't support clk framework (like x86) we need a way to
> pass the SSP clock rate to the driver. This patch adds a field in the platform
> data 'fixed_clk_rate' that allows passing the rate.

No, the way to do this is to fix x86 to enable the clock API there. The
x86 maintainers couldn't be bothered when I submitted a patch and
getting anyone to take a patch to make it available by default appears
to be unreasonably hard but perhaps if someone from Intel tries the x86
maintainers might take a patch...

We shouldn't be adding special case code to every driver that might need
a clock that gets used on an Intel system.

Attachment: signature.asc
Description: Digital signature