Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2890213rwb; Mon, 7 Aug 2023 05:19:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYIGp6kdGdMVy3XxJDGmsInOQHIXZDIn4v8wJGjy+RJ5Cp4nsRpW0HWn5fwwBafTD15+2V X-Received: by 2002:a05:6808:1a21:b0:3a7:6213:6899 with SMTP id bk33-20020a0568081a2100b003a762136899mr11019701oib.24.1691410742127; Mon, 07 Aug 2023 05:19:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691410742; cv=pass; d=google.com; s=arc-20160816; b=q0t6r/m6H6mS4UEV/jHmnG+OErEYA5XQlIk4sNV3sr/Z544gUZe6q9X8jnaL2puZCM EnxBt782rOQUJl/VCLIMACDQP7UW7ObDewIeo3lGysr3GiwoHvwUFlGE6+tf1pQq+8XM AGuTubQ4WIje0ApJtKjMwf4H3LQz5FLCFVWx6bcTG0uEAMDJh6lJyS5dYl23YWsUIIBB OLE9fgGdwHR2pQssNV337pxObkMNvafP9j491E/CL2tLRhuQlFG3Iu03CEDfm1eJ14o+ pqnq611sERejbrSSV4WAw/L2PRHR7qhxIHD1UkYoZrhU7rCn1wGY5Pa5PHykXzdwQg7V yPqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=cyolt6dTYY8zLucGvmzt4zp0COmDiU/d9uiS5NaMA+g=; fh=cib6lm6Hu3ssyDoFcsg9uITT65VqKiiptOzQ26/182c=; b=CdQWxlo+fXkotFJq1s8b87SnjpT6oZxRph6RZIbP1CVqbWq2H+IFZs5P728o4hrBoI cdJIQ3qlEF6uMCZVTYqRu1a4dor9/6v8NSD8u+r5/Q9cGjY8iFVpFDDyiZRg9WKNrht9 xu9EalZZ/ljn9YP28O4C35WvfQGoPYRHH7gICWOkhOEolpGtitCIKR369LFFNI6+NAaP /Jd02cU88mcBrpGpf71POh40NGC/yvzRmudj8k5cn8CnCvJiHkoH3lDigZ4zXTeRGhKq n+XSczTqJJUaXQ0tUndWs/yTAx5KFYkZ0JXqvmK0LfPWxVNji8Bbui9SMuQ2pRPmiBYj TkYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="aKNSw+u/"; dkim=pass header.i=@axis365.onmicrosoft.com header.s=selector2-axis365-onmicrosoft-com header.b=b5Zck0QP; arc=pass (i=1 spf=pass spfdomain=axis.com dkim=pass dkdomain=axis.com dmarc=pass fromdomain=axis.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j186-20020a638bc3000000b00564a5b8937asi5615439pge.341.2023.08.07.05.18.49; Mon, 07 Aug 2023 05:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="aKNSw+u/"; dkim=pass header.i=@axis365.onmicrosoft.com header.s=selector2-axis365-onmicrosoft-com header.b=b5Zck0QP; arc=pass (i=1 spf=pass spfdomain=axis.com dkim=pass dkdomain=axis.com dmarc=pass fromdomain=axis.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231757AbjHGJ5O (ORCPT + 99 others); Mon, 7 Aug 2023 05:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231234AbjHGJ5N (ORCPT ); Mon, 7 Aug 2023 05:57:13 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14611A4; Mon, 7 Aug 2023 02:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1691402231; x=1722938231; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=cyolt6dTYY8zLucGvmzt4zp0COmDiU/d9uiS5NaMA+g=; b=aKNSw+u/M/gWnUnpJNDy7T93kMF57yufxI64b2nAzMWhYj/7GEyWcSzD OAxOM3dNy5ylSNS1oTecjSaRQQMFr92jRni0rtIwEqXvirHzmSE30B+Mx ZmV8okTeVC7JagmyJQ8YVx6zRtnpkKp0qBsA6DYNLSXaYnx61vgL1pChc YKPSHmJ5e5nqkzhJboaW3N6NIvAYPDi74khM1TAB716caynKlSa2hi/ad BLWxHwzcZjzo7J2zwc73/7lfSdP2T9Wk6MxAjpQXsuysfemcgr+/sEyHX 8MH9DOiui/AeDjVUECrlR6cLfIpKEsFb7HUMnSWvOA+Wv6Vm2mwczSf14 A==; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YXLkbfRlU5bMPWkLPOSvmzJNW+M5RxqS+gVI/ZT2ldEoxo8mS3fWueUy8CuScGlX99jI6qMqcnCZq2Rh3NJ+YesvkMSw+nrxqarrmQFJY6Hu18XZuBfZnEQI0leV5TmrpgA2P60jV0goipL8uJBqy8NkMyI0Y28HqgIyLkQn4swfqh3OkdUcQVnXTY/LNU1i8FcK981vKK+YNh5guRl7wiNAwbMJ1NFQuXiyjuhcyfF4h1JMl7hP9ejhIU4WIWA9RU4FVrTfJ74QNj5yl/ECt6FmBzW6IziJ92uZc1xM50RLCY7x3wpAWNG9FX4HHa7tfkGkPAkzu2pqW7DYoOzy6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cyolt6dTYY8zLucGvmzt4zp0COmDiU/d9uiS5NaMA+g=; b=FVYFdqS8RnWCqPEaGw69L1djVeKTZ0TDTXGPzOLWDn0FBIoG8rUgd9RdgIjm+xadoUTt63KJ7KXF5XhHx/nyzFEvGW1HqaazrmyQpeeSqx7HG19u1TifSlK25aFVkfdFvx7O/ZRqCf2bnh+w/FhaWmqVF6UGHYc1zZakpaZ7o0b6pWuilSmL0BC6xvfMN6LbIld+PkXxIQbrscfnCD7GbaRTLaXXASO44PCSE5b8+IZmvPdz5GrOPXI4o8JEFkW8GJnAif/qKeO2jhWxVNqQiL45ngutWoVhQce7UFgMo/NlwxyvMvoXbOmWk31UlrsejZC8bxhWBU/9iT4jOyFpTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axis.com; dmarc=pass action=none header.from=axis.com; dkim=pass header.d=axis.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis365.onmicrosoft.com; s=selector2-axis365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cyolt6dTYY8zLucGvmzt4zp0COmDiU/d9uiS5NaMA+g=; b=b5Zck0QPmi1xbOZE2ImH9BFtUqsk4q+LuGWB5+CesMUtQ8DlgQzd4S2bIqhJxAxFBHShfxueonRw4X8s2qhatcz+esOAQW7PG8MfwkTIrbjbxlFUlM7OuSkkzvZSpUPRZVdrHr1JWMi8NEUDZgcJyWeo0o0Qy+dLRyctWbf4cTM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axis.com; Message-ID: <1dbc24c4-b057-0e71-432a-a7d0ce2df2dc@axis.com> Date: Mon, 7 Aug 2023 11:57:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] tty: serial: samsung: Set missing PM ops for hibernation support Content-Language: en-GB, sv-SE To: Andi Shyti CC: Krzysztof Kozlowski , Alim Akhtar , Greg Kroah-Hartman , Jiri Slaby , , , , , References: <20230803-samsung_tty_pm_ops-v1-1-1ea7be72194d@axis.com> <20230805213824.ol7sr3b52rwrsfs6@intel.intel> From: Anton Eliasson In-Reply-To: <20230805213824.ol7sr3b52rwrsfs6@intel.intel> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MM0P280CA0005.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:a::35) To AS1PR02MB10348.eurprd02.prod.outlook.com (2603:10a6:20b:473::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS1PR02MB10348:EE_|PR3PR02MB6092:EE_ X-MS-Office365-Filtering-Correlation-Id: 181de44b-1788-46c8-f2fc-08db972ca839 X-LD-Processed: 78703d3c-b907-432f-b066-88f7af9ca3af,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xTu2lWUIKaMDboHgwzx38i4vwCNsvL7SATl6AqKPokusjRs5q3QDXwRqsUyBQ71cyR6PgqsAEIJmHFvi5hFOIj+Texjx2ea2bNztFkuoY5V9Fzh+IF2KXXmQoJNMzVb8FU90f9koy1xyg3mPjxgppp0/hFVs3lbVmm5dSc/n8NKRDb2R/VAmVsp4fOTVXRMqq+S+Y5DcPMWmQ6JriF7766wil888v5WrF4Pyg5AGJ2yrfmgpZPBFU2MubaIJjoTGBgaKMRD8EBw0hy8BcqhOAULJIs9T0jkiS1WOK6eBckPisTZX2h0ZQHdd3koNTBcuOSIHCa6sD650OWhgLMfGgD4LktReRh9Gw6rMDGZ/NkuA3gJl1JGXO6jv4QZHouN6EKOe0eFdb/FrAOMK39Ifd3ufC5scuj5mbK1WdX4u7uWI8bTcPP5wbkC9u/58GQr7cl4OCDt6phHP5e9MqWbUNPm6vMOC9G+kuIbvme5CQ8B1MVcDkcGFPiTq8aITlIf8Dzp58+ji3x5A8KDy7CoKE4183p5VJ8mcNG92vkBjP921JgcUvIAqdRLj8qVaJginvMnnrU7g3vAQcpfkYCEmMUACsxtD+/1nKl/dE68YpRhg3ig4D5THqDWRLfSQLimKgmd9zLdNxi4SJqEI/1LqZg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS1PR02MB10348.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(39860400002)(376002)(366004)(396003)(346002)(451199021)(1800799003)(186006)(2616005)(6486002)(6512007)(478600001)(86362001)(31696002)(26005)(36756003)(107886003)(6506007)(41300700001)(316002)(4744005)(8936002)(5660300002)(44832011)(8676002)(54906003)(4326008)(2906002)(6916009)(66946007)(66556008)(66476007)(38100700002)(83380400001)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UDkrbzJ5TEdZMXhZVHRHSkY0dXhuYVphSmtFTjVIamxybHd6bXRlc0NUMXlL?= =?utf-8?B?M2xnQythc3JrL0JEYkNxbkM0UEtPdFBFS0VLOHdmRHU4Q3o3OGRBNGVlQ0Vn?= =?utf-8?B?Rms3UWpWcFRzNjRLUklYc2diYm5uNm1BUjhKUkx1Y0hlN1ZqckNqV1YyNUpN?= =?utf-8?B?TUJoeEZISEdqM3BBZlV4SU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=?utf-8?B?eWlPbjdhUFBQZjlLempRdEs5YXBIT1ZkWVZ4d3FxN0JQQ0RacVBya282dE0z?= =?utf-8?B?OTFoY2srNTVwUzBUYnhOK3RPU3hzeU42MVh6WFJiSGc0Y212V0ZFZmhqdHZa?= =?utf-8?Q?oV28=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 181de44b-1788-46c8-f2fc-08db972ca839 X-MS-Exchange-CrossTenant-AuthSource: AS1PR02MB10348.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2023 09:57:06.0869 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bLy5YFgGjrNuXlyW7WSxjvZCPVkSnWyZAkb50zqwD7OKVQGWypf3HotpS/p/TX8H X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR02MB6092 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/08/2023 23.38, Andi Shyti wrote: > Hi Anton, > > On Thu, Aug 03, 2023 at 01:26:42PM +0200, Anton Eliasson wrote: >> At least freeze, restore and thaw need to be set in order for the driver >> to support system hibernation. The existing suspend/resume functions can >> be reused since those functions don't touch the device's power state or >> wakeup capability. Use the helper macros SET_SYSTEM_SLEEP_PM_OPS and >> SET_NOIRQ_SYSTEM_SLEEP_PM_OPS for symmetry with similar drivers. > and why do we need hibernation in this device? > > Andi Hi! I wanted to test whether hibernation is possible on our SoC, even though it is not a common feature on embedded ARM systems. This is the only mainline driver that I found that needed modification, for my proof-of-concept anyway, and I couldn't see any harm in the change. Anton Eliasson