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=-0.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED 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 98427C43381 for ; Fri, 29 Mar 2019 10:36:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9600206B8 for ; Fri, 29 Mar 2019 10:36:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="F/gjgnlp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728398AbfC2KgD (ORCPT ); Fri, 29 Mar 2019 06:36:03 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.81]:30978 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727654AbfC2KgD (ORCPT ); Fri, 29 Mar 2019 06:36:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1553855761; s=strato-dkim-0002; d=fpond.eu; h=Subject:References:In-Reply-To:Message-ID:Cc:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=+Yq1Io/9qdrJmIu9BwK7o3Pnj3y93+K3DtxXXJpYW+o=; b=F/gjgnlp1DcfTHw1xxcnlsajEgs1kgqBie8xCGmHqTdjB3Bl5w7c4qSQgBUKUODvlY c0uUMS2Fjg/8rH1TaGc/YRM45uBfBqxMYBjQgteJFifNrlk/cHcjt0Qrz1A4u3R7OsUd 1nVzQ9dFrqDe4N+dABiWmFdEC5CYDJSK6ut91lM3MlNX6afItKT6fYtJ5dSL/yldqb09 RWj67os+s3AQuJT6Q/kwSpV2hkttRoRCLjvrzg3Dt76qB+N4sMXayfbhxBwVdeNhp7J4 /7TSFIAPexyi/nOquedNwGeZ7y/TX5IdrJiw3DTWINSsou/5kV3oc5RDsxDpqCZ7T3bH o+0w== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73amq+g13rqGzmt2bYDnKIKaws6YXTsc4=" X-RZG-CLASS-ID: mo00 Received: from oxapp05-01.back.ox.d0m.de by smtp-ox.front (RZmta 44.18 AUTH) with ESMTPSA id L0be16v2TAZtF1C (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Fri, 29 Mar 2019 11:35:55 +0100 (CET) Date: Fri, 29 Mar 2019 11:35:55 +0100 (CET) From: Ulrich Hecht To: Geert Uytterhoeven Cc: Dirk Behme , Eugeniu Rosca , Ulrich Hecht , Wolfram Sang , Linux-Renesas , "open list:SERIAL DRIVERS" , Eugeniu Rosca , "George G. Davis" , Andy Lowe , Joshua Frkuska , Tobias Franzen , Magnus Damm , Greg KH Message-ID: <664574064.1533743.1553855755610@webmail.strato.com> In-Reply-To: References: <1522856931-6225-1-git-send-email-ulrich.hecht+renesas@gmail.com> <20190327183555.GA23991@vmlxhi-102.adit-jv.com> <0f1048cb-ebca-2e66-9b77-70297be96054@de.bosch.com> <1244832967.1529522.1553852778122@webmail.strato.com> Subject: Re: [PATCH v2] serial: sh-sci: Support for HSCIF RX sampling point adjustment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev51 X-Originating-IP: 188.195.25.140 X-Originating-Client: open-xchange-appsuite Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org > On March 29, 2019 at 10:56 AM Geert Uytterhoeven wrote: > > > Hi Uli, > > On Fri, Mar 29, 2019 at 10:46 AM Ulrich Hecht wrote: > > Reviewing the code, I have found another potential issue: the SRR (sampling rate) value is not validated; only values from 7 to 31 are permissible, according to the datasheet. The values in the debug output above would be fine, though. > > Isn't that handled by > > .sampling_rate_mask = SCI_SR_RANGE(8, 32), > > ? Having crawled through the related macros, I can confirm that it is. CU Uli