Re: [PATCH] custom PM support for 8250

From: Vitaly Wool (vitalhome_at_rbcmail.ru)
Date: 09/06/05

  • Next message: Mehul Vora: "Re: netif_rx for ATM"
    Date:	Tue, 06 Sep 2005 10:22:29 +0400
    To: Grigory Tolstolytkin <gtolstolytkin@dev.rtsoft.ru>
    
    

    Russell,

    what I'd suggest is to separate the changes that allow to provide PM
    callbacks and generic changes in the interface/structures as the latter
    will result in changing a lot of code that uses 8250 serial driver,
    otherwise that code will stop working.
    Namely, is it posible to have the first patch I've sent for 8250 in
    place first?
    I'll continue to work on 8250 PM/platform_serial_data changes then.

    Vitaly

    Grigory Tolstolytkin wrote:

    > Hi Russel,
    >
    > I tried the patch provided by Vitaly Wool. And it works correctly. And
    > now I'm successful with the PM support for my own serial8250 driver.
    > Are you planning to commit the Vitlaly's changes into the mainstream?
    > I guess it'll be helpful for the other people too. What I want is to
    > know whether this changes will be supported by the Community or not.
    > It's important for the project I'm worin on, cause I'm planning to
    > push it into Open Source ;)
    >
    > Thanks,
    > Grigory.
    >
    > Russell King wrote:
    >
    >> On Wed, Aug 31, 2005 at 03:10:09PM +0400, Vitaly Wool wrote:
    >>
    >>
    >>> please find the patch that allows passing the pointer to custom
    >>> power management routine (via platform_device) to 8250 serial driver.
    >>> Please note that the interface to the outer world (i. e. exported
    >>> functions) remained the same.
    >>>
    >>
    >>
    >> I'd rather change the structure passed via the platform device to
    >> something like:
    >>
    >> struct platform_serial_data {
    >> void (*pm)(struct uart_port *port, unsigned int state,
    >> unsigned int old);
    >> int nr_ports;
    >> struct plat_serial8250_port *ports;
    >> };
    >>
    >> which also eliminates the empty plat_serial8250_port terminator from
    >> all the serial8250 platform devices (which appears to have caused some
    >> folk problems.)
    >>
    >> It does mean that a set of 8250 ports (grouped by each platform device)
    >> have a common power management method - which seems a logical
    >> restriction.
    >>
    >>
    >>
    >

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


  • Next message: Mehul Vora: "Re: netif_rx for ATM"

    Relevant Pages

    • Re: compile fix 2.6.15-rc1-mm1 + EXPERIMENTAL+ CONFIG_SPARSEMEM + X86_PC
      ... > Please always include the text of the error messages when fixing compile ... # Firmware Drivers ... # ACPI Support ...
      (Linux-Kernel)
    • Re: DC limiting activities
      ... So you're one step ahead of him in the planning stage. ... You have to be sensitive to others, especially those whose support you do ... I think you're plans might have advanced too far in the DC's mind at the ... So go out and convince him! ...
      (uk.rec.scouting)
    • Re: Commission calls for 11,000 affordable homes/yr in rural areas
      ... They are planning 700 in one village hereabouts and that is only ... not fail but they simply did not make enough to support employees or cover ... Not even 99p shops can survive. ... She will not be unhappy if the friends do what they are planning and move ...
      (uk.business.agriculture)
    • Re: Could you lend support to disabled waterways people?
      ... disabled accessible boathouse - planning consent has been granted. ... support their aims, you can register your support here ... authority will have 'no alternative but to demolish the existing boat ...
      (uk.rec.waterways)
    • Re: swsusp: revert to 2.6.0-test3 state
      ... That would be a minimal patch. ... image of RAM, support for highmem, swap files, full asynchronous I/O, ... Nigel Cunningham ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)