Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp358814rwi; Wed, 26 Oct 2022 01:41:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Bs0FYVztBloedC0oAIoiLf4/Si67+f1X1TCa91n9VnhLtA7sSbAb4o8bpwN2HwlMECiS4 X-Received: by 2002:a17:906:8451:b0:78d:d467:55a4 with SMTP id e17-20020a170906845100b0078dd46755a4mr35847075ejy.352.1666773695644; Wed, 26 Oct 2022 01:41:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666773695; cv=pass; d=google.com; s=arc-20160816; b=s8HNp2CImZ42+//eyPMs/XSVIoYQLirz9qqo92bU32tpjas7thKAq+JpUqrIJUsZKJ 6LCz8JeRj0GNWmIpzwarvcjVUZhjIBHz8RmlgumGOOBefp7hFD2axArsBScgYlrP7yCA Hp3CQhKbWxqN7GjHk/CRNP0Xi8QhmbqtpiokqM3DyprTltfrXLPc9/Lzowe/RdfPs8q6 vwjrZhGL6FRV7vrEBhImN8tHsEndXnzw6hI0eYefsRz1dEeC0AkR9TRnXzvsAcj1gfEO qRjV5r+DaboYGogzTjGKQv4tIrUgl1jMRx7BDydqud8MEoRlJCrEGq3ukmusIVEXCf+m n/Mw== 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:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=bSrHMR0xerv6lsliqQVy48NZ2Q382O4KkH17e63OROw=; b=NtK9UhF9rVhkTMTqo9UPsjnqnMKcgDDQVmkrXIkeN2F48S/loi3VDO/ETUorfqMCh7 fMgRmOPcNoZ0KqDY2HFXIruLy9dW5nihTT+7bGDLAThv5xU5il89iP3a922XINSAVYls PJZNq1TEamtYQGkP3OKTu7tvQB7QAVfXTd2yjnWrGGPrjQPn161bCzDM6yNXHZC93W5P y4m/zL9K843XCgMcDgH9VFz4Ez8Z2NsDU1xLnZ7e6T5g4DMlNEShpqwOM02a472fwsLW FE3JeO29FRbrqtWoARSMRDK6hLdpNKqhJlGyCAA5XgSJj/bL9Jhb+iVdzFBvRAoV/Ysx IPlg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=4qKF+Usw; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz16-20020a0564021d5000b0045c21f435dbsi5459432edb.521.2022.10.26.01.41.09; Wed, 26 Oct 2022 01:41:35 -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 header.i=@suse.com header.s=selector1 header.b=4qKF+Usw; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233235AbiJZICk (ORCPT + 99 others); Wed, 26 Oct 2022 04:02:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbiJZICi (ORCPT ); Wed, 26 Oct 2022 04:02:38 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2056.outbound.protection.outlook.com [40.107.105.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A806E9AFC7; Wed, 26 Oct 2022 01:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GPPXJp4RLkc+W46IWI1AcjyGTWVRGVikJ4eDmT2XK0lU1F9F3pg1v8wAzmwm/bo4MPb5Nv08rMBvOzmDOILrnIYN1k8UvLj3S8bNQ4ZDHMfZN6NfeI/mD+zQVKPoShcqcZEp0PHeKJylFph1N27BbbwYDyHPR3YOqlFshUMOnKcQev5ecQ4gME6SW0SaRS1KvOZFTcHmAeok9fUjGN9/uaAB/vMP9n5bvSG4i1Fn67+4aR0iHMUlDs4oaGPfJ450raDpMs/3GGYYbu4+ubfUUUQdw2hw2Hig1KeU8QTyXF+3cGmHUqHPbFBhflFeeFg8NseVdiyuXFm4qwWVk/mk8w== 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=bSrHMR0xerv6lsliqQVy48NZ2Q382O4KkH17e63OROw=; b=b17QB5I93uS0zoVlaww3j8coFO5RMTzHDZl4zYnhdrT6YtoCnctR7uLUCGu04NhSLrBdJlqmKqfe7bMZPPbpyVnBn6AFEW4r/I4aH+0ZGMmKusE5Dx+AYqLh6DZ/yi9xp+JEJR3E77AZCT9XjQDzqwwv8HNCPPnyQdZRPacayqjbSZzBI2xFM9smzTHFzIkLM8sa1pEpQ+0mwr/nMqSnadBGadlH+9VC/nHpGZ48+Q81vjcRABLn9Y4krkCtf1hS0Yu8hMyJOHWJub85CYGDWcaI799CcDOWNoqS6g0JRJlu0s+GX4Zb8ac7QBlsnl/KUdrgIC1ARm1OzgbbLw+vpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bSrHMR0xerv6lsliqQVy48NZ2Q382O4KkH17e63OROw=; b=4qKF+UswKesamqNii6ZZKZvcOQcvvoj7Nb91vd0W8yF5VIDhORmIl8Y99dJN7Pj8rMDc0iCyLu6M0W8QSmRpat3We0N02vRz5MX9aU/SOhWK7zZt1LGp+mV+vy2jVdHEUTf8vmfg1C3Tb6YNHBugV36tE0+6oUB4OSL3fB/DuQ0w8hyrd3nmi0UVh/fkdjYOm9t1T3gynVEXO9TGyLsCgyoc4KtujfKxpui4DuXRgfFlFEeGaf+Z9/Q9P+pcOHtk/3M1qt2fEx8XmtQZ0gFgF7NfT0sMa6HBMV/XaZQiFITCBdcovmgzpfbWsiXY8Xndj+U2ohVWlh7HX7pYZQjunQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) by PAXPR04MB8846.eurprd04.prod.outlook.com (2603:10a6:102:20d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Wed, 26 Oct 2022 08:02:35 +0000 Received: from VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::1bf0:ae5a:ac96:5dea]) by VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::1bf0:ae5a:ac96:5dea%3]) with mapi id 15.20.5746.023; Wed, 26 Oct 2022 08:02:34 +0000 Message-ID: <65ed2576-55a4-fbf1-010b-a51e92389062@suse.com> Date: Wed, 26 Oct 2022 10:02:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2 1/2] usb: serial: add support for CH348 To: Corentin LABBE , Oliver Neukum Cc: gregkh@linuxfoundation.org, johan@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, neil.armstrong@linaro.org References: <20221021133758.1881904-1-clabbe@baylibre.com> <20221021133758.1881904-2-clabbe@baylibre.com> <135c51e3-56b6-cdf0-3499-cd354f43601d@suse.com> Content-Language: en-US From: Oliver Neukum In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0157.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a2::13) To VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB7104:EE_|PAXPR04MB8846:EE_ X-MS-Office365-Filtering-Correlation-Id: a456b9fa-0998-4a64-643d-08dab72870cf X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rm33PhIQEdwXaoIIKdrapdNjX/lR9bo9hIEuPuBPSqpRTLcA+u+toxjbKNq9aJfkbmNy63asdWz6oInZsRXhuYQ9s6H5QP3QKYeAUnmmEIgAm6gZUHACe5FsLcUgW145WHKGBZGKJ4HPwb3wIY5Vllaxw3GJDgJwvgwidkO/0wmcugow45wW0Lzm2G+x3t+3tZYriLeulAZo66AzWovLI3yJY0XSXn/prpB/1H5ZRKL14MtQyAlYbS7m33TV9jrNj5mr6iE8b1PirHgBqa5cSQWgYjX4rHmS9PcRTxdrgs5UwXBDn8Rc6WWSLTr49/ajw/Jcnr69S+7C9+PyPJnEl1LujSNUs9xo7fkQ/xUa+SSbJn2aYd8WJY2jkrollVRG38noKmkwCg35vF4kBtkF9zgEKU/q6kh07KQiZlZ6zPUvqz/zwSqqGKbzvmEf9U3xQmmUaKNzB6XB8GzEqE4UpQdJC9RAnKr4CB8ISttgTFSC22JuSF9fx/v2lbLxl6o+3p7Y91JrtCJLZEZAWKeBKdtlMFW+HWTQ3hwwqH+X7jzSm2eaJzhj2lOSgN5EhliT9ZXQJlduIlXf7F7SuKtL4f5DcT0+Q/GjKkYJkw5C0Teb6eU414LrCgYJP9joC8f5lLtHb5eT1ox5AScEEgUje+dZYjONUjFCRqlMRxon1O2h2+drRt+CMJgYcJwkzE1fIQBwvmOKNYwEvW3HfuYGErNRq19+TpMBTPfKzchBOe1Z2/J71Zu03ZaEHt27nDMyMh/JtpZ16/jyhw4n1LJ5VU4oL3Q+zVSWkwJIXRHp+T4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB7104.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(39860400002)(376002)(396003)(366004)(136003)(451199015)(186003)(38100700002)(31686004)(41300700001)(316002)(5660300002)(4744005)(66476007)(8676002)(4326008)(66946007)(6512007)(66556008)(8936002)(6506007)(53546011)(2906002)(86362001)(2616005)(110136005)(31696002)(478600001)(6486002)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WXdtUlNwRS9WZkdpOUlKNzBQVmdLL0o1dVR5a3RiN3dSajYwaHBDRGFCVnBP?= =?utf-8?B?bXJuTzA0elNwZk1DMHZCdTdqckpVYU81blMxamxuYkl5OHpOR2c0alo3a3FH?= =?utf-8?B?djhEUHFvOFludVJuOTZ1TGRIWkh0OGVadklQOFptc0NSbUpmVDRsdUYvZ2sy?= =?utf-8?B?UGhmdHNtWDBvbFVIMitxVVQvSlpEVDNkbW8yZmE2ZTVUUTZGMEljcjBFUHI1?= =?utf-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CRktDYUFDZUNLTVNHc1NoeWJ0L0Rx?= =?utf-8?B?czZSYjZlMUx1S0R1STVlM3doR0tWaHJOd2ZEc0pZUy9VeC9HeWhibEZUa2pC?= =?utf-8?B?Vld3bE1VK2FRMlRxMUJjY3BWdlhFTnMzZi9zb1ZGTURHcGxMSFpDMXNkbnRT?= =?utf-8?Q?EVOtcyRW7O/k5JmtHiksx16yvSnaG+ficcaJlzbSZ7kP?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: a456b9fa-0998-4a64-643d-08dab72870cf X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB7104.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2022 08:02:34.6967 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yujjDh2ZMWHbR/oD3LJFY/O1/74uQ1xHXyuoL+hpyTye3BHW4aFToqQFDZEzdTYwBgJl0C6iXSKrwqrJ9Y6MAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8846 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 26.10.22 09:44, Corentin LABBE wrote: Hi, > > Thanks for your review, I will fix them all. I am happy to point out issues. >> [..] >> >>> + >>> +static int ch348_fixup_port_bulk_in(struct ch348 *ch348, struct usb_serial_port *port) >>> +{ >>> + int i; >>> + >>> + /* Already Initialized */ >>> + if (port->bulk_in_size) { >> >> BTW, shouldn't these be unsigned int? > > I dont understand what you mean here. bulk_in_size as a member of the structure is defined as int. As a size cannot meaningfully be negative and this takes no error reports, I was wondering whether it should be declared an unsigned integer for the sake of cleanliness. Regards Oliver