Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4147792pxa; Mon, 10 Aug 2020 01:52:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmJLVOAGchIcJXpOMPVjAGZfPjClRaPdXBcLG6RoATzqd+PjF0KfsYCukJhYEYp07X2ICG X-Received: by 2002:a17:906:9717:: with SMTP id k23mr21064931ejx.493.1597049534341; Mon, 10 Aug 2020 01:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597049534; cv=none; d=google.com; s=arc-20160816; b=fl3lSO/tgdItlwfCYvAFYZUzR7EYqS3DcvN3eCK7vLgBWNvTh7PMPuoy4E0HM8ERb2 eQuJKvmEyJCfodF5qrqUXOwdBrgfKyw0B3YLCokY6jgad8Dvm3zQjfnMFR5+895AobYE E2xuhtMLGo3xlxeqpf310xOs7hTcRTupR0sBwEwRj4B6UQ4IWgdTHyfY1/slcmD5XjMu pN+8nocPLtcYu1uZ4DxTBLhBeV8hcJHPr6gNOb6KQbgqiCD0R227wBB0+WQOT6SfIjx1 ycigtZSiQIR2wT+CxtNXu1p0Qk8Z78WkDQ9+kW4MsIusch30WUaKkAZ9c0BL4fhC5An5 nnUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=2vy5WK0/lZz1ewdjEJ/g1nZeGw5MBX8oCLLIJ1fU9Bo=; b=Vq/DtnntdE1c8NblZ1LxemBD5JgneGieLGyM2eovsmN3YTEb10+w+UFux75qq5+1BA bhYkAnriLtJLXohLrVWkI4IqzBq5qpyGLcCq6wcHGxgsr92LtIzPnRr8SI7ls2YPFFMJ 7FkrxpQWIufv9q4EZf9WAHb9mJ94sCV2fBWC86IrvOzGPhCJHUPPIFFck/aqoFW3bWOe yz5ZBbSeCt1qJQgp45rteTXAkSL35QdtvSIEP3MMvls1oMj69IGtW+A+gnBsg9k09qf2 UaQSppHE/6ghL26qdNimy9+zgwLXXugsiU6Bwz+53LBhVv3k6JsktwRyG8jeN12YWZQc e0PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RVXduCsj; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf8si9740458edb.597.2020.08.10.01.51.51; Mon, 10 Aug 2020 01:52:14 -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=@gmail.com header.s=20161025 header.b=RVXduCsj; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726598AbgHJIuc (ORCPT + 99 others); Mon, 10 Aug 2020 04:50:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgHJIub (ORCPT ); Mon, 10 Aug 2020 04:50:31 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7599C061756; Mon, 10 Aug 2020 01:50:30 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id w14so8675587ljj.4; Mon, 10 Aug 2020 01:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2vy5WK0/lZz1ewdjEJ/g1nZeGw5MBX8oCLLIJ1fU9Bo=; b=RVXduCsjsI1KO/t7jAETjHGfpJeIfBkNLlUdPZQLbIvZJXw1A7nNDa7rQ3p6FXYjhG TNaAfEriRKSt6fTkDhNBKJS4Ye72JJuXQggjStSGEVPwDw25sN8BYj2yNNZhH7R9FK8L 2OlOYujONBOc43ByZbz646sekkhZliKDQF6bdQXePc7kxBD+kCr3jlqzOkaasB+gcIs5 qll9KEywhbWs6TUmlhTxOtVBlEe5Wn4oyl7fTUmiSVO/l4GauqgmJkPhpalzxIusIn79 YzBZf+M88uBOYHw2rmonuNOdMGzTmoiUHda5qzBlNGXGXl6P9pGuTn6FX9rrlkDEoJ0k SrIA== 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:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=2vy5WK0/lZz1ewdjEJ/g1nZeGw5MBX8oCLLIJ1fU9Bo=; b=eg2cpGNBTSmz/+XktP1b2Wl0PRwQAquFq/+a+pClsjs2Ym7i4QAEz4Y6AzqNAcrfpd 7V4qVKaKeHXVrfoVR6XsE8g4+iwr5FN0lVdBFileCpDw4b9/8lCaX6h0nx83Jb/Zhtfl eJV/lplEUjIwGQcF9U8w4+5jAeuSSUK+lNk3lyan+M7tgyyLMXXS6v8ur+FCEaqTceIl E2abELiGz8Jkc+EEJxSVEMFgo0Q+Zc87zEkAUFybo0DZgWAtjdoa++CISSb6G+Rm5nlh xjNVOMjA+Pd/vUI2n4EdlYvzqNCJ5uLOxHgZvSSnsRslxyjJqwgN/bLfhvo8xGj2i6L3 UiNg== X-Gm-Message-State: AOAM530M5FKF9SJYYPwXpyNJLzexCNmqxfDt6Gxr/TAtVnE929lBIOX/ I3yE7JE7qv/owQc/QdXDWPz85fVR X-Received: by 2002:a2e:5018:: with SMTP id e24mr34551ljb.261.1597049429209; Mon, 10 Aug 2020 01:50:29 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:656:4d4d:4047:314a:a423:d91? ([2a00:1fa0:656:4d4d:4047:314a:a423:d91]) by smtp.gmail.com with ESMTPSA id o16sm8976071ljc.66.2020.08.10.01.50.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Aug 2020 01:50:28 -0700 (PDT) Subject: Re: [PATCH 3/3] drivers/clk/clk-asm9260.c To: YourName , marcel@holtmann.org, johan.hedberg@gmail.com Cc: mturquette@baylibre.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-clk@vger.kernel.org References: <20200810005941.20581-1-argoz1701@gmail.com> From: Sergei Shtylyov Organization: Brain-dead Software Message-ID: Date: Mon, 10 Aug 2020 11:50:26 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200810005941.20581-1-argoz1701@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 10.08.2020 3:59, YourName wrote: > From: Daniel Full name needed here. > --- > drivers/ata/acard-ahci.c | 6 +++--- > drivers/bluetooth/bfusb.c | 5 ++--- > drivers/clk/clk-asm9260.c | 12 ++++++------ > 3 files changed, 11 insertions(+), 12 deletions(-) > > diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c > index 2a04e8abd397..3ffb21f3e88b 100644 > --- a/drivers/ata/acard-ahci.c > +++ b/drivers/ata/acard-ahci.c > @@ -79,10 +79,10 @@ static struct ata_port_operations acard_ops = { > > #define AHCI_HFLAGS(flags) .private_data = (void *)(flags) > > -static const struct ata_port_info acard_ahci_port_info[] = { > +static const struct ata_port_info acard_ahci_port_info[] ={ > [board_acard_ahci] = > - { > - AHCI_HFLAGS (AHCI_HFLAG_NO_NCQ), > + > + { AHCI_HFLAGS (AHCI_HFLAG_NO_NCQ), This does nothing except ruining the valid code formatting. > .flags = AHCI_FLAG_COMMON, > .pio_mask = ATA_PIO4, > .udma_mask = ATA_UDMA6, > diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c > index 5a321b4076aa..dc6a62cb1941 100644 > --- a/drivers/bluetooth/bfusb.c > +++ b/drivers/bluetooth/bfusb.c > @@ -355,15 +355,14 @@ static void bfusb_rx_complete(struct urb *urb) > while (count) { > hdr = buf[0] | (buf[1] << 8); > > - if (hdr & 0x4000) { > + if (hdr & 0x4000) > len = 0; > count -= 2; > buf += 2; > - } else { > + else { > len = (buf[2] == 0) ? 256 : buf[2]; > count -= 3; > buf += 3; > - } This just ruins the code. > > if (count < len) { > bt_dev_err(data->hdev, "block extends over URB buffer ranges"); > diff --git a/drivers/clk/clk-asm9260.c b/drivers/clk/clk-asm9260.c > index bacebd457e6f..4e608807a00a 100644 > --- a/drivers/clk/clk-asm9260.c > +++ b/drivers/clk/clk-asm9260.c > @@ -92,8 +92,8 @@ static const struct asm9260_div_clk asm9260_div_clks[] __initconst = { > { CLKID_SYS_CPU, "cpu_div", "main_gate", HW_CPUCLKDIV }, > { CLKID_SYS_AHB, "ahb_div", "cpu_div", HW_SYSAHBCLKDIV }, > > - /* i2s has two deviders: one for only external mclk and internal > - * devider for all clks. */ > + //i2s has two deviders: one for only external mclk and internal > + //devider for all clks. Divider. :-) This is not the preferred multi-line comment formatting anyway. > { CLKID_SYS_I2S0M, "i2s0m_div", "i2s0_mclk", HW_I2S0MCLKDIV }, > { CLKID_SYS_I2S1M, "i2s1m_div", "i2s1_mclk", HW_I2S1MCLKDIV }, > { CLKID_SYS_I2S0S, "i2s0s_div", "i2s0_gate", HW_I2S0SCLKDIV }, [...] MBR, Sergei