From patchwork Sat Dec 24 16:32:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak R Varma X-Patchwork-Id: 3285 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp223049wrt; Sat, 24 Dec 2022 08:35:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXuKxCXML4/Bjq+Aq2DDrgbr7mpuwEWu/eOxenW59AoRUF7Hcdqxcugriq4/vU53AUO2y4NW X-Received: by 2002:a17:906:3f97:b0:83f:41a2:a68b with SMTP id b23-20020a1709063f9700b0083f41a2a68bmr10589512ejj.30.1671899710451; Sat, 24 Dec 2022 08:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671899710; cv=none; d=google.com; s=arc-20160816; b=0TvePb9d6aQmalLaF5obhgjyNwS0dEhutyawKAbuBP/5fF6MpF66tgsKfotDCwtL2+ tm5dopsyV4XzUF2c5sgaN981sU0dpRKYwwb7iTm/pQzzEVmULWLI+i877//iESxAWpUZ nJH06usebKLGTmXX3TMibp2dZ57PBNJ/7a27njUOZjeZHWC+ZjyIouXejiJUlFinEcF4 6QFk3764VNSwafQTRF6IZlZHegyvmJyrmr4TJFKzCrpjJdBTQGS0/nwYHWcr476lxAEY ZIrIf+iDVZpCRcoR1k30RW7fWEMQhtaYqjyzhVG+iXz/k4KHAlXcZ3oRorqwoGfG/7C1 /P3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=eytynlLM8Yuani7qZn171n8e8NRRTbAQISlG1AAvwTE=; b=YDI+yc178fz6S9mjkllAD2RODXcNX29P0BREu9hoSpT+H2mt0ywxJfRL7lM2maa0UA XxK4XhNVTa/ALOUwlJ1xtMYDCynkLnl4yKUy1UOToSttnNr9u4t1ObnsWd+nY2KJer02 vN517EjF+3WdYFms1UoE/XaROc6We3uPTdtQp4BSTorRTxlahwF5nDHC14PQ/W3lgkqF 0KypDf+opc1R2tY8EYi8/8NCnvLJosu17HjTjJfl9fNBOWosVzQgJMgZtq/+WqKZOQ2D QEG+1yYNL6p/x4vIuzfrq4RYJgP9sF2NVyvGbOHCyZ91xth860fUceYKpfRojHfnwn43 cH7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=FRAGCzUF; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a50ab56000000b004754696ec2asi5032598edc.348.2022.12.24.08.34.47; Sat, 24 Dec 2022 08:35:10 -0800 (PST) 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=fail header.i=@mailo.com header.s=mailo header.b=FRAGCzUF; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231277AbiLXQdL (ORCPT + 99 others); Sat, 24 Dec 2022 11:33:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbiLXQdJ (ORCPT ); Sat, 24 Dec 2022 11:33:09 -0500 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11A7CB1EE; Sat, 24 Dec 2022 08:33:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1671899578; bh=K/4hiOY7BCAUKajIhqlHSoKC/VJgy4tl+xgmPVyY+k4=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=FRAGCzUFPmCK5IdKOA34GaiVzVxDA4FdvhtF21/qqctny0Z9yFRwh8Cqs6KLa1LQC ZHdPSnov8mN3XXYZ2DRn0JFa/QNLkLunEF+oYbF1OuCfX11rTOqzsz1lVK3KLczJKG 75fU+tXZaWedxXLqdiPwgBvxPcoWNCx2zPuONow0= Received: by b-3.in.mailobj.net [192.168.90.13] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sat, 24 Dec 2022 17:32:57 +0100 (CET) X-EA-Auth: m+O+37z/zobbcd/q9gfrbRXii/EjTueFXCMX9nloDIxpkGLpkBPGCJ7oDFEwAvnEQhKne+25H6Rm8hSOmgarMboUtcjP7TJl Date: Sat, 24 Dec 2022 22:02:50 +0530 From: Deepak R Varma To: "Maciej W. Rozycki" , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Saurabh Singh Sengar , Praveen Kumar , Deepak R Varma Subject: [PATCH v3 0/2] tty: serial: dz: convert atomic_* to refcount_* Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753113910602236733?= X-GMAIL-MSGID: =?utf-8?q?1753113910602236733?= The patch series proposes to transition the driver from using atomic_t APIs to refcount_t APIs for reference count management. Note: patch 2/2 depends on patch 1/2. Hence please apply path 1/2 first. Changes in v3: 1. Patch series introduced rather than individual patches. 2. Update patch subject line to indicate the atomic_t variable being changed Changes in v2: 1. Separate the change to patch per variable rather than combining multiple atomic variable changes into a single patch. Please note: The patches are compile tested using dec_station.defconfig for MIPS architecture. Deepak R Varma (2): tty: serial: dz: convert atomic_* to refcount_* APIs for map_guard tty: serial: dz: convert atomic_* to refcount_* APIs for irq_guard drivers/tty/serial/dz.c | 40 +++++++++++++++------------------------- 1 file changed, 15 insertions(+), 25 deletions(-) --- 2.34.1