From patchwork Thu May 6 20:27:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12243515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88251C433ED for ; Thu, 6 May 2021 20:32:36 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D9C7461107 for ; Thu, 6 May 2021 20:32:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9C7461107 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gbQGie7/zhWEQhR4MhxxntfpcNHD+GUJtLVwnHUx3GU=; b=TU1kXB8OOhqkoI qr4x2l+ESPMcZ0y7eFdiP7WtxW/vDNaEfnHQbu52cKBgepOAw4QkpCG3cW8X1nZ7Ttq283PX2Y4OH QrfTZnfDoEsxeFiC99OrL0Y93i+TYxRl7wNE+Nkxj8wtOOiWB/W+/8ipTHFh8Z1AIWmtNTyDHxHZf yY7BCWazASXPM0icGQ5sManv2UXs/16dL9koM2U/M0ioDCj/bwiqWBmOipG73c4M5min5CxdsUf5K b777KpGw2jtY6BYWE16gAfwaz+f7ebX1lL9YuMYaTXscbqx83nm/+iRdRyGW7y5F4UD7KC9rfeaxV 1QSyNLmmXOGtv8OYyjgA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lekdd-005Fl0-Tk; Thu, 06 May 2021 20:30:26 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcz-005FhG-MX for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 20:29:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=PflL7ALzIS28zgo9gRKf5LrSO5ZMKaq1J727pxpPmSA=; b=RUXW18YuqFwqZEhWkA/NUodtoy w6At89AAT8KhvEfoj7E0Y9g/98XiDMISYEsngk6DnYueRg43JkNsAetIsQOnF6Hwk4I8vqbFvHZHk P3lq96dSXbq9JVLztXKRI5Is7nyiz2N8Zxlgi9xS+VjKwSsxrLJXvCEi4cPJof8J+fa6FuvbWg4np Bt7K/Suy6mhlgELSPVVPjd+XtVOIvGlG0Kh22RxHaAvC1zRyfhzFjnnGhtFg0aALixypOHyVzFQd4 auh6cB3E3x9q/hmhhZTMCVPnlgcNH1K7XiqSKtZQB7KK5z7M2oyyawZs9zOLn9xD+ejS/2A4LA3T8 CsgyXPKA==; Received: from youngberry.canonical.com ([91.189.89.112]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcu-006N7S-E3 for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:44 +0000 Received: from mail-qt1-f197.google.com ([209.85.160.197]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lekcq-0001bm-3c for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:36 +0000 Received: by mail-qt1-f197.google.com with SMTP id y10-20020a05622a004ab029019d4ad3437cso4328978qtw.12 for ; Thu, 06 May 2021 13:29:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PflL7ALzIS28zgo9gRKf5LrSO5ZMKaq1J727pxpPmSA=; b=Pgilx3/gPYkGnGtwjTjo6AXidqtlEmAJZ7ivwJz+4028CsfyeigVYvNeskGdcYoG3o IWnso2a722WtXj1wpefTlp6pz0PiB+Q+E0feLZBeC074dx0+0Wq+K71kDjfvOdB9aBxL rcc4FBuFT+aUVo6Tdez+u9RDionr1JIrrSNRc0ke4DVfPFn8sksQWVtypqCN39/qB3i0 qgL2cL9a3jYpca5Xz7OJB8zaj0FMfMEJuXbNySFDkohD2sZEBJzanmJCjSbr56SqYuD3 BHhDt0+ROeCgVeLKRF/wTUwsgEKHQRRsF7pB+hLy8mzsHU1FdZmHIsjPHwtVAUlb5WIQ ia0A== X-Gm-Message-State: AOAM533yA0yRse3uL6SI/v7qAX593MnuNWiIVtIwsVTMbL8OvZDqL1xU CAtGSu/vCbAs0br5IzneMDW7KsFfrA+ihDhxMJZDtXgeMqOwy7TIdRYcF6k6cPKPvSsbkuu4XaS lZ/qClyTpRRwGQJsrGyb8uTx7dORLaFTsuCxwMrhRps0tPCaAy2uJ X-Received: by 2002:a37:f503:: with SMTP id l3mr5848969qkk.307.1620332975222; Thu, 06 May 2021 13:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO/jXf1XyPty4NXaJwbxTsZ7FayuPAfdAwFO8HWJXLvf8aCh7QXhu7leoeiVIxg4xBQN7sbg== X-Received: by 2002:a37:f503:: with SMTP id l3mr5848955qkk.307.1620332974997; Thu, 06 May 2021 13:29:34 -0700 (PDT) Received: from localhost.localdomain ([45.237.49.6]) by smtp.gmail.com with ESMTPSA id r9sm3151363qtf.62.2021.05.06.13.29.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 13:29:34 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/5] clocksource/drivers/samsung_pwm: Minor whitespace cleanup Date: Thu, 6 May 2021 16:27:25 -0400 Message-Id: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_132940_515214_9ECAE13C X-CRM114-Status: GOOD ( 18.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Cleanup the code to be slightly more readable and follow coding convention - only whitespace. This fixes checkpatch warnings: WARNING: Block comments should align the * on each line WARNING: please, no space before tabs WARNING: Missing a blank line after declarations CHECK: Alignment should match open parenthesis Signed-off-by: Krzysztof Kozlowski --- drivers/clocksource/samsung_pwm_timer.c | 19 +++++++++++-------- include/clocksource/samsung_pwm.h | 3 ++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/clocksource/samsung_pwm_timer.c b/drivers/clocksource/samsung_pwm_timer.c index f760229d0c7f..69bf79c7f462 100644 --- a/drivers/clocksource/samsung_pwm_timer.c +++ b/drivers/clocksource/samsung_pwm_timer.c @@ -4,7 +4,7 @@ * http://www.samsung.com/ * * samsung - Common hr-timer support (s3c and s5p) -*/ + */ #include #include @@ -22,7 +22,6 @@ #include - /* * Clocksource driver */ @@ -38,8 +37,8 @@ #define TCFG0_PRESCALER_MASK 0xff #define TCFG0_PRESCALER1_SHIFT 8 -#define TCFG1_SHIFT(x) ((x) * 4) -#define TCFG1_MUX_MASK 0xf +#define TCFG1_SHIFT(x) ((x) * 4) +#define TCFG1_MUX_MASK 0xf /* * Each channel occupies 4 bits in TCON register, but there is a gap of 4 @@ -183,7 +182,7 @@ static void samsung_time_start(unsigned int channel, bool periodic) } static int samsung_set_next_event(unsigned long cycles, - struct clock_event_device *evt) + struct clock_event_device *evt) { /* * This check is needed to account for internal rounding @@ -225,6 +224,7 @@ static void samsung_clockevent_resume(struct clock_event_device *cev) if (pwm.variant.has_tint_cstat) { u32 mask = (1 << pwm.event_id); + writel(mask | (mask << 5), pwm.base + REG_TINT_CSTAT); } } @@ -248,6 +248,7 @@ static irqreturn_t samsung_clock_event_isr(int irq, void *dev_id) if (pwm.variant.has_tint_cstat) { u32 mask = (1 << pwm.event_id); + writel(mask | (mask << 5), pwm.base + REG_TINT_CSTAT); } @@ -272,7 +273,7 @@ static void __init samsung_clockevent_init(void) time_event_device.cpumask = cpumask_of(0); clockevents_config_and_register(&time_event_device, - clock_rate, 1, pwm.tcnt_max); + clock_rate, 1, pwm.tcnt_max); irq_number = pwm.irq[pwm.event_id]; if (request_irq(irq_number, samsung_clock_event_isr, @@ -282,6 +283,7 @@ static void __init samsung_clockevent_init(void) if (pwm.variant.has_tint_cstat) { u32 mask = (1 << pwm.event_id); + writel(mask | (mask << 5), pwm.base + REG_TINT_CSTAT); } } @@ -347,7 +349,7 @@ static int __init samsung_clocksource_init(void) pwm.source_reg = pwm.base + pwm.source_id * 0x0c + 0x14; sched_clock_register(samsung_read_sched_clock, - pwm.variant.bits, clock_rate); + pwm.variant.bits, clock_rate); samsung_clocksource.mask = CLOCKSOURCE_MASK(pwm.variant.bits); return clocksource_register_hz(&samsung_clocksource, clock_rate); @@ -398,7 +400,8 @@ static int __init _samsung_pwm_clocksource_init(void) } void __init samsung_pwm_clocksource_init(void __iomem *base, - unsigned int *irqs, struct samsung_pwm_variant *variant) + unsigned int *irqs, + struct samsung_pwm_variant *variant) { pwm.base = base; memcpy(&pwm.variant, variant, sizeof(pwm.variant)); diff --git a/include/clocksource/samsung_pwm.h b/include/clocksource/samsung_pwm.h index c395238d0922..76341988fb4f 100644 --- a/include/clocksource/samsung_pwm.h +++ b/include/clocksource/samsung_pwm.h @@ -27,6 +27,7 @@ struct samsung_pwm_variant { }; void samsung_pwm_clocksource_init(void __iomem *base, - unsigned int *irqs, struct samsung_pwm_variant *variant); + unsigned int *irqs, + struct samsung_pwm_variant *variant); #endif /* __CLOCKSOURCE_SAMSUNG_PWM_H */ From patchwork Thu May 6 20:27:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12243507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9879BC433B4 for ; Thu, 6 May 2021 20:32:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2279A61107 for ; Thu, 6 May 2021 20:32:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2279A61107 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fid6sZSS/5y7SllRBW5uvGOR0mD/RYi69YZsqFZ2bIo=; b=pTsOCd9zv1TYs1grybAQxAPV3 3vEInMUFE55ZH6ttr+Hluj0LwFHF0JhFN5GhzF4IbmcU0KyzYTerIrYXBf2LXrJi7pA2E9/Fi5mc7 hJJge5Z2kqR7r5tMXbkl0HeFIkP/oevv3VTezs0lDxpvNaMCKgVmO+poCNH0nOQoOtyI9tVhes+c3 bE2pV1HjuftiOYCqt9m/HpcM32bvMYXiMicx/mQMw5qo4ZmSP8+8PkEkb6ufr3YzL4KnvuHDHzK2R r0iY6K8Ln+zMGu1WkI5o4xSnRnrjFGmEnt3R5opSOucAG87vrSa7kbPt/9I/QcD68BCKFEZ6CmjSJ 1wC1rQs7g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lekcz-005FhH-ML; Thu, 06 May 2021 20:29:45 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcx-005Fgs-47 for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 20:29:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Type:Content-ID:Content-Description; bh=Kr71HxmM9qcmrtqnZvjbEArHjJcDpTE8gEhMoKfplI8=; b=Eo/Hcn1yZtfUoaPtrwPvIsD+B5 8r2xNSpcQgpm61zC8bzyfeZv7cFVfZuYZtZpCytPAh1KsCtJQ+WGyum/gerA/a2zKaA4UZ4PecI9D 7WOqOhfiLLi+kv3Kzwica7MQCE/dHEiGz2Np5VCGOoW8Xy3gk7sjlvspIOThpzwPYYsUZ6x6suLWc /Eo3Db3VFhVmzXoLit4zF8bjTrMJBjX+SLSaO40Jq+L3J5NgQ+AIfvbOqeyDjdrW+P5kFwx29zJ+b aofiIy7HEBwoU3MFGJAjhsvbPCA7dFlz91IRo83nuk8M4v/1DXRNhpIsnq5MqmCXL3Z/wD0NPb+Ej 74miaNbA==; Received: from youngberry.canonical.com ([91.189.89.112]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcu-006N7X-E6 for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:41 +0000 Received: from mail-qk1-f200.google.com ([209.85.222.200]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lekcr-0001cA-Bt for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:37 +0000 Received: by mail-qk1-f200.google.com with SMTP id m1-20020a05620a2201b02902e5493ba894so4317142qkh.17 for ; Thu, 06 May 2021 13:29:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Kr71HxmM9qcmrtqnZvjbEArHjJcDpTE8gEhMoKfplI8=; b=HZUQPxOhTEvVQUrlMLQy4oFVTfPdAwkXfWuZkr0hWcrYrS+rZmYX514qNerqvC/HPp TeH0uTYIo3/SGebl+zm7UlaaiAksD+YsGm3LPrzBSNGkeAKVestKHHO/1o8T+c8ULMAr +Lpik8r6lJB/nYt3XaWzt7Eu1ZW5ahWJolgRWb14xpQzZEVVeoj8bptk0JXqHpIegt4V j0PVQ4u/s+zydHz2QSFgUX0BmkrEnRtL/gvFa0gRXieto3jbznGc3qMYJcf/kcAO0JhL WZIIesdWhtXeBnAqbrDdD9gb2MlJ0mm0gbsJuN1UjaHDDjYmpusLutvwzZsH/Kt2Njh4 IAHg== X-Gm-Message-State: AOAM532JIojlxh9xJbN6rRK1wlttycSj8WvSZJ5drSvjGzhRe5OkKpKi tfGlFn9lS7zZHysUaAxD7E5kOd0TZPCodLVEYrygME5pkzqnr8F5dtfyJtmt4ilHp4PAHrf6+Mn noNxRO1FduznJi4+3lEvRummH8fMVcqR2vn3tKVKTK9EYEQP5/2FL X-Received: by 2002:a05:622a:3cf:: with SMTP id k15mr5876577qtx.282.1620332976549; Thu, 06 May 2021 13:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk3b8O3zAhrDM7x/cMI1eJVdxQMKUo6w7vmzjoPUcDq01NFnKYHmva7Zxpns1CqKXuC7HwQA== X-Received: by 2002:a05:622a:3cf:: with SMTP id k15mr5876557qtx.282.1620332976322; Thu, 06 May 2021 13:29:36 -0700 (PDT) Received: from localhost.localdomain ([45.237.49.6]) by smtp.gmail.com with ESMTPSA id r9sm3151363qtf.62.2021.05.06.13.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 13:29:35 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/5] clocksource/drivers/samsung_pwm: Constify passed structure Date: Thu, 6 May 2021 16:27:26 -0400 Message-Id: <20210506202729.157260-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> References: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_132940_530805_6FD5B972 X-CRM114-Status: GOOD ( 15.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The 'struct samsung_pwm_variant' argument passed to initialization functions is not modified, so it can be made const for safety. Signed-off-by: Krzysztof Kozlowski --- drivers/clocksource/samsung_pwm_timer.c | 2 +- include/clocksource/samsung_pwm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/samsung_pwm_timer.c b/drivers/clocksource/samsung_pwm_timer.c index 69bf79c7f462..bfad61b509f9 100644 --- a/drivers/clocksource/samsung_pwm_timer.c +++ b/drivers/clocksource/samsung_pwm_timer.c @@ -401,7 +401,7 @@ static int __init _samsung_pwm_clocksource_init(void) void __init samsung_pwm_clocksource_init(void __iomem *base, unsigned int *irqs, - struct samsung_pwm_variant *variant) + const struct samsung_pwm_variant *variant) { pwm.base = base; memcpy(&pwm.variant, variant, sizeof(pwm.variant)); diff --git a/include/clocksource/samsung_pwm.h b/include/clocksource/samsung_pwm.h index 76341988fb4f..9b435caa95fe 100644 --- a/include/clocksource/samsung_pwm.h +++ b/include/clocksource/samsung_pwm.h @@ -28,6 +28,6 @@ struct samsung_pwm_variant { void samsung_pwm_clocksource_init(void __iomem *base, unsigned int *irqs, - struct samsung_pwm_variant *variant); + const struct samsung_pwm_variant *variant); #endif /* __CLOCKSOURCE_SAMSUNG_PWM_H */ From patchwork Thu May 6 20:27:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12243513 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F943C43460 for ; Thu, 6 May 2021 20:32:25 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C21BF6112F for ; Thu, 6 May 2021 20:32:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C21BF6112F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=51tfhADRX3+AXMi0PiUooV3PtTrReBJ62WOVRHYuZVs=; b=gbh93JGSwkbuzbA4KXAjrrTBf zi8arZah2p6C/nPwUONwWMM5V4RjbYygDJQytEObLigF7Rj5woHqEQWZNjQTV7F19F93JrGdGqZw5 5P/ZUMLSjWhugve923KdUBsz/bmsiKstPLV3TzQCOsZulEnYVv+kZQxANYQOLJjF3P1ct/Qrsb5Vi LyRTRe7i/dpUmMzpAN1jCOlCy0bBMYV91IB/y+t8QEXWdkbs95O4dt0SHdz26MWpOski3DE3Vc4d7 74ll0aJ7EmNGC3T93NGMdtnPcW7+oX7O4m3msd4OAr/k7RwnhRDpsQwPlwnVsnwlNDWH5tHMEyalf Q6RgR5F3g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lekdJ-005FiT-Fn; Thu, 06 May 2021 20:30:05 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcy-005Fh1-74 for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 20:29:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Type:Content-ID:Content-Description; bh=i3wg2XN420azu/evG4iGtlbTYfEz7jreR3UbeD+i/T0=; b=W3IiXAaUYIejl4gaOYPR0fdXM9 DqK/ElRpMCyhDcuzbdcgLCMZ6C6bX1ZPbgdVJBnt3k7T4H0PTHy+7YCS+xlH/RH7stTTXJJBt9q5w 50E5/SDGsuWI1UGuDcwIRad/dxbPsn1TzocrD2Zqvt9BpF3ZtmwkVSL1z/iwW8l8P/ntt2+KCjP31 +WooytqC4GuE76xFzdnYGj+oh0k8UUlPVtrf9xFLFpgGOBgHzgw9c678kw9QdJvTnq/AkcMtPQT+a o1Qv1kcZF+u5QflIGQIryrYvTjt0BZeBivKg+tublR+qmHqY6u2KQcSi09KPqBsN/7CJGXosH33bT nyyZnGDw==; Received: from youngberry.canonical.com ([91.189.89.112]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcv-006N7Y-Lh for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:43 +0000 Received: from mail-qk1-f198.google.com ([209.85.222.198]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lekcs-0001cg-RV for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:38 +0000 Received: by mail-qk1-f198.google.com with SMTP id d15-20020a05620a136fb02902e9e93c69c8so4317308qkl.23 for ; Thu, 06 May 2021 13:29:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i3wg2XN420azu/evG4iGtlbTYfEz7jreR3UbeD+i/T0=; b=X1xzGtU2CXFP4nzmLZ/LLqKahzsU7jAnM8uem2vJXR3j6rlM67DhL7GHQ5kO+td3mU LeBJ/yuQBw4i0fkWuJoMoTiUYwpKt974qx3LJmWegCLxIY/hqaTur1i6x9HWWL/53Ugc Xwi6ZkeseuBRK/JP9OZTmpwgcEMhpfCkNW62yGzCc0W/QJqb8EUgKFPPx/hZYRb2dv50 rqMsl0dXZvmfEqSaAp/Wrm6DGnPOQ3FvTjOXenGiyr6PxY3/X3Rxkx15FYnqDIi0pqOA pbEXwYpJtqg4fzGgbt1jjX10LM1MVKnF85l/OUDMdbezSTzAGYWlSpp7NDTAg56kLixK ISKw== X-Gm-Message-State: AOAM530+COndhWEU8o5MV6AHp4aAvNG/mrx/UIViLRLsR9/OhmzBXsr1 b2r7bC+7kVrbxvb/OnlDsZNmCJquGsip0ipU6uAbR7ZpCdqaHF+0YJdwcczjLv+cFlr1vijQ35L OQzOPtkS664Qz0dzi7JOKviQSwfAH07dab7ok/DLayLxW2yKSlSzs X-Received: by 2002:ac8:5dce:: with SMTP id e14mr6047045qtx.385.1620332978031; Thu, 06 May 2021 13:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr/teC4fU26p0xkpWZj5KkZrm5frwONB63LY6ImAr+V1yN3mfqGPo04XbzbC5xzeeBkOr5Tg== X-Received: by 2002:ac8:5dce:: with SMTP id e14mr6047029qtx.385.1620332977866; Thu, 06 May 2021 13:29:37 -0700 (PDT) Received: from localhost.localdomain ([45.237.49.6]) by smtp.gmail.com with ESMTPSA id r9sm3151363qtf.62.2021.05.06.13.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 13:29:37 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 3/5] clocksource/drivers/samsung_pwm: Cleanup on init error Date: Thu, 6 May 2021 16:27:27 -0400 Message-Id: <20210506202729.157260-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> References: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_132941_726292_497EDEB5 X-CRM114-Status: GOOD ( 16.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Failure of timer initialization is likely to be fatal for the system, so cleanup in such case is not strictly necessary. However the code might be refactored or reused, so better not to rely on such assumption that system won't continue init failure. Unmap the IO memory and put the clock on initialization failures from devicetree. Signed-off-by: Krzysztof Kozlowski --- Not marking as cc-stable and not adding Fixes tag, as this is not really a bug. --- drivers/clocksource/samsung_pwm_timer.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/samsung_pwm_timer.c b/drivers/clocksource/samsung_pwm_timer.c index bfad61b509f9..55e2f9fa2a15 100644 --- a/drivers/clocksource/samsung_pwm_timer.c +++ b/drivers/clocksource/samsung_pwm_timer.c @@ -421,7 +421,7 @@ static int __init samsung_pwm_alloc(struct device_node *np, struct property *prop; const __be32 *cur; u32 val; - int i; + int i, ret; memcpy(&pwm.variant, variant, sizeof(pwm.variant)); for (i = 0; i < SAMSUNG_PWM_NUM; ++i) @@ -444,10 +444,24 @@ static int __init samsung_pwm_alloc(struct device_node *np, pwm.timerclk = of_clk_get_by_name(np, "timers"); if (IS_ERR(pwm.timerclk)) { pr_crit("failed to get timers clock for timer\n"); - return PTR_ERR(pwm.timerclk); + ret = PTR_ERR(pwm.timerclk); + goto err_clk; } - return _samsung_pwm_clocksource_init(); + ret = _samsung_pwm_clocksource_init(); + if (ret) + goto err_clocksource; + + return 0; + +err_clocksource: + clk_put(pwm.timerclk); + pwm.timerclk = NULL; +err_clk: + iounmap(pwm.base); + pwm.base = NULL; + + return ret; } static const struct samsung_pwm_variant s3c24xx_variant = { From patchwork Thu May 6 20:27:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12243509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5ABD9C433ED for ; Thu, 6 May 2021 20:32:13 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 24B89600D4 for ; Thu, 6 May 2021 20:32:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24B89600D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=taXqxgBJD6PZL/65oUm+2APyqk8P1ogQMS1jltfaxoA=; b=NhjZ3CCjwinuGKXco3k+AHs8x /G4EtLOxvudPca9MLZXfmU1CP5jo6WpdN+wMY8XUMAe5fbUrZSCuXPS6mfNu8tZxDNyAGh53zcbsg 481EkoifhXlf6RF8KQNTPV8Hj7cNGLoQvidCnOKHq4wiac3ALs83HYbukSlv0oG+6rLrQE8vORHs6 yXtPl9sITPyy2rPXa3UPkiV/5gPA0MMnPFchD08tQHQmoZjTGgUitOhGvRfNKAeobYYwvzWqFIh7x DMPeT/Qvgc5CoHxGYCUyb2dIklUYvRs+k/RUip54y7ZI3bGKRxaydO94eluFUuT8oyJR8CWt5ro1R epjzRxFpA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lekd9-005Fhn-Dl; Thu, 06 May 2021 20:29:55 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcy-005Fgv-1O for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 20:29:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Type:Content-ID:Content-Description; bh=QaN2sKrS+2gNp66ooV3kIZkyoZhndv/BbfpM71H4E2s=; b=32uoSo321EHRXA+j1vEa9tmLAA igdHPbSKQ7Av8dnq17lhS26dC6L26TALQAUkb2xRziXYRLy4mLslbJjGSmTuiYF0D1SvmKlJLEzi5 FtKUT729TuWZbaJ65lWVMXHLh8PDZd4LzEZ1gutzkfJnTsZ6bg5BpZ0SGM8GHaOa1FIimw4HFRb21 mPTM9kl6+9fiOAWjjtjDMIbgxirZr2V0u0YWPbQBEXaj+GexyxqjV3MqiSDBMyM2r7KBOc5bOU4Hg RAJjp2jDlOzD8cmqKOPI1JKJtdMd4PlEXIeQSf2J3xfy1xCty4DzyzM/httiK7jmP+CbLYD5sM7gP /c8VmfOQ==; Received: from youngberry.canonical.com ([91.189.89.112]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcv-006N80-Fm for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:42 +0000 Received: from mail-qk1-f200.google.com ([209.85.222.200]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lekcu-0001d9-8R for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:40 +0000 Received: by mail-qk1-f200.google.com with SMTP id d15-20020a05620a136fb02902e9e93c69c8so4317356qkl.23 for ; Thu, 06 May 2021 13:29:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QaN2sKrS+2gNp66ooV3kIZkyoZhndv/BbfpM71H4E2s=; b=AqQmAGgBY71ULX9kPvdwpOZG992k7mSXHEZRGL/bD8ProYwJPe1B2x2ClCx9f0+/zr ijspyAmNxogx1rOwOZcw4/+HMWWmNM5NsxllqCcdB5Nb/MMboKLW0/XFXH5FQQ5fNquh dVlyG2cc0a4Tl2arOZ4TMczyodcBYhA2Y7y1z8cwBn0q98uoao/Hps21RJ2KAgTP4ODY e+bTvGhjxt+56HpHeHjyjGmMQylIDPqUNWBwMLJ7+AaGPKX6Kti+9JW1baMupLPXj7m+ oUv0o0hsFjQjrho4XKyXIyYYsGi/YvQMIeECGoDruh9JWBuQD6YRB9ktaMjlYBtyv/ul A9WA== X-Gm-Message-State: AOAM5318M/uFmpQh52p+1Wvn1vQJ4IkGTYxtCY5wrcLKF0ZnoBxCQUGv bK97C7vMfQOpwz2MxMq5ZctdxmowPYWXW1LM6IYyq17chFTsw3QmzQrY05l6fPXXyGaxZmApiym oi6dxRjXjddB7b5L9q8F+SYQlIs8OgZJyTrOFf460b19fOmUVqzpX X-Received: by 2002:a05:620a:4081:: with SMTP id f1mr5956456qko.203.1620332979446; Thu, 06 May 2021 13:29:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzapbevGV176ziXFWsYiPHEgdYz4M/VREvFTBrCMRIegcj3hsTKcp6weSBOfIpotKXfoR086A== X-Received: by 2002:a05:620a:4081:: with SMTP id f1mr5956445qko.203.1620332979286; Thu, 06 May 2021 13:29:39 -0700 (PDT) Received: from localhost.localdomain ([45.237.49.6]) by smtp.gmail.com with ESMTPSA id r9sm3151363qtf.62.2021.05.06.13.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 13:29:38 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 4/5] clocksource/drivers/samsung_pwm: Constify source IO memory Date: Thu, 6 May 2021 16:27:28 -0400 Message-Id: <20210506202729.157260-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> References: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_132941_541588_7AEB79BC X-CRM114-Status: GOOD ( 12.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The 'source_reg' IO memory is only read, so the pointer can point to const for safety. Signed-off-by: Krzysztof Kozlowski --- drivers/clocksource/samsung_pwm_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/samsung_pwm_timer.c b/drivers/clocksource/samsung_pwm_timer.c index 55e2f9fa2a15..6e46781bc9ac 100644 --- a/drivers/clocksource/samsung_pwm_timer.c +++ b/drivers/clocksource/samsung_pwm_timer.c @@ -61,7 +61,7 @@ EXPORT_SYMBOL(samsung_pwm_lock); struct samsung_pwm_clocksource { void __iomem *base; - void __iomem *source_reg; + const void __iomem *source_reg; unsigned int irq[SAMSUNG_PWM_NUM]; struct samsung_pwm_variant variant; From patchwork Thu May 6 20:27:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12243511 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1BBBC433B4 for ; Thu, 6 May 2021 20:32:24 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 506C261107 for ; Thu, 6 May 2021 20:32:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 506C261107 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7Ee8z35cl6hW5jFN1apH+FRZ56IuW1zdg12mT9dyokg=; b=TiHo8ixfYgWUqbqT8o2MEPM0y +pqtXUeQDoLMqfvsnrm5Pa1+tULoDCqJcabigOjfrkFpM7gC4oNyxzXFhGlaRV3rExdmZ+Ev8mjMx uCUo0Jpa8I4qrvO6ux+OyQyV6kxOYnyhobz8EZlb+KBBTZT748OEtutHQDf/eqsax81R3gpJs2OLB bxiE8n/06xJAR0hbWI5gGj7N8Y/cv7i5QotH1nWqec8bfXUEp6otI5s30jbOQsenUkRQR1niuAZb/ pMX/DlZkI+TRkBF7Eb4/GzNfrtVvsPDoJ4wJcPP3soX+xFX2DRSkXzt1Ir/2uCk/ERAW+Sr1sBL8m wvN+veKlg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lekdS-005Fj6-CJ; Thu, 06 May 2021 20:30:14 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcz-005FhA-7w for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 20:29:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Type:Content-ID:Content-Description; bh=MEVMUDWkqGHYlLcG9Az7Ro+mD4OVQo3sjNJ8RnA9DCE=; b=GrxOymV6w8mu9GzVAeA8zFlIjR FLj48KB2hKiXujEmDY+R0UXhHbUi7Jjrbsedju6/9L7QwhR89pLAgKlfFy4XdG1qe+fbXZGl252aa oyeH15XB0LWSZku1kmvKCBoQMsyXPqArc9FE9RZlgbpc8BVoQzTwlkwRRaDh04Ffq1J4Z1M3QAp7P J46c+KYX5sTUFiPYHSM8nIYAYnOOBm8KTzEiYURspJpHRmViMAUPHV3eKYMIAdDNCxdVa9i2FCAJ0 1KS3b0IZQ8ECbDFuljJ5s4Z1+Dh3K3oIGZuuIpqeTFqLDtiR/UXtbkj9gWz4Ua3Uz3FRpbIGd/ldL 5hKjudKQ==; Received: from youngberry.canonical.com ([91.189.89.112]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lekcw-006N8X-S5 for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:44 +0000 Received: from mail-qk1-f200.google.com ([209.85.222.200]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lekcv-0001df-KA for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 20:29:41 +0000 Received: by mail-qk1-f200.google.com with SMTP id i62-20020a3786410000b02902e4f9ff4af8so4347755qkd.8 for ; Thu, 06 May 2021 13:29:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MEVMUDWkqGHYlLcG9Az7Ro+mD4OVQo3sjNJ8RnA9DCE=; b=rGEtmrmt5VCgD+bjoRFUTvbXWQUhna0L1tsvsaXCgdCCTrIhJIN4dTkuXcbXMQEYwd EBjokJcD3HjDox6vkSl9dppJC+TmJngnFtH+0AkjgprpmT9QjaJgK2dnQJ5NOxmKyfUR Ot5Eu9CnaUeFZX+D9rP8g7AVpnOul5VMBB+PUNJJF9WZ6qtVCd7UkHFwQK3gKbLXT95j Hdz0my4Fx3q3olcDfwzwLpYtqEMdtfoxkfD75wwm7/gkp4FLcnFlS1+tAjQxLWdDzk+/ d+B8dZG3IeZX9+AMGZ45mMI09Rn9Encp221E5lv3dMBP7IK1b2p30flM+8ZQoXdfL0i7 yz4A== X-Gm-Message-State: AOAM533J4KEMwg1I30HvVtHduke711w2kUtqGznE/lz53nM97+TJtrAF ESgR53LOgCpFgvLrQh2StWisOspZNKL5qLPrK+IsWV++k5Ei7kHc0HrJObl68XRZlWZxZNVcCrR +VvSZ1C11myzfflMExGm/7ipJNGmOk7oCbKmPMFWolPD/wFfUmL7a X-Received: by 2002:ac8:6a07:: with SMTP id t7mr6289056qtr.74.1620332980814; Thu, 06 May 2021 13:29:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGTOcflvNGn/QW/M44UQ6PapIvsGKyEKZR1mufl7BaAi09QOxao1TSWpkNhvwAlfCnFrWG3Q== X-Received: by 2002:ac8:6a07:: with SMTP id t7mr6289043qtr.74.1620332980669; Thu, 06 May 2021 13:29:40 -0700 (PDT) Received: from localhost.localdomain ([45.237.49.6]) by smtp.gmail.com with ESMTPSA id r9sm3151363qtf.62.2021.05.06.13.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 13:29:40 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 5/5] MAINTAINERS: Include Samsung PWM in Samsung SoC entry Date: Thu, 6 May 2021 16:27:29 -0400 Message-Id: <20210506202729.157260-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> References: <20210506202729.157260-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_132942_929301_5C58742A X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Samsung PWM and PWM-based timer/clocksource drivers lacked dedicated maintainers entry. They are used on all Samsung SoC designs (although timer/clocksource driver only on older platforms), so include them in Samsung SoC entry maintained by Krzysztof Kozlowski. Signed-off-by: Krzysztof Kozlowski --- This can go via clocksource/drivers tree or I can take it via Samsung SoC. --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index efeaebe1bcae..bb9c5815a308 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2436,9 +2436,12 @@ F: drivers/*/*/*s3c24* F: drivers/*/*s3c24* F: drivers/*/*s3c64xx* F: drivers/*/*s5pv210* +F: drivers/clocksource/samsung_pwm_timer.c F: drivers/memory/samsung/ +F: drivers/pwm/pwm-samsung.c F: drivers/soc/samsung/ F: drivers/tty/serial/samsung* +F: include/clocksource/samsung_pwm.h F: include/linux/platform_data/*s3c* F: include/linux/serial_s3c.h F: include/linux/soc/samsung/