Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2344141ybh; Fri, 17 Jul 2020 16:12:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf4nggjEp4H55B9ipCy6Mqt7OV1iEJfSy7Sq9Fb7GuhwREaCuxSrNrqxbpwBMU0YG3BcR3 X-Received: by 2002:aa7:c353:: with SMTP id j19mr11397292edr.219.1595027565647; Fri, 17 Jul 2020 16:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595027565; cv=none; d=google.com; s=arc-20160816; b=AR5KzmFx/4UbnM4wEV3P7y0CNhCOwy6fkrSGDgCrCIhUuRhGyZeaeH/Jc3uZ1i09Xv RrmEZummQMTZtxkxVkBOlrQPXe4/YcSG1vDNYpkUV2b9R0c+/rVIdGqsQ7yPDqGy6sfz 49w7HlS6hhlOzjFJp8DwOvN3BurU3WJF0NpwJRtdIF/QPDFXJU6InnVhE3XV+cIIc3SG AyAqkF3ik6eW7vY6Zo59YIoeHC3OfnJ9a93gZGhCcjpl9y1j9HiRTY2xRd5O/1r/Ht78 PhrSfJV7TkoPMbSVc8sqf7LgBHK3xUl7TPDnvnfmzTR7SHOLbymTbZeqDQJKAbhquhzD eLSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=rzjn/eYPwCM6Moj4rlObmsEsReunmRsAEC0/KZLwCVg=; b=NBOPxH3+uQ3w8VSuGt0Tf+J1bduFX6wqaGkFPPzYoQM16k9Zf2/t4fLc0sgeSEHyWT E3pHVR25DHKjwspFzs3e5bL7Or28ldoB34eCayzB+wKa/1oxCDZxj0k96ratZ+RAYV+D KqRCGsj4fhHc2oS/+ef0nNkMbPExtBMzQ8LE7IATGXmtGcOk3oZYp8DAKjBZkxEoHhVv W/IDxUvoLJZ2x8i4ou80hINEaPOzp48Z2t+00WPS/4Y9UdgAGnNj/ZuuvBDtV5yWhiJB AR2Vowf9C8r9NGNgpMkf0Y1xSI8rh/xN5E2hbeFw7jNUGFV049rl2JT7EwF2kJD9Aw0v +/Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Lov4sdCn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c94si6754620edf.589.2020.07.17.16.12.22; Fri, 17 Jul 2020 16:12:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Lov4sdCn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727042AbgGQXLq (ORCPT + 99 others); Fri, 17 Jul 2020 19:11:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbgGQXLp (ORCPT ); Fri, 17 Jul 2020 19:11:45 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6855EC0619D2 for ; Fri, 17 Jul 2020 16:11:45 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z13so12727996wrw.5 for ; Fri, 17 Jul 2020 16:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=rzjn/eYPwCM6Moj4rlObmsEsReunmRsAEC0/KZLwCVg=; b=Lov4sdCnWQ+sBRfBNL+0G/LP/iK7IUI/22PUpseUjsRwmSVhhsKTNfh0HcvxTeEmYl WlrmebPlQiavtHDYNLWRQrcXG3ccPYoROmr6vd19HtI9mp/KlnVdNkMIF9k2IAnlC3pu 9XoT04HEBib/De7FxRLtlPObMGBXc1ddRgK8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=rzjn/eYPwCM6Moj4rlObmsEsReunmRsAEC0/KZLwCVg=; b=BvYKwtsZ+LhQWu7ie9jckNXcA2tKnxzehMWfFNlvI8cqxrhdtY42wKzy8S4DB/ICTj RVtURybSGX/v8dwP0+EvzlgGXS5yQKabv+yLz8TfIYmE31s88t+P6Wd8O542eOJZU30s sJB4/QpUUYGRsUD+ycAnRefv4Tf2uC/EqlqcBreM1IIFQIKmAVFLZBvN3kE+PsF2kRBr 8C55tZwihSaePiQUqDK2pkX5cZqFRlSji+u7F0cyh4i5kpRkZ3sCz9QIobg7zeYJ2ijB c49EYjiGfpQkXrB/42H8D9WQdzFDEI3Z4q+6bD4WUmVggRJAQs1QtAlAAz70Xa1BbSQ9 eX5A== X-Gm-Message-State: AOAM532FxVM//+YRVHeDQrgua4nxAd4WAtnWdzlvwHd3z5zfYhcYPF3C R64IuMqH2uJ1dFRMq8kBg8/eS5Xsi405Zg== X-Received: by 2002:adf:80c7:: with SMTP id 65mr12694318wrl.246.1595027504036; Fri, 17 Jul 2020 16:11:44 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id c3sm4296419wrx.5.2020.07.17.16.11.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jul 2020 16:11:43 -0700 (PDT) Subject: Re: [PATCH v2] pwm: bcm-iproc: handle clk_get_rate() return To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Cc: Thierry Reding , Lee Jones , BCM Kernel Feedback , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Rayagonda Kokatanur References: <20200717182512.26001-1-scott.branden@broadcom.com> <20200717230431.4oj44cfnkhkd2o6z@pengutronix.de> From: Scott Branden Message-ID: <61a62404-6a44-53c3-6d17-89fa7a4c8551@broadcom.com> Date: Fri, 17 Jul 2020 16:11:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200717230431.4oj44cfnkhkd2o6z@pengutronix.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-17 4:04 p.m., Uwe Kleine-K?nig wrote: > On Fri, Jul 17, 2020 at 11:25:12AM -0700, Scott Branden wrote: >> From: Rayagonda Kokatanur >> >> Handle clk_get_rate() returning <= 0 condition to avoid >> possible division by zero. > You advertise handling <= 0, but in the code only == 0 is checked. One > of the two is wrong ... I checked - clk_get_rate can't return negative values. I'll update the commit message from <= to ==. > > Best regards > Uwe > Thanks, ?Scott