[MinnowBoard] GSOC'15 - Idea feedback - SMBus Kernel Support

Subhashish Pradhan sprkv5 at gmail.com
Fri Mar 27 17:51:14 UTC 2015


On Fri, Mar 27, 2015 at 10:16 PM, Michael Jones <mike at proclivis.com> wrote:
> Subhasish,
>
> Submit to melange.

Done!

I would appreciate if you would have a look through it and post any
comments, amendments.

>
> Mike
>
>
> On Mar 27, 2015, at 12:58 AM, Subhashish Pradhan <sprkv5 at gmail.com> wrote:
>
>> On Wed, Mar 25, 2015 at 1:22 AM, Michael Jones <mike at proclivis.com> wrote:
>>> Subhashish,
>>>
>>> If you change the block read/write to 64 bytes and had a Beagle trace of it along with a patch, even if it was hacked, it would show you can:
>>>
>>> - Install Ubuntu
>>
>> I use Ubuntu :)
>>
>>> - Find the code in the i2c/smbus driver and modify it
>>
>> About that. In include/uapi/linux/i2c.h
>> The block read/write size is determined by the block definition in
>> union i2c_smbus_data:
>> __u8 block[I2C_SMBUS_BLOCK_MAX + 2];
>> ...and currently I2C_SMBUS_BLOCK_MAX is defined to the value 32.
>> Increasing it to 64 should achieve the desired changes.
>>
>>> - Compile and run the kernel
>>
>> Compiled a kernel with the unmodified i2c-* modules.
>>
>>> - Write a simple SMBus application to test
>>
>> About this - I don't have any pointers on how to emulate a fake i2c
>> device, to test the i2c_smbus_read/write_block_data() functions.
>> Or is there any simple way to do this?
>>
>>> - Give the app and patch for review and testing
>>>
>>> If you can do that, you can probably succeed with a general improvement to SMBus.
>>>
>>
>> Plus another request - My proposal would require help, as I found this
>> project late, my bad.
>> May I submit the drafts to melange or discuss here (I would like to
>> have quickest feedback possible)?
>>
>>> Mike
>>>
>>> On Mar 23, 2015, at 5:07 PM, Subhashish Pradhan <sprkv5 at gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm Subhashish Pradhan, a 3rd year CS undergrad from India. I am
>>>> interested in the following idea: "SMBus Kernel Support".
>>>>
>>>> I see that this project requires C, some Linux driver and kernel
>>>> skills. I believe I have these skills thanks to my GSoC project with
>>>> GNU/Hurd last year and from writing
>>>> basic kernel modules for the Eudyptula Challenge.
>>>>
>>>> Since this task is to be performed on the kernel source built on a
>>>> MinnowBoard, what could be some basic work that can be done to
>>>> demonstrate proficiency related to this project?
>>>>
>>>> Any helpful directions/commments will be appreciated.
>>>>
>>>> Cheers,
>>>> Subhashish
>>>> nick: sprkv5
>>>> _______________________________________________
>>>> elinux-MinnowBoard mailing list
>>>> elinux-MinnowBoard at lists.elinux.org
>>>> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>>>
>>>
>>> _______________________________________________
>>> elinux-MinnowBoard mailing list
>>> elinux-MinnowBoard at lists.elinux.org
>>> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>> _______________________________________________
>> elinux-MinnowBoard mailing list
>> elinux-MinnowBoard at lists.elinux.org
>> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>
>
> _______________________________________________
> elinux-MinnowBoard mailing list
> elinux-MinnowBoard at lists.elinux.org
> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard

Subhashish


More information about the elinux-MinnowBoard mailing list