Awesome, thanks!
On Tue, Mar 12, 2019 at 4:13 PM Jeremy Cline <jeremy(a)jcline.org> wrote:
Hi,
On 3/11/19 12:05 PM, Christoph M. wrote:
> On Mon, Mar 11, 2019 at 4:51 PM Peter Robinson <pbrobinson(a)gmail.com>
wrote:
>
>> On Mon, Mar 11, 2019 at 3:18 PM Justin Forbes <jmforbes(a)linuxtx.org>
>> wrote:
>>>
>>> On Mon, Mar 11, 2019 at 8:34 AM Prarit Bhargava <prarit(a)redhat.com>
>> wrote:
>>>>
>>>> On 3/10/19 5:53 PM, Peter Robinson wrote:
>>>>> On Sun, Mar 10, 2019 at 9:46 PM Christoph M.
<christophm30(a)gmail.com
>
>> wrote:
>>>>>>
>>>>>>
>>>>>> On Sun, Mar 10, 2019 at 10:39 PM Peter Robinson <
>> pbrobinson(a)gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Fedora kernel team,
>>>>>>>>
>>>>>>>> I'd like to access SPI devices via the spidev user
API ([1]) on
>> my Fedora
>>>>>>>> system.
>>>>>>>> Would it be possible to enable CONFIG_SPI_SPIDEV (module
would be
>> fair
>>>>>>>> enough),
>>>>>>>> so that I don't have to build my own kernel?
>>>>>>>
>>>>>>> Which architectures or sort of device?
>>>>>>
>>>>>>
>>>>>> I'd like to have that for x86-64 (I want to control an
SPI-attached
>> display).
>>>>>
>>>>> Any particular drivers? Or just SPI_SPIDEV
>>>>
>>>> FWIW, in RHEL we have
>>>>
>>>> ./redhat/configs/debug/aarch64/CONFIG_SPI_DEBUG:CONFIG_SPI_DEBUG=y
>>>> ./redhat/configs/generic/aarch64/CONFIG_SPI:CONFIG_SPI=y
>>>>
>> ./redhat/configs/generic/aarch64/CONFIG_SPI_CADENCE:CONFIG_SPI_CADENCE=m
>>>> ./redhat/configs/generic/aarch64/CONFIG_SPI_MASTER:CONFIG_SPI_MASTER=y
>>>> ./redhat/configs/generic/aarch64/CONFIG_SPI_PL022:CONFIG_SPI_PL022=m
>>>> ./redhat/configs/generic/aarch64/CONFIG_SPI_QUP:CONFIG_SPI_QUP=y
>>>> ./redhat/configs/generic/aarch64/CONFIG_SPI_XLP:CONFIG_SPI_XLP=m
>>>> ./redhat/configs/generic/x86_64/CONFIG_SPI:CONFIG_SPI=y
>>>>
>>> I don't have a problem with these going in the 5.0 rebase.
>>
>> We already have it all enabled on aarch64, and Arm in general, I
>> actually question how useful the RHEL config is on non aarch64 as it
>> doesn't enable CONFIG_SPI_SPIDEV or CONFIG_SPI_MASTER which I think
>> are generally needed for it to be useful, but maybe CONFIG_SPI enables
>> them, I've not looked.
>>
>
> CONFIG_SPI is required for any CONFIG_SPI*.
> CONFIG_SPI_MASTER is required for CONFIG_SPI_SPIDEV.
>
>
https://elixir.bootlin.com/linux/latest/source/drivers/spi/Kconfig#L25
I've turned on SPI_SPIDEV on x86 and it's in today's Rawhide build. I've
also pushed it to the f30 branch so it should be in the 5.0.2 build.
- Jeremy