[lkml]   [2010]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[PATCH 0/2] drivers:staging:ti-st: Providing contexts
    From: Pavan Savoy <>

    Alan / Greg,

    A small step (hopefully in right direction) to move this driver out of staging, into a right place in mainline.

    The patch set has,

    * Update TODO to add the requirement to remove global references.
    * The 2nd patch addresses the issue by removing the global references.
    To achieve this, the platform device being added from the board-XX.c inside arch/XX/ needs to expose a function'st_get_plat_device' which returns a pointer to the platform_device struct.

    Now there are 3 contexts in the driver:
    1. platform device/driver context - probe/remove, sysfs show/store, and rfkill ops
    2. TTY context - tty_open/close/_receive since it is ldisc driver
    3. Process context - st_register/_unregister/_write called from the protocol drivers registering to ST upon calling open/close on /dev/radio0, /dev/tigps sort of char devices or hci0 sort of interfaces

    In platform device/driver context's dev_set_drvdata/get_drvdata is used. TTY's disc_data in TTY context and for the 3rd context and to combine 1 and 2 - the platform device exposed in board-XX.c will be used.

    Pavan Savoy (2):
    drivers:staging:ti-st: Update TODO
    drivers:staging:ti-st: remove global references

    drivers/staging/ti-st/TODO | 4 ++-
    drivers/staging/ti-st/st.h | 5 ++-
    drivers/staging/ti-st/st_core.c | 8 ++--
    drivers/staging/ti-st/st_core.h | 2 +
    drivers/staging/ti-st/st_kim.c | 77 +++++++++++++++++++++++++++------------
    drivers/staging/ti-st/st_kim.h | 6 ++--
    6 files changed, 68 insertions(+), 34 deletions(-)

     \ /
      Last update: 2010-07-08 15:57    [W:0.034 / U:17.080 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site